Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Brokie Friend
    #992666

    After adding the Google Access Code my administration page going blanco.
    Realy boring because i just renew my membership for a year.
    What to do.
    I have this problem on more websites!
    Can you know me how to fix this?


    1. Screenshot
    Saguaros Moderator
    #992745

    Hi Brokie,

    Could you also provide the FTP account of your site? I need the same to have a close look and detect the issue for you.

    Regards

    Brokie Friend
    #992985
    This reply has been marked as private.
    Saguaros Moderator
    #993095

    Thanks for the info, we will check and will get back to you.

    Brokie Friend
    #993114

    I have set de Google Analyticsmodule on unpublished. Wil you give me today the solution. I am waiting for it.

    The Captain Moderator
    #993319

    Hi Brokie,

    I fixed this error on your site. In the file : administrator/modules/mod_jagoogle_analytics/helper.php, I added the code :

    public function refresh($client, $refresh_token) {
            try {
                $client->refreshToken($refresh_token);
            } catch (Exception $e) {
                return $e->getMessage();
            }
        }

    at the end. And in the file : administrator/modules/mod_jagoogle_analytics/tmpl/default.php, I added the code:

    // If the Access Token is expired.
    if ($client->isAccessTokenExpired()) {
      $helper->refresh($client, json_decode($token)->refresh_token);
    }

    below the code :

    // Extract token from session and configure client.
    if ($helper::getToken()) {
        $token = $helper::getToken();
        $client->setAccessToken($token);
    }

    The module is working fine now. Please test again and don’t forget confirm the result to me. Note: whenever you change the domain, please click on Authorize to get new Access code.

    Regards.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 5 replies, has 3 voices, and was last updated by  The Captain 2 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum