Title: Potential errors with PHP 7.0
Last modified: April 11, 2017

---

# Potential errors with PHP 7.0

 *  Resolved [supersaving](https://wordpress.org/support/users/supersaving/)
 * (@supersaving)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/potential-errors-with-php-7-0/)
 * My webhost has recently updated to PHP 7.0 and provided a plugin to make sure
   my WordPress site was compatible. Despite PHP 5.4 (or higher)/PHP 7.0 (or higher)
   being listed under requirements, my webhost’s tool identified the following potential
   errors:
 * FILE: /home/…/public_html/wp-content/plugins/wp-piwik/proxy/piwik.php
    —————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE —————————————————————————————- 98 | ERROR | INI
   directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since
   PHP 5.4. —————————————————————————————-
 * FILE: /home/…/public_html/wp-content/plugins/wp-piwik/classes/WP_Piwik.php
    —————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE —————————————————————————————- 353 | ERROR | Using‘
   break’ outside of a loop or switch structure is invalid and will throw a fatal
   error since PHP 7.0 —————————————————————————————-
 * I’m unable to use the tool to switch over to PHP 7.0 until no potential errors
   are detected. Thanks in advance for your help.

Viewing 1 replies (of 1 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/potential-errors-with-php-7-0/#post-9017524)
 * WP-Piwik is completely PHP7 compatible.
 * The first “error” can be ignored (in fact, it should be a warning or a notice).
   The directive is set for backward compatibility and does not affect newer PHP
   versions.
 * The second error does not exist (it’s a false positive, there is no break outside
   a loop).
 * Please have a look at the existing threads about this for further details:
    [https://wordpress.org/support/topic/php-7-compatibility-errors-2/](https://wordpress.org/support/topic/php-7-compatibility-errors-2/)
   [https://wordpress.org/support/topic/php7-compatible-15/](https://wordpress.org/support/topic/php7-compatible-15/)
   [https://wordpress.org/support/topic/php-7-compatibility-88/](https://wordpress.org/support/topic/php-7-compatibility-88/)
   [https://wordpress.org/support/topic/php7-compatibility-31/](https://wordpress.org/support/topic/php7-compatibility-31/)

Viewing 1 replies (of 1 total)

The topic ‘Potential errors with PHP 7.0’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 1 reply
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/potential-errors-with-php-7-0/#post-9017524)
 * Status: resolved