• Resolved bill127300

    (@bill127300)


    After upgrading to 2.7 I get this error on the page for posts which is set to a static page other than the homepage.

    PHP Fatal error: Only variables can be passed by reference in D:\Program Files\Ensim\WEBppliance\SiteData\Domains\doverma.org\ROOT\Inetpub\wwwroot\wordpress\wp-includes\query.php on line 2548

    Thats the only thing on the page. The menu is gone. The posts are gone. All other pages on the site work fine though.

    Its wordpress version 2.7, php 4.2.3

    Help??

Viewing 1 replies (of 1 total)
  • Thread Starter bill127300

    (@bill127300)

    Just in case anyone else runs into this problem I found the solution by posting on another forum.

    OK simple answer
    Replace the single line that says

    $this->queried_object = & get_page(get_option(‘page_for_posts’));

    with the two lines

    $tmpPageVariable = get_option(‘page_for_posts’);
    $this->queried_object = & get_page($tmpPageVariable);

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error: Only variables can be passed by reference’ is closed to new replies.