Support » Plugin: wp-flickr-press » PHP 7 notice

  • I’ve just installed WP 4.7.4 (current latest version) in my development machine, and using PHP 7 as currently recommended by wordpress.org

    Using wp-flickr-press and having “define(‘WP_DEBUG’, TRUE);” in wp-config.php for my development environment, I get a couple of notices:
    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr has a deprecated constructor in C:\UwAmp\www\WpTest\wp-content\plugins\wp-flickr-press\libs\phpflickr\phpFlickr.php on line 24
    and
    Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; phpFlickr_pager has a deprecated constructor in C:\UwAmp\www\WpTest\wp-content\plugins\wp-flickr-press\libs\phpflickr\phpFlickr.php on line 1782

    Actually they are more than simply notices, since the admin menu is broken.

    with WP_DEBUG = false there is no problem.

    I fixed the code in my environment as suggested here https: / / cweiske.de/tagebuch/php4-constructors-php7.htm, but it would be nice if the fix was in the “official” version of the plugin, to avoid problems with future updates

    Thanks for your help

    • This topic was modified 4 years, 2 months ago by jumpy2015.
    • This topic was modified 4 years, 2 months ago by jumpy2015.
  • The topic ‘PHP 7 notice’ is closed to new replies.