• Resolved David Lingren

    (@dglingren)


    Activating the plugin in a site running PHP 7.x generated this message:

    [20-Feb-2017 20:40:01 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Photonic has a deprecated constructor in …\wp-content\plugins\photonic\photonic.php on line 19

    Changing line 19 from function Photonic() { to function __construct() { eliminates the message.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    I have addressed this for the next version. Thank you for reporting it.

    Plugin Author Sayontan Sinha

    (@sayontan)

    I have taken care of this in version 1.64 (just released).

    berteh

    (@berteh)

    thanks. same issue (and fix) in
    Photonic_Options_Manager has a deprecated constructor in /home/stockemo/wordpress/wp-content/plugins/photonic/photonic-options-manager.php on line 2

    Plugin Author Sayontan Sinha

    (@sayontan)

    Ah, OK. I thought there was only one such instance. I will get this put into the next version.

    In any case, this will not affect the plugin behaviour, so you should be okay.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 7.x Deprecated constructor message’ is closed to new replies.