I have the same problem, I disabled the plugin waiting for a possible solution
Same here. The error message is:
Parse error: syntax error, unexpected T_FUNCTION in /home/MYHOMEFOLDER/domains/MYSITE.COM/public_html/wp-content/plugins/eu-cookie-law/class-frontend.php on line 5
-
This reply was modified 9 years, 4 months ago by
MyotisSI. Reason: typo
Thread Starter
YacaZG
(@yacazg)
I overwrited the file class-frontend.php on the server from the backup and it helped, but it’s not a resolved problem
I also got the same error after updating. Have disabled until I hear it is fixed.
Hi,
which PHP version are you using?
https://wordpress.org/about/requirements/
The T_Function error could be caused by PHP version 5.2 (or less), which has reached official End Of Life on January 6, 2011 and as such may expose your site to security vulnerabilities.
If you are using that version, please ask your host to upgrade it (recommended version for WP is PHP 7 or greater)
Yea, On one of my sites the problem is PHP 5.2.
The best solution is to upgrade the php version: most of server providers already offer a free and easy option to set php version in the hosting panel.
Updated PHP version and running again.
thanks for the solution