• Resolved Torsten Landsiedel

    (@zodiac1978)


    Hi!

    I’ve tested all my plugins with this PHP linter:
    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/

Viewing 1 replies (of 1 total)
  • Plugin Author braekling

    (@braekling)

    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 (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.