• Resolved wunch

    (@wunch)


    Running v1.2.5 of your plugin on WordPress 4.7.5 under PHP 7 with debugging on results in a deprecated method warning:

    PHP Deprecated: Non-static method ConstantContact_Notification_Content::reCAPTCHA() should not be called statically in /var/www/wordpress/web/app/plugins/constant-contact-forms/includes/class-notifications.php on line 159

    This is the second deprecated item on the PHP 7 list: https://php.net/manual/en/migration70.deprecated.php

    Judging by the other methods in that class (all static), and the fact that this method is only called once in your code, it seems a safe fix is to just make ConstantContact_Notification_Content::reCAPTCHA() a static method. I gave it a try and that seemed to work on my install.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @wunch. This is something we noticed as well in our own development, and it will be addressed in the next release of the plugin.

    Thank you for providing the feedback, nonetheless. We appreciate it.

    Plugin Author Constant Contact

    (@constantcontact)

    Marking resolved as it’s a known issue that has been addressed.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated Method call (PHP 7)’ is closed to new replies.