• Resolved tbo460

    (@thibotus01)


    Hi,

    When I authorize the app I got redirected correctly back to WP but the button “allow plugin…” is still present.

    I’m not sure if this is normal, maybe the plugin will always show that button.

    But:
    the app doesn’t appear in the list of allowed app in my Gmail setting.

    It’s like nothing happens – no app added in my gmail settings.

    Therefore, no emails are send thru this method.
    The error log is:

    There was a problem while sending a test email.
    The related debugging output is shown below:
    Versions
    
    WordPress: 4.9.1
    PHP: 7.0.11
    WP Mail SMTP: 1.0.2
    PHPMailer
    
    ErrorInfo: 
    Mailer: gmail
    Host: localhost
    Port: 25
    SMTPSecure: NULL 
    SMTPAutoTLS: bool(true) 
    SMTPAuth: bool(false)
Viewing 12 replies - 16 through 27 (of 27 total)
  • Plugin Author Slava Abakumov

    (@slaffik)

    @thibotus01

    I have not said that you are in local. All my replies are directed to certain people, that for some reason replied here, instead of creating separate threads.

    Regarding your case:
    It shows localhost because of the SMTP default configuration. But in case of configured Gmail – PHPMailer is not used at all. I can’t replicate that error.
    I see that gmail is the mailer of choice. Are you sure that you have fully installed the plugin? Can you please try to reinstall the plugin completely? No need to delete options, I just want to make sure that all of the files are on their places.
    In plugin direcotry wp-content/plugins/wp-mail-smtp you should see /vendor/ dir with a ton of directories and files in it. Also Make sure /src/Providers/Gmail/Mailer.php is on its place.

    Thank you for checking up my problem!

    @slaffik,

    Please find below answers to your question:

    [What the URL of a page where you see this error “Page not found”?]

    This is the URL where I see the error “Page Not Found”

    https://sitename.com/wp-admin/options-general.php?page=wp-mail-smtp&tab=auth&code=4/Q2-sqlD81kDD_yQ3v5SWZjAEg3eGJZ3LLz6wLEHCMsE&scope=https://www.googleapis.com/auth/gmail.send#

    [Were you logged in on a site when you come back to it and see that error?]
    I am already logged in on the site as Administrator in order to authorize the plugin to authenticate with my google account. Is this answer your question?

    Please advise?

    Thank you,
    -Charbel

    Plugin Author Slava Abakumov

    (@slaffik)

    @cnemnom

    You have some strange strict rules on site access. URL is valid.
    Please review any code (perhaps in functions.php of your theme) or plugins that might restrict access to your admin area. Try to deactivate all those things and retry the auth process.
    The issue is in your site configuration, your theme for some reason for a totally valid admin-area URL generates a front-end 404 page.

    Thread Starter tbo460

    (@thibotus01)

    Yes I have already deleted / reinstalled the plugin.

    Is there anything that could linked to a hosting limitation? I’m using pressidium.com a managed WP hosting on an Enterprise Architecture.

    @slaffik

    Thank you for your help!

    I don’t have any plugin that restrict access to the admin area. I am using Wordefence, I tried to disable it, and still the same issue. I cannot authenticate my google account.
    Could you please help on debugging this issue?
    I am using MH Magazine lite Theme and I don’t see any suspicious code functions.php, everything is set as default.

    Your help is highly appreciated.

    Plugin Author Slava Abakumov

    (@slaffik)

    @cnemnom and @thibotus01

    This topic may be related to you: https://www.ads-software.com/support/topic/google-verification-403-error/

    In short: mod_security Apache module prevents Google requests with auth_code. Without auth_code that is saved when you return from Google, you can’t send emails as the plugin can’t get access_token that is used in all requests to send emails.

    I mark this topic as resolved, as the initial problem seems to be fixed.

    Don’t forget to update to 1.1.0 with a new option Auto TLS for SMTP mailer ??

    • This reply was modified 7 years, 3 months ago by Slava Abakumov. Reason: better wording
    Thread Starter tbo460

    (@thibotus01)

    My hosting said they do not use mod_security or similar.

    I have still asked them to investigate on this…

    Thread Starter tbo460

    (@thibotus01)

    hosting answer:
    —–
    Well as far as I can see this is pointing to a bug with the plugin, as there is no error being logged either in the server logs, nor in WP_Debug logs (I’ve now disabled WP-Debug). I recommend that you try uninstalling the plugin entirely, then re-install it and re-configure it from scratch. If that doesn’t work, try downgrading it if you have an older version on hand.

    In either case please contact WP-SMTP support to report the issue and seek further assistance as it doesn’t look like something on our side.
    —–

    I have limited knowledge when it comes to these things, i followed the secure method of sending wordpress emails through Gmail with WP mail smtp and the test email option is giving me an error.

    Versions:
    WordPress: 4.9.1
    WordPress MS: No
    PHP: 5.5.18
    WP Mail SMTP: 1.1.0

    PHPMailer:
    Mailer: gmail

    SMTP Debug:
    [empty]

    Besides that everything else worked fine, not sure what the issue is, would be lovely if you could help ?? thank you!

    Plugin Author Slava Abakumov

    (@slaffik)

    @miniyawn

    It seems you have not finished configuring the Gmail mailer.
    You need to click “Allow plugin to send emails using your Google account” button in admin area. You will be redirected to Google, log in there, enable the site using your newly created Gmail project and you should come back to your site. After that the button “Allow…” should disappear and everything should start working fine.

    @thibotus01 and all others:

    The upcoming version 1.2.0 will contain additional information when displaying debug message. It will be much easier to understand the problem.

    ———–

    I will mark this topic as resolved, as it becomes too hard to manage replies to different people with different problems in the same thread.

    PLEASE CREATE SEPARATE TOPICS.

    I will not reply here anymore, as all my (and yours!) replies ping lots of people that have nothing to do with your problems.

    Hi

    I am getting 404 error when its going back to the website after authorizing.

    Regards

Viewing 12 replies - 16 through 27 (of 27 total)
  • The topic ‘1.0.2 – Gmail Auth’ is closed to new replies.