Title: Error after update
Last modified: January 9, 2017

---

# Error after update

 *  [YacaZG](https://wordpress.org/support/users/yacazg/)
 * (@yacazg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/)
 * Hello,
 * I made update of plugin today, but last update broke my site.
    There was error
   in file class-frontend.php in line 5

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

 *  [Gabriel Sanz](https://wordpress.org/support/users/gabrielsanz/)
 * (@gabrielsanz)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8634586)
 * I have the same problem, I disabled the plugin waiting for a possible solution
 *  [MyotisSI](https://wordpress.org/support/users/myotissi/)
 * (@myotissi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8636901)
 * 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](https://wordpress.org/support/users/myotissi/).
      Reason: typo
 *  Thread Starter [YacaZG](https://wordpress.org/support/users/yacazg/)
 * (@yacazg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8637906)
 * I overwrited the file class-frontend.php on the server from the backup and it
   helped, but it’s not a resolved problem
 *  [Plum Doodles](https://wordpress.org/support/users/plum-doodles/)
 * (@plum-doodles)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8639035)
 * I also got the same error after updating. Have disabled until I hear it is fixed.
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8642339)
 * Hi,
    which PHP version are you using?
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8642371)
 * [https://wordpress.org/about/requirements/](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)
 *  Thread Starter [YacaZG](https://wordpress.org/support/users/yacazg/)
 * (@yacazg)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8645432)
 * Yes, its 5.2
 *  [MyotisSI](https://wordpress.org/support/users/myotissi/)
 * (@myotissi)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8645458)
 * Yea, On one of my sites the problem is PHP 5.2.
 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8647094)
 * 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.
 *  [Gabriel Sanz](https://wordpress.org/support/users/gabrielsanz/)
 * (@gabrielsanz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8713144)
 * Updated PHP version and running again.
    thanks for the solution

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

The topic ‘Error after update’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/eu-cookie-law_39293e.svg)
 * [EU Cookie Law for GDPR/CCPA](https://wordpress.org/plugins/eu-cookie-law/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eu-cookie-law/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eu-cookie-law/)
 * [Active Topics](https://wordpress.org/support/plugin/eu-cookie-law/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eu-cookie-law/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eu-cookie-law/reviews/)

## Tags

 * [class-frontend.php](https://wordpress.org/support/topic-tag/class-frontend-php/)

 * 10 replies
 * 5 participants
 * Last reply from: [Gabriel Sanz](https://wordpress.org/support/users/gabrielsanz/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-after-update-82/#post-8713144)
 * Status: not resolved