by Dreamer Technologies

This add-on helps a user to log into SuiteCRM with an existing Google ID. No more having to remember yet another new login account. Just click on the "Sign in with Google" button and login right into the CRM.

Includes a 30 day guarantee
Try it Now

#4202 - Problem

Open Installation created by ced Verified Purchase 2 years ago

Hello,

there's a conflict problem with your plugin. As soon as I log in with Goggle, when it redirects back to the CRM, a 500 error occurs and I see those errors in SuiteCRM logs (I cleaned the machine specific parts):

PHP Fatal error: Cannot declare class Google_Exception, because the name is already in use in /.../modules/DT_GoogleSignIn/GoogleAPI/Google_Client.php on line 0, referer: https://accounts.google.com/ PHP Fatal error: Cannot declare class Google_Exception, because the name is already in use in /.../modules/DT_GoogleSignIn/GoogleAPI/Google_Client.php on line 0, referer: https://accounts.google.com/ PHP Fatal error: Cannot declare class Google_Exception, because the name is already in use in /.../modules/DT_GoogleSignIn/GoogleAPI/Google_Client.php on line 0, referer: https://accounts.google.com/ PHP Fatal error: Cannot declare class Google_Exception, because the name is already in use in /.../modules/DT_GoogleSignIn/GoogleAPI/Google_Client.php on line 0, referer: https://accounts.google.com/ PHP Fatal error: Cannot declare class Google_Exception, because the name is already in use in /.../modules/DT_GoogleSignIn/GoogleAPI/Google_Client.php on line 0, referer: https://accounts.google.com/ PHP Fatal error: Cannot declare class Google_Model, because the name is already in use in /.../modules/DT_GoogleSignIn/GoogleAPI/service/Google_Model.php on line 25, referer: https://accounts.google.com/

It seems to be a redeclaration issue due to the fact that the same classes are defined in the vendor/google folder.

I'm using SuiteCRM version 7.12.2

Regards.

  1. dreamertechs member avatar

    Dreamer Technologies Provider Affiliate

    2 years ago

    Hi Ced,

    Thanks for connecting us...!

    We will help you to resolve your issue please connect me on skyep :- dreamertechs or whatsapp :- 8866461183.

    Regards,

    Team Dreamer Technologies.

  2. ced member avatar

    ced Verified Purchase

    2 years ago

    SOLUTION: In file: /vendor/google/apiclient/src/aliases.php

    just comment out the lines shown below:

    $classMap = [
    **//    'Google\\Client' => 'Google_Client',**
    **//    'Google\\Service' => 'Google_Service',**
        'Google\\AccessToken\\Revoke' => 'Google_AccessToken_Revoke',
        'Google\\AccessToken\\Verify' => 'Google_AccessToken_Verify',
    **//    'Google\\Model' => 'Google_Model',**
        'Google\\Utils\\UriTemplate' => 'Google_Utils_UriTemplate',
        'Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google_AuthHandler_Guzzle6AuthHandler',
        'Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google_AuthHandler_Guzzle7AuthHandler',
        'Google\\AuthHandler\\Guzzle5AuthHandler' => 'Google_AuthHandler_Guzzle5AuthHandler',
        'Google\\AuthHandler\\AuthHandlerFactory' => 'Google_AuthHandler_AuthHandlerFactory',
        'Google\\Http\\Batch' => 'Google_Http_Batch',
        'Google\\Http\\MediaFileUpload' => 'Google_Http_MediaFileUpload',
        'Google\\Http\\REST' => 'Google_Http_REST',
        'Google\\Task\\Retryable' => 'Google_Task_Retryable',
        'Google\\Task\\Exception' => 'Google_Task_Exception',
        'Google\\Task\\Runner' => 'Google_Task_Runner',
        'Google\\Collection' => 'Google_Collection',
        'Google\\Service\\Exception' => 'Google_Service_Exception',
        'Google\\Service\\Resource' => 'Google_Service_Resource',
    **//    'Google\\Exception' => 'Google_Exception',**
    ];
    
This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating