Title: Error if on PHP 7 server
Last modified: July 17, 2018

---

# Error if on PHP 7 server

 *  Resolved [spabav](https://wordpress.org/support/users/spabav/)
 * (@spabav)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-if-on-php-7-server/)
 * Hi,
    when i run our site on php 5.6 the GDPR plugin runs fine.
 * If we switch to php 7.2 , and activate the wp_debug to true, we see the following
   error:
 * Undefined variable: version in /oursite.com/public_html/wp-content/plugins/cookie-
   law-info/php/functions.php on line 153
 * Would be great if you could let us know how we can fix this problem.

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

 *  [teezi](https://wordpress.org/support/users/teezi/)
 * (@teezi)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-if-on-php-7-server/#post-10505150)
 * Same problem here.
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-if-on-php-7-server/#post-10505223)
 * Hi [@spabav](https://wordpress.org/support/users/spabav/) [@teezi](https://wordpress.org/support/users/teezi/),
 * We will be fixing this issue in the upcoming update of the plugin.
 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-if-on-php-7-server/#post-10507550)
 * Hi [@spabav](https://wordpress.org/support/users/spabav/) [@teezi](https://wordpress.org/support/users/teezi/),
 * We have fixed the issue in the latest update of the plugin. Please check with
   the latest version and let us know if the issue persists.

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

The topic ‘Error if on PHP 7 server’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/error-if-on-php-7-server/#post-10507550)
 * Status: resolved