Title: PHP 7.x compatibility
Last modified: August 31, 2016

---

# PHP 7.x compatibility

 *  [hr-automation](https://wordpress.org/support/users/hr-automation/)
 * (@hr-automation)
 * [10 years ago](https://wordpress.org/support/topic/php-7x-compatibility/)
 * Hello,
 * we are running in some issues with PHP 7.0.7 and EU Cookie Law. Can you please
   provide us some informations when this plugin will be ready for PHP 7? Thanks.
 * [https://wordpress.org/plugins/eu-cookie-law/](https://wordpress.org/plugins/eu-cookie-law/)

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

 *  Plugin Author [Marco Milesi](https://wordpress.org/support/users/milmor/)
 * (@milmor)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-7451083)
 * Hi,
    please let me know issues because the plugin should work with PHP7
 *  Thread Starter [hr-automation](https://wordpress.org/support/users/hr-automation/)
 * (@hr-automation)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-7451086)
 * After the last update of the plugin all is running OK with PHP 7.0.8!
 * We changed the Plugin after the issues, so i can not provide you anymore any 
   near details about this. But what i remember is, that we are running in Problems
   with activated plugin and set the “Cookie acceptance length”.
 * Best regards.
 *  Thread Starter [hr-automation](https://wordpress.org/support/users/hr-automation/)
 * (@hr-automation)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-7451087)
 * Hi Marco!
 * The error messages what we get by saving the settings with PHP 7.0.7 and latest
   Plugin Version:
 *     ```
       Notice: Undefined index: port in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 52
   
       Notice: Undefined index: closelink in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: boxcontent in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: autoblock in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: tinymcebutton in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: scrollconsent in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: navigationconsent in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: networkshare in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: onlyeuropean in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: customurl in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: networkshareurl in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-law/defaults.php on line 33
       ```
   
 * Standard error message we open the plugin setting page:
    `Notice: Undefined index:
   port in /var/www/vhosts/example.com/relaunch2015/wp-content/plugins/eu-cookie-
   law/defaults.php on line 52`
 *  [michowas](https://wordpress.org/support/users/michowas/)
 * (@michowas)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-8206658)
 * Hello,
 * I am having similar Notification:
 * Notice: Undefined index: port in ../plugins/eu-cookie-law/defaults.php on line
   52
    Notice: Undefined index: closelink ../plugins/eu-cookie-law/defaults.php 
   on line 33
 * Thanks for your help in advance
    -  This reply was modified 9 years, 8 months ago by [michowas](https://wordpress.org/support/users/michowas/).
 *  [bmwm](https://wordpress.org/support/users/cbmwm/)
 * (@cbmwm)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-9039817)
 * On our Apache2, PHP 7.0.4 FPM/FastCGI, Multisite WordPress 4.7.3 we currently
   get this PHP warnings with EU Cookie Law 2.10:
 *     ```
       Notice: Undefined index: port in /var/www/html/wp-content/plugins/eu-cookie-law/defaults.php on line 52
   
       Notice: Undefined index: autoblock in /var/www/html/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: boxlinkblank in /var/www/html/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: tinymcebutton in /var/www/html/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: onlyeuropean in /var/www/html/wp-content/plugins/eu-cookie-law/defaults.php on line 33
   
       Notice: Undefined index: customurl in /var/www/html/wp-content/plugins/eu-cookie-law/defaults.php on line 33
       ```
   
 * Is this PHP version related?
 *  [tomasofen](https://wordpress.org/support/users/tomasofen/)
 * (@tomasofen)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-9076348)
 * We are having the same issue with WordPress 4.7.4 and PHP 5.6.30
 * The first error messages were related with this, but after fixing thoose lines,
   the plugin give a lot of errors while trying to save in configuration screen.
 * Any chance of a reply to this topic?

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

The topic ‘PHP 7.x compatibility’ 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

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)
 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 6 replies
 * 5 participants
 * Last reply from: [tomasofen](https://wordpress.org/support/users/tomasofen/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-7x-compatibility/#post-9076348)
 * Status: not resolved