• Hello,

    I have several mistakes in my error.log:
    host: “www.enduro.de”
    07/31/2015 16:17:15 [error] 26864 # 0: * 3540539 FastCGI sent to stderr: “PHP message: PHP Fatal error: Can not access property WP :: $ public_query_vars in / var / www / clients / client1 / web2 / web / wp-includes / class-wp.php on line 94 “while reading response headers from upstream, client: 144.76.14.84, server: enduro.de, request:” GET /index.php/feed/ HTTP / 1.1 “upstream” FastCGI: // UNIX: /var/lib/php5-fpm/web2.sock “

    In the class-wp.php amenities in this section:
    * Add name to list of public query variable.
    *
    *since 2.1.0
    *
    *param String $ qv query variable name.
    * /
    public function add_query_var ($ qv) {
    if (! in_array ($ qv, $ this-> public_query_vars))
    $ this-> public_query_vars [] = $ qv;
    }

    / **

    The line 94:
    if (! in_array ($ qv, $ this-> public_query_vars))

    Can help me, someone? Many Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey, Marko!

    An easy thing to try would be to rename the wp-includes/class-wp.php file and try to replace it with a fresh one from your theme. If that file somehow became corrupted, and the fresh one was good, that should fix that particular problem.

    Another things you might try that’s quick and easy is to go to myPHPAdmin and do an analysis on your files. If there are any problems with any tables, repair them.

    Hello folks,

    Getting the same error for more then past two months now.

    every time I took above actions but again I got same errors sometimes one time a day or sometimes many times a day!

    further more I also change permission of file to 444 still it get corrupted!

    please help regarding this issue, even my site is now showing up in google search result….

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot access property WP::$public query_vars’ is closed to new replies.