• Resolved pawanahluwalia

    (@pawanahluwalia)


    Hi,

    I have followed all of your instructions for a gmail connection. I have copied the Client ID and Client Secret without spaces before and after as instructed. However, when I save the settings I get an error at the bottom of the settings page. I don’t want to copy the whole error here in case it has sensitive information. But here is the start of it:

    Fatal error: Uncaught Error: Call to undefined method Composer\Autoload\ClassLoader::setClassMapAuthoritative() in

    Please advise what to do.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter pawanahluwalia

    (@pawanahluwalia)

    I have also tried using the plugin set up as ‘Other SMTP’ with the following settings:

    SMTP Host: smtp.gmail.com
    SMTP Port: 465
    Encryption: Use SSL encryption.

    The email test produces the following message:

    The page you are looking for is temporarily unavailable.
    Please try again later.
    af0d57fec86fb9ce1a5ed42ed2efb749 c5a4cf52806b764c2dd3bcc05764c02a 9ad5bf6ab7f7a7f9ad95adc03be94839

    I then tried:

    SMTP Host: smtp.gmail.com
    SMTP Port: 587
    Encryption: Use TLS encryption.

    and got the same result.

    Again, please advise what to do.

    Thread Starter pawanahluwalia

    (@pawanahluwalia)

    Further information:

    I have tried ‘Post SMTP’ plugin using the same Gmail API and it works fine. Obviously I had to add their Authorized Redirect URI to do this.

    Does this means there is something not working with WP Mail SMTP?

    Plugin Author Slava Abakumov

    (@slaffik)

    Regarding the first issue:

    Different plugins could autoload different Composer autoloader under their vendor/composer directories, and if the first-loaded one is using a rather old autoloader (which did not support psr4), the latter one (likely set-up with newer Composer) cause this error.
    As all the plugins are initially loaded in alphabetical order, and wp-mail-smtp is one of the latest plugins in that list on your site – our plugin generates that error, while the initial issue is on some other plugin with out-of-date autoloader files.

    That would be great if you could deactivate other plugins one by one to identify the one, that causes WP Mail SMTP generate that error.

    —————————————————

    The page you are looking for is temporarily unavailable.

    This is a Google issue, not ours, as their servers might be not available for some reason for you or (most likely) your server.

    —————————————————

    Post SMTP might work because it uses old-fashioned manual files loading logic, and not uses composer autoloader. Thus, it doesn’t conflict with some other plugin with outdated composer autoloader.

    • This reply was modified 6 years, 2 months ago by Slava Abakumov. Reason: fixed typos
    Thread Starter pawanahluwalia

    (@pawanahluwalia)

    Thanks for your reply. However, ultimately as an end user who is running a small business and is not a programmer, I just want things to work without having to investigate which plugins may conflict with WP Mail SMTP. I selected this plugin as it was the most popular. The fact that it doesn’t work for me either using the Gmail API or directly by signing in to the Gmail smtp server means, for me, it doesn’t work. Thanks again!

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