Problem With Solutions

Something Different In Linux

Home » Error and solution » Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference.

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference.

Solution :

This error is  occurred due the php version 5.3 and joomla is not certified to work with PHP 5.3.0.

You need to change some code in your files.

open the file
vi /home/username/public/modules/mod_mainmenu/helper.php

You can change this :
Form

function buildXML(&$params)

to

function buildXML($params)

Save the file try to access your site.

12 Responses so far.

  1. bismark says:

    man the fix did not work i still see the same problem

  2. Manuj says:

    Thanks a lot man.. you rock <3

  3. venave says:

    i have the same problem for Just a few minutes ago. And my solution is for this problem;

    You must change this :
    Form

    function buildXML(&$params)

    to

    function buildXML($params)
    AND

    open the
    /public_html/libraries/joomla/html/html.php

    and find the (line 87)
    return call_user_func_array( array( $className, $func ), $args );

    put & sign before the $args
    finally
    return call_user_func_array( array( $className, $func ), &$args );

  4. Painkiller says:

    @Venave: Thanks man it works great !

  5. Mark says:

    @Venave: You are a saviour! Thanks for the detailed instructions mate!

  6. Sumon says:

    Thanks man are u crazy !

  7. Cddhesh says:

    Thanks Rishikesh Vispute. You rock.

  8. nenad says:

    Thanks man, it works!

  9. abou says:

    Thank very much mwa

  10. S M says:

    Thanks so much! really appreciate the assistance

  11. FK says:

    Thanks Alot All..my problem is solved


Page optimized by WP Minify WordPress Plugin

Optimized by SEO Ultimate