Support » Plugin: WordPress Ping Optimizer » PHP Errors

  • Resolved WiKaBot

    (@wikabot)


    Hi, I had to debug my WordPress and found the following Error in great numbers. Several MB in Hours:

    [10-Jul-2017 15:03:23 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; cbnetPingOptimizer has a deprecated constructor in […] /wp-content/plugins/wordpress-ping-optimizer/cbnet-ping-optimizer.php on line 36
    [10-Jul-2017 15:03:23 UTC] PHP Notice: get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead. in […] /wp-includes/functions.php on line 4023

    For that reason I disabled ping optimizer.
    Do you have any idea to solve that problem?

    I am using php 7.1.7 | WP 4.8 and MH-Magazine Theme if this Infos are helpful.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am having the same issue on PHP 7.

    He should replace “siteurl” with “url”. I hope he can arrange the update soon.

    All the best!

    Hi.
    There is no technology that can be fixed to “Pankaj Jha”.

    Well I’m in the same boat, and with php 7 upgrades being widespread this year end it is likely that this plugin will be relegated to oblivion unless it is fully re-written to php 7 standards.

    Any idea if or when this might happen? Otherwise..what other plugin options are out there?

    Plugin Author Pankaj Jha

    (@masdiblogs)

    Thank you all to post the issue. This issue has been fixed now. I changed theold code as per the latest PHP standard.
    $this->cbnetpo_siteurl = site_url();
    $this->cbnetpo_path = plugin_dir_path( __FILE__ );
    $this->cbnetpo_fullpath = plugin_dir_url( __FILE__ );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Errors’ is closed to new replies.