Forums

[resolved] PHP Fatal error: Only variables can be passed by reference (2 posts)

  1. bill127300
    Member
    Posted 3 years ago #

    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??

  2. bill127300
    Member
    Posted 3 years ago #

    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);

Topic Closed

This topic has been closed to new replies.

About this Topic