Title: PHP7 compatibility
Last modified: September 1, 2016

---

# PHP7 compatibility

 *  Resolved [Torsten Landsiedel](https://wordpress.org/support/users/zodiac1978/)
 * (@zodiac1978)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/php7-compatibility-31/)
 * Hi!
 * I’ve tested all my plugins with this PHP linter:
    [https://wordpress.org/plugins/php-compatibility-checker/](https://wordpress.org/plugins/php-compatibility-checker/)
 * Unfortunately I found a problem with your plugin:
 * > FILE: /wp-content/plugins/wp-piwik/proxy/piwik.php
   >  ———————————————————————-
   > FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————- 98 | ERROR | INI directive‘
   > magic_quotes_runtime’ is deprecated from PHP 5.3 and forbidden from PHP 5.4.———————————————————————-
 * Would be great if you can fix this!
 * All the best,
    Torsten
 * [https://wordpress.org/plugins/wp-piwik/](https://wordpress.org/plugins/wp-piwik/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php7-compatibility-31/#post-7630195)
 * Hi Torsten,
 * thanks for the hint! But don’t worry: There is no fix required, because the call
   is silenced with an @ sign. So if the directive can be set, it will be set… otherwise
   nothing happens. But even without the silence marker setting a not-existing INI
   directive should not cause an error.
 * The file proxy/piwik.php is a branch of Piwik’s proxy script which should work
   with PHP7: [https://github.com/piwik/tracker-proxy/issues/12](https://github.com/piwik/tracker-proxy/issues/12)(
   there are no known issues).
    (If you are not using the proxy tracking code, you
   don’t have to care about this file.)
 * Btw. WordPress sets this directive, too. Open wp-settings.php and have a look
   at line 48ff:
 *     ```
       // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
       @ini_set( 'magic_quotes_runtime', 0 );
       @ini_set( 'magic_quotes_sybase',  0 );
       ```
   
 * I’m running WP-Piwik on PHP 7 for several months now and everything works fine.
 * Long story short: Don’t worry, feel free to update. WordPress, Piwik and WP-Piwik
   are PHP7 compatible. 🙂
 * Best regards
    André

Viewing 1 replies (of 1 total)

The topic ‘PHP7 compatibility’ 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, 9 months ago](https://wordpress.org/support/topic/php7-compatibility-31/#post-7630195)
 * Status: resolved