• When I choose a page for posts page and i want to go to this page i got the next Fatal eror: Fatal error: Only variables can be passed by reference in c:\wamp\www\wordpress\wp-includes\query.php on line 2561
    Please help me

Viewing 8 replies - 1 through 8 (of 8 total)
  • Please clarify – “When I choose a page for posts page and i want to go to this page”
    Do you mean you are clicking on a link in a certain post or page?

    Thread Starter davidvil

    (@davidvil)

    I mean a certain page that i choose for the “posts page”!

    Thread Starter davidvil

    (@davidvil)

    If someone can help me about this question.

    Thread Starter davidvil

    (@davidvil)

    Hello every body.
    I didn’t explain myself so i will ask the question again.
    I went to settings>>Reading and i get 2 options for “Front page displays”: 1.”Your latest posts”. 2. “A static page (select below)”. I chose the second option and i chose home page for “Front page” and blog for “Posts page”. I saved the changes and went to my site. Now when i click on “blog” page i get the next line: Fatal error: Only variables can be passed by reference in c:\wamp\www\wordpress\wp-includes\query.php on line 2561.
    Line 2561 state the next: $this->queried_object = & get_page(get_option(‘page_for_posts’));
    I will thanks for help.
    David

    What version of PHP are you using? If necessary use the script described in Finding_Server_Info to get that information.

    Related:
    http://ww.wp.xz.cn/support/topic/243548

    Thread Starter davidvil

    (@davidvil)

    Thank you so so much.
    The problem is solved after i replace the line 2561 with 2 lines:
    $tmpPageVariable = get_option(‘page_for_posts’);
    $this->queried_object = & get_page($tmpPageVariable);

    Thanks

    Well I’m guessing your hosting account does NOT meet requirements…
    http://ww.wp.xz.cn/about/requirements/

    Thread Starter davidvil

    (@davidvil)

    I don’t think so, because i have WAMP5 that install PHP5 and MYSQL5 so i don’t know why i had this problem?!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Creating static page/posts page’ is closed to new replies.