Google Loginization error from the Google API

This topic has 39 replies, 2 voices, and was last updated 1 months, 2 weeks ago ago by Andrew Mitchell

  • Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 12, 2024 at 03:13

    Hello. I have a problem with Google Loginization settings. It is correctly configured as indicated in the tutorials but an error window appears.

    I need help to solve it. I attach a screenshot of the configuration.

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    38 Answers
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 12, 2024 at 03:24

    works only if the link is:

    https://mywebsite.cl/my-account//google/oauth2callback

    but if I place another page that I want it to direct me to, it doesn’t work, example:

    https://mywebsite.cl/cart//google/oauth2callback

    I need you to direct it to the page that I select, since the idea is that when you want to make the purchase, you log in with Google and return to the cart or checkout page (not to my account) to continue the purchase process

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 12, 2024 at 14:31

    Hello, LVRB Love’s Rebel,

    I hope this message finds you well. We regret to inform you that currently, the login redirection is only functioning for the my-account page. Unfortunately, this does not extend to the pages for cards and checkout, which disrupts the payment process. Systems such as PayPal may not accept payments due to this interruption in the checkout process.

    We are prepared to assist you in resolving this issue. To proceed, we would require administrative access to your site and FTP credentials.

    Thank you for your attention to this matter. We look forward to your prompt response to facilitate the necessary adjustments.

    Best Regards,
    8Theme’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 12, 2024 at 16:20

    But if you can’t go to checkout, I need you to go to the My Cart page, that wouldn’t have a redirection problem from what I read since it doesn’t interrupt any payment process.

    Why would they need to enter my site? When entering, can you configure and authorize the callback to be to my cart page?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 13, 2024 at 16:09

    Hello, LVRB Love’s Rebel,

    Regarding the modifications to the page cards, we are prepared to proceed with the necessary changes. However, to do so effectively, we require FTP access to alter the theme files accordingly.

    Thank you for your attention to this matter.

    Best Regards,

    8Theme’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 13, 2024 at 16:43

    Hello!

    I leave the accesses in the private area.

    If these changes are made to the test site, will the site fail when I migrate it to the primary domain? Will the modifications and codes created be unconfigured?

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 14, 2024 at 13:20

    Hello, LVRB Love’s Rebel,

    Thank you for providing us with the necessary access. We kindly request that you add the following URLs for Google redirects:

    1. https://mywebsite.cl/my-account//google/oauth2callback
    2. https://mywebsite.cl/cart//google/oauth2callback

    Additionally, we would appreciate it if you could disable the “coming soon” mode during testing.

    You can view the links for your website in the private content section.

    Best regards,

    8Theme’s Team

    Please contact administrator
    for this information.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 14, 2024 at 15:40

    Hello! I entered the link to redirect to “cart” ( https://mywebsite.cl/cart//google/oauth2callback ) but it still sends the same error.

    It only works with the “my account” link.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 15, 2024 at 14:48

    Hello, LVRB Love’s Rebel,

    I hope this message finds you well. We kindly request the addition of the following links to your system:

    1. https://mywebsite.cl/my-account//google/oauth2callback
    2. https://mywebsite.cl/cart//google/oauth2callback

    Please also ensure to add:
    https://mywebsite.cl/my-account//google/oauth2callback

    We appreciate your prompt attention to this matter. Should you have any questions or require further information, please do not hesitate to contact us.

    Best Regards,
    8Theme’s Team

    Files is visible for topic creator and
    support staff only.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 15, 2024 at 19:24

    It only redirects me to “my account” if I add both links and the redirection to “cart” does not work.

    I need the redirection to be only to my cart.

    Files is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 16, 2024 at 16:05

    Hello, LVRB Love’s Rebel,

    To ensure the login functionality operates correctly, it is essential to maintain both links in the redirects within the Google console.

    Additionally, to consistently redirect to the cart page, please replace the following file:

    wp-content/plugins/et-core-plugin/app/controllers/authorize.php

    You can download the new file from this link: https://we.tl/t-Wy5gkhoKWX

    Furthermore, please insert the following code into the functions.php file of your child theme:

    add_filter('et_authorize_redirect', function ($page){
        return 'cart';
    }, 1, 10 );

    Should you require any further assistance, please do not hesitate to contact us.

    Best Regards,
    The 8Theme Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 16, 2024 at 16:22

    Hello.

    Where should I replace the file and code? Please I need to know or help me do it.

    These changes only apply to logging in or registering with Google, right?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 17, 2024 at 11:48

    Hello, LVRB Love’s Rebel,

    I hope this message finds you well.

    We are ready to proceed with the necessary updates on your behalf. However, the FTP credentials previously provided are no longer functional. Could you please provide us with updated working FTP access details?
    You will find additional details in the attached files. Once we receive the new credentials, we will gladly carry out the updates for you.

    Should you prefer to make these updates yourself, please replace the following file:
    wp-content/plugins/et-core-plugin/app/controllers/authorize.php
    with the file from this link: https://we.tl/t-Wy5gkhoKWX

    Additionally, please insert the following code into your wp-content/themes/xstore-child/functions.php:

    add_filter('et_authorize_redirect', function ($page){
        return 'cart';
    }, 1, 10 );

    We appreciate your cooperation and look forward to your prompt response.

    Best Regards,
    8Theme’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 17, 2024 at 17:31

    You will find access in the private area.

    When I migrate the site, will this solution be deconfigured?

    Greetings!

    Please contact administrator
    for this information.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 20, 2024 at 14:16

    Hello. They have not yet responded to me on this topic and I have attached the accesses in the private area.

    I’ll upload them again.

    Please contact administrator
    for this information.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 21, 2024 at 02:32

    HI, please i need help!

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 21, 2024 at 10:43

    Hello, LVRB Love’s Rebel,

    We hope this message finds you well.

    We would like to express our gratitude for providing us with the necessary access. We are pleased to inform you that we have successfully implemented all the required modifications. Now, the social media authorization process redirects users to the card page as intended.

    Please take a moment to verify this update at your earliest convenience.

    Thank you for your attention and cooperation.

    Best Regards,
    8Theme’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 21, 2024 at 14:39

    Hello
    Thank you so much!

    After this improvement I have some questions:

    1. When you migrate, will this enhancement be unconfigured?

    2. Can it be configured that if I want to log in directly from my account it will redirect me to my account, and if I log in from the purchase of a product it will be redirected to the cart?

    Thanks!!!!! <3

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 23, 2024 at 14:23

    Hello, LVRB Love’s Rebel,

    I hope this message finds you well.

    Regarding the migration process, I would like to confirm that all changes will be preserved during the migration.

    As for the login redirection, we have implemented the following procedure: if a user is on the “My Account” page, they will be redirected to the same page. If they are on any other page, they will be redirected to the cart page.

    To achieve this, we have added the following code to the functions.php file of the child theme.

    // Set transient when on the My Account page during login form submission
    add_action('template_redirect', function() {
        if ( function_exists('is_account_page') && is_account_page()) {
            set_transient('et_is_my_account_login', true, 30);
        }
    });
    
    // Modify redirect based on the transient
    add_filter('et_authorize_redirect', function($page) {
        if (get_transient('et_is_my_account_login')) {
            delete_transient('et_is_my_account_login');
            return 'myaccount';
        }
        return 'cart';
    }, 10, 1);

    Thank you for your attention to this matter.

    Best Regards,
    8Theme’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 23, 2024 at 15:03

    Hello.

    The code they mention now only directs me to my account from any area and not to my cart.

    Remember that this is for the customer to log in before going to checkout, so if they are purchasing at the beginning, they must be redirected to the cart to continue the purchasing process normally.

    In the configuration prior to the code just indicated, if I was making a purchase and logged in it would redirect me to my cart but now it does so to my account from anywhere.

    I need that if the customer is purchasing, the login redirects them to my cart, and if the customer is going to log in from my account directly without making a purchase, they be redirected to my account.

    Please contact administrator
    for this information.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 25, 2024 at 17:23

    Hello. Please I need help to close this topic and solve the problem. I want to migrate the site these days.

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    August 27, 2024 at 02:38

    Hello! Please let me know if it is already resolved. I need to resolve this now to migrate the site.

    Thanks

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    August 27, 2024 at 16:40

    Hello, LVRB Love’s Rebel,

    We would like to inform you that our team is still diligently working on resolving the issue at hand. We appreciate your patience and understanding during this process.

    Best Regards,

    8Them’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    September 5, 2024 at 22:02

    Hello!
    I still don’t have a solution to this problem

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 6, 2024 at 16:14

    Hello, LVRB Love’s Rebel,

    We hope this message finds you well. We are currently continuing our work on the modification and will notify you as soon as we have an outcome.

    Best Regards,

    8Theme’s Team

    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    September 13, 2024 at 18:23

    Hello. The days continue to pass and there is still no solution to this, the paid support period is going to expire and I need to have my website finished and ready to go.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 17, 2024 at 15:15

    Hello, LVRB Love’s Rebel,

    We hope this message finds you well. We have implemented some modifications and kindly request that you review them at your earliest convenience. Additionally, please check the tab for attached files for further details.

    We would also like to emphasize that modifications or customizations are not covered under standard support. For such services, we have a dedicated department ready to assist you. You can access these services through the following link:
    https://www.8theme.com/account/#etheme_customization_panel

    Thank you for your attention to these matters. Should you have any questions or require further assistance, please do not hesitate to contact us.

    Best Regards,

    The 8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    September 17, 2024 at 16:43

    Hello.
    It still doesn’t work. When I add a product to the cart and complete the purchase, with the login it says error and requests that I log in again and sends you to the admin panel.

    I attach video

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 18, 2024 at 14:07

    Hello, LVRB Love’s Rebel,

    I hope this message finds you well. We are reaching out to inquire whether there have been any recent updates or modifications to the “Finalizar compra” button in the popup. It is expected to redirect users to the cart page rather than the “My Account” page.

    Best regards,
    The 8Theme Team

    Files is visible for topic creator and
    support staff only.
    Avatar: LVRB Love's Rebel
    LVRB Love's Rebel
    Participant
    September 18, 2024 at 14:41

    Hello.

    No changes have been made. It is exactly the same configuration as always.
    The video shows that the error starts earlier, from the moment you add a product to the cart and want to complete the purchase, the login indicates an error (a message appears with a red error rectangle) and then you have to log in again and it sends you to my account.

    Then a double login will occur to proceed to payment.

  • 1 2
    Viewing 30 results - 1 through 30 (of 39 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.