• Resolved JapeNZ

    (@japenz)


    Hi there,
    Awesome plugin, thank you!

    I’m getting a PHP Depreciated notice in my debug log, here are the details:

    PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /wp-content/plugins/gmail-smtp/PHPMailer/PHPMailerAutoload.php on line 45

    Looking at the code in question, it seems to be in there for compatibility with PHP older than 5.1.2.
    As your plugin states a minimum requirement of PHP 5.6 does this need to be in there?

    If it doesn’t, am I safe to remove this:

    `else {
    /**
    * Fall back to traditional autoload for old PHP versions
    * @param string $classname The name of the class to load
    */
    function __autoload($classname)
    {
    PHPMailerAutoload($classname);
    }
    }`

    Not a big deal at all of course, I’m just trying to clean up my error log 🙂

    Thanks for your help!

    Kind regards,
    JP

Viewing 5 replies - 1 through 5 (of 5 total)
  • Php compatibility checkers are giving me 53 errors with gmail smtp plugin. Can I upgrade to php 7 ow will it break?

    Plugin Author Noor Alam

    (@naa986)

    @cparts, I have tested this on PHP 7.1.8. So far there is no issue.

    Thread Starter JapeNZ

    (@japenz)

    Hi @naa986,
    I’m still seeing the following:

    [08-Mar-2019 19:16:15 UTC] PHP Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /wp-content/plugins/gmail-smtp/PHPMailer/PHPMailerAutoload.php on line 45

    I’m using PHP 7.2, do you think this might be the issue?

    Cheers,
    JP

    Plugin Author Noor Alam

    (@naa986)

    @japenz, This has been fixed. For some reason PHP 7.2 (or higher) shows this warning notice even though that code is not getting executed.

    Thread Starter JapeNZ

    (@japenz)

    Hi @naa986,
    Thanks for getting back to me 🙂

    I assumed this wasn’t really an issue, just wanted to double check with you.

    Cheers,
    JP

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