I have the following error message in the error log file of my website.
Can you explain me what it means, is there security problem?
How could I fix it?
[Mon Feb 25 21:04:34 2013] [error] [client 173.199.116.83] PHP Parse error: syntax error, unexpected T_VARIABLE in /Mywebsite/wp-includes/functions.php on line 192
[Mon Feb 25 20:48:01 2013] [error] [client 80.118.73.90] PHP Parse error: syntax error, unexpected T_VARIABLE in /Mywebsite/wp-includes/functions.php on line 192, referer: http://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDQQFjAA&url=http%3A%2F%2Fwww.banahan.fr%2F&ei=4r8rUfSBAYe2hQevjICABg&usg=AFQjCNHbl8fe0yvfJH0lEdTBUNw1FYw1tA&sig2=7PRr2vM5qj9DuX64oZXwwQ&bvm=bv.42768644,d.ZG4
[Mon Feb 25 19:37:42 2013] [error] [client 91.207.4.186] PHP Parse error: syntax error, unexpected T_VARIABLE in /Mywebsite/wp-includes/functions.php on line 192, referer: http://glavprofit.ru/
[error] [client 217.13.55.146] PHP Fatal error: require_once() [function.require]: Failed opening required ‘/Mywebsite/wp-admin/includes/plugin.php’ (include_path=’.:/Library/Tenon/PHP/lib/php’) in /Mywebsite//wp-includes/update.php on line 144
Your error log file is a listing of problems you need to fix.
So, if I were to take the first item as an example: go to the file referenced, go to line 192, and fix the code (opening and closing parentheses properly, using correct syntax, writing variables properly, etc).
Go down the list and do this for all of them, and your site will work properly.
I see these questions a lot and it’s generally based on some plugin that was installed where the coder is trying to use php short open tags when it is not supported.
Edit you php.ini file and change the following:
And set it to:
Then restart your apache and or php-fpm if your running fpm and check to see if the issue has gone away. Short open tags are bad standard as per php documentation however a lot of developers still seem to keep using them regardless.