Generaal Posted January 18, 2014 Share Posted January 18, 2014 (edited) Hello folks, I have spend my time with the Google Analytics APIs module, include in the prestashop upgrade, v.1.5.4.1 And have the follow prob: Project Default Service Account Deze app wil: Offline toegang hebben AccepterenAnnuleren When I click on Accept, the follow error comes up: Cannot retrieve test results And in BO even: Notice: Undefined index: id_ps_advice in /home/admin/domains/erotiekfabriek.be/public_html/modules/gamification/gamification.php on line 148 Have someone any solution where I can find the solution? Best Regards, Generaal Edited January 18, 2014 by Generaal (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 19, 2014 Share Posted January 19, 2014 what youv'e got in line mentioned in error code? return '<script> var admin_gamification_ajax_url = \''.$this->context->link->getAdminLink('AdminGamification').'\'; var current_id_tab = '.(int)$this->context->controller->id.'; </script>'; this is what i;'ve got, i suppose that you've got some different code? Link to comment Share on other sites More sharing options...
antoniskp Posted January 19, 2014 Share Posted January 19, 2014 (edited) Hi there, I think i have the same error on ps 1.5.6 (last version), after configuring client id, secret and profile, hit save and authenticate, redirects to google app page for accept the permissions, after granting redirects back to psBO with a green window "google api authorization granted" and a red one "Cannot retrieve test results". Google analytics account stil does not work from yesterdays updates i think. Any ideas? Thanks Edit : The problem solved after updating google analytics platform from google Edited January 21, 2014 by antoniskp (see edit history) 1 Link to comment Share on other sites More sharing options...
Generaal Posted January 20, 2014 Author Share Posted January 20, 2014 (edited) what youv'e got in line mentioned in error code? return '<script> var admin_gamification_ajax_url = \''.$this->context->link->getAdminLink('AdminGamification').'\'; var current_id_tab = '.(int)$this->context->controller->id.'; </script>'; this is what i;'ve got, i suppose that you've got some different code? Hello Vekia, I have this on line 148: $css_str .= '<link href="http://gamification.prestashop.com/css/advices/advice-'._PS_VERSION_.'_'.$advice['id_ps_advice'].'.css" rel="stylesheet" type="text/css" media="all" />'; And I have also the follow error when I hit the Catalogus tab > Product and even when I hit the tab Customers in BO. I think, there are some wrong settings in the ps_advice database tabel? Best Regards, Generaal Edited January 20, 2014 by Generaal (see edit history) Link to comment Share on other sites More sharing options...
Generaal Posted January 21, 2014 Author Share Posted January 21, 2014 Hello Vekia, I have found one of the errors in BO: Undefined index: id_ps_advice in /home/admin/domains/erotiekfabriek.be/public_html/modules/gamification/gamification.php on line 148 But these are from the module: Merchant Expertise (Last update). But the prob for the APIs still going. Best Regards, Generaal Link to comment Share on other sites More sharing options...
Generaal Posted February 4, 2014 Author Share Posted February 4, 2014 (edited) On the go... The follow green line come up: Warning: Invalid argument supplied for foreach() in /home/admin/domains/erotiekfabriek.be/public_html/classes/controller/AdminController.php on line 912 When I hit the "Save and configure" tab. The code line 912 in the AdminController.php: foreach ($this->fields_options as $category_data) Also when I hit the tab: Save and Authenticate: Cannot retrieve test results Best Regards, Generaal Edited February 4, 2014 by Generaal (see edit history) Link to comment Share on other sites More sharing options...
jordanbork Posted March 25, 2014 Share Posted March 25, 2014 I'm getting the "Cannot retrieve test results" error as well. Could you shed some light on what tool you use to debug? If this information is in the developer's guide, please disregard my silly question, I'll get around to reading it shortly. Has anyone resolved this error? Link to comment Share on other sites More sharing options...
ravell Posted March 26, 2014 Share Posted March 26, 2014 same error Link to comment Share on other sites More sharing options...
Fabio Perri Posted March 27, 2014 Share Posted March 27, 2014 (edited) Same error for me on PrestaShop v 1.6.0.5 for Module - Google Analytics API v0.12. Anyone have a solution? Thanks in advance for the support! Sincerely, Fabio Perri. P.S. : Already reported as BUG by me in the forge of PrestaShop (http://www.forge.prestashop.com) with reference PSCSX-1470 . Edited March 28, 2014 by Fabio Perri (see edit history) Link to comment Share on other sites More sharing options...
asterix040173 Posted March 28, 2014 Share Posted March 28, 2014 same error for me..I am getting mad at it.. any solution? Link to comment Share on other sites More sharing options...
Ceobanya Posted April 8, 2014 Share Posted April 8, 2014 same error... Link to comment Share on other sites More sharing options...
bybumi Posted April 10, 2014 Share Posted April 10, 2014 Hi there, I think i have the same error on ps 1.5.6 (last version), after configuring client id, secret and profile, hit save and authenticate, redirects to google app page for accept the permissions, after granting redirects back to psBO with a green window "google api authorization granted" and a red one "Cannot retrieve test results". Google analytics account stil does not work from yesterdays updates i think. Any ideas? Thanks Edit : The problem solved after updating google analytics platform from google Hey how did you update the google analytics platform from Google? Have the same problem as you had! Link to comment Share on other sites More sharing options...
Jyla Posted April 10, 2014 Share Posted April 10, 2014 Lots of people with this error, but no answers, i have this error aswell, but no extra info just unable to retrieve test results.i am on PS 1.5.6.2 Link to comment Share on other sites More sharing options...
cip_invest Posted April 13, 2014 Share Posted April 13, 2014 same error here please light us up. regards Link to comment Share on other sites More sharing options...
Milen Posted May 1, 2014 Share Posted May 1, 2014 any body know the solution? I have the same error Link to comment Share on other sites More sharing options...
koconborz Posted May 3, 2014 Share Posted May 3, 2014 Hello folks, I have spend my time with the Google Analytics APIs module, include in the prestashop upgrade, v.1.5.4.1 And have the follow prob: Project Default Service Account Deze app wil: Offline toegang hebben AccepterenAnnuleren When I click on Accept, the follow error comes up: Cannot retrieve test results And in BO even: Notice: Undefined index: id_ps_advice in /home/admin/domains/erotiekfabriek.be/public_html/modules/gamification/gamification.php on line 148 Have someone any solution where I can find the solution? Best Regards, Generaal I had the same error. My solution to set the allow_url_fopen = On; and re-Save the settings at the Google Api module. It is working for me. Link to comment Share on other sites More sharing options...
vekia Posted May 3, 2014 Share Posted May 3, 2014 hello and you use the same ps version? (1.5.4.1?) Link to comment Share on other sites More sharing options...
Sergeo Tretyakov Posted May 7, 2014 Share Posted May 7, 2014 I had the same trouble. I solved: 1) google webmaster tools -> confirm ownership website with google analytics code 2) google apis -> API Access -> Notification Endpoints -> add your domain. 2 Link to comment Share on other sites More sharing options...
jordanbork Posted May 10, 2014 Share Posted May 10, 2014 (edited) I had the same trouble. I solved: 1) google webmaster tools -> confirm ownership website with google analytics code 2) google apis -> API Access -> Notification Endpoints -> add your domain. I am still receiving the "Cannot retrieve test results" message. I additionally associated my Webtools site to the Google Analytics site from the Webtools settings. Edited May 10, 2014 by jordanbork (see edit history) Link to comment Share on other sites More sharing options...
jordanbork Posted May 11, 2014 Share Posted May 11, 2014 If anyone is willing to make a quick $20 via PayPal to fix this, email me at [email protected] or Skype me at [email protected] 1 Link to comment Share on other sites More sharing options...
Alexgaw Posted May 11, 2014 Share Posted May 11, 2014 Hi , I am getting lots of errors on PS1.6.0.6 1. Google is unreachable (check your firewall) 2. Google API Authorization granted but access token cannot be retrieved 3.Cannot retrieve test results. It has nothing to do with my firewall. Any ideas how to solve this? /Alex Link to comment Share on other sites More sharing options...
Alexgaw Posted May 19, 2014 Share Posted May 19, 2014 Bump Up Link to comment Share on other sites More sharing options...
Fronteer bvba Posted May 22, 2014 Share Posted May 22, 2014 I'm having the same issue.. Going to debug this asap. Link to comment Share on other sites More sharing options...
metacreo Posted May 22, 2014 Share Posted May 22, 2014 fixedhttp://www.prestashop.com/forums/topic/302611-google-analytics-api/page-2 1 Link to comment Share on other sites More sharing options...
Milen Posted May 24, 2014 Share Posted May 24, 2014 A mi me funciono de esta manera. En analitycs donde tienes que elegir el ID del perfil debeis tener mucho cuidado y elegir el id que corresponde, yo tengo mas que una web y cada web tiene si ID. Link to comment Share on other sites More sharing options...
ugokind Posted August 10, 2014 Share Posted August 10, 2014 me too checked the api credentials, return url etc. I did all of above to b sure.. I previously disabled SSL and SEO and tested all.. but any ood result very strange 1.6.0.9 1 Link to comment Share on other sites More sharing options...
Liliana M Posted September 5, 2014 Share Posted September 5, 2014 I had the same problem, I found the solution. Go into your google analytics account and paste the google analytic tracking code into the module Block HTML in footer Liliana Link to comment Share on other sites More sharing options...
aeroxy Posted September 10, 2014 Share Posted September 10, 2014 Hi there, I think i have the same error on ps 1.5.6 (last version), after configuring client id, secret and profile, hit save and authenticate, redirects to google app page for accept the permissions, after granting redirects back to psBO with a green window "google api authorization granted" and a red one "Cannot retrieve test results". Google analytics account stil does not work from yesterdays updates i think. Any ideas? Thanks Edit : The problem solved after updating google analytics platform from google I have the same problem but it is not solved yet. What did you fill in "profile?" I have the newest universal google analytics account. Link to comment Share on other sites More sharing options...
Quenncy Posted September 14, 2014 Share Posted September 14, 2014 Yes me too. No luck on getting it to work. Been waiting going on 72 hours but still says "Cannot retrieve test results" with in the Google module. (Pic attached). Shows some activity within my API's Request Overview page but NOTHING in my Google Analytics Overview page. Any ideas? Thanks in advance. God Bless, Q Link to comment Share on other sites More sharing options...
Zhandos Ulan Posted October 26, 2014 Share Posted October 26, 2014 Problem cannot retrieve test results solved by commenting one line and changing key in array for foreach in modules/gapi/gapi.php // if (isset($response['rows']) && is_array($response['rows'])) <-- comment this line foreach ($response['columnHeaders'] as $row) <-- change rows to columnHeaders I'm using Prestashop 1.6.9, GAPI not adapted for multistore option. Setting valid UA-xxxxxx code in another Google Analytics Module 2 Link to comment Share on other sites More sharing options...
millien Posted November 18, 2014 Share Posted November 18, 2014 now i had the same problem ! this is the fix. look where he gets the profile ID ! http://youtu.be/SzWRRwKxhJI?t=4m30s 5 Link to comment Share on other sites More sharing options...
lse123 Posted November 24, 2014 Share Posted November 24, 2014 (edited) Google Analytics API v1.0.3 - by PrestaShop 1.6.0.9 Please be aware the Google Analytics API module will only work if you either: have installed and configured the “Google Analytics” module or have already embedded the Google Analytics script into your shop. After SET: v3.0 with OAuth 2.0: most powerful and up-to-date version WHERE EMBED THE ANALYTICS CODE? Edited November 24, 2014 by lse123 (see edit history) Link to comment Share on other sites More sharing options...
defsson Posted December 4, 2014 Share Posted December 4, 2014 Same problem "Cannot retrieve test results" what i have done till this moment: - embedded code by "normal" analytics plugin, UA code is visible in site code and in GoogleAnalytics - Google API acces granted - Analytics API status ON, Any suggestions ? Link to comment Share on other sites More sharing options...
NouF Posted December 9, 2014 Share Posted December 9, 2014 (edited) now i had the same problem ! this is the fix. look where he gets the profile ID ! http://youtu.be/SzWRRwKxhJI?t=4m30s I saw your video and i have everyting same, but when you have to allow application i have only right "Povolit přístup offline" in EN (Enable offline access) you have other right. Edited December 9, 2014 by NouF (see edit history) Link to comment Share on other sites More sharing options...
heinrichen Posted December 15, 2014 Share Posted December 15, 2014 I have had this problem for a week now and couldn't find the solution, I tried everything above. Then I found that allow_url_fopen needs to be set. Put this in your htaccess file: php_value allow_url_fopen on Everything works like a charm! Link to comment Share on other sites More sharing options...
Crowell Posted April 13, 2015 Share Posted April 13, 2015 Be sure that you know how to check these data, I had some problems with it. In Home you have to choose "See all data". I made some extra "Reporting Views" and I've been checking these automatically. Link to comment Share on other sites More sharing options...
Anuncio Urbano Posted September 22, 2015 Share Posted September 22, 2015 I had the same trouble. I solved: 1) google webmaster tools -> confirm ownership website with google analytics code 2) google apis -> API Access -> Notification Endpoints -> add your domain. Thank you!! I solved > https://www.google.com/webmasters/tools > introduced my website > refresh the analytics module > and works Link to comment Share on other sites More sharing options...
completepresta Posted December 12, 2015 Share Posted December 12, 2015 "Cannot retrieve test results" Do not fill in the UA- id in profile ID field under client secret, that was my mistake.It should be another ID, this ID you can find in the url from your google analytics page, the one marked red (without the P)https://www.google.com/analytics/web/?hl=nl&pli=1#report/visitors-overview/ab62536633w94595418p972752622/ 1 Link to comment Share on other sites More sharing options...
TACS Posted January 8, 2016 Share Posted January 8, 2016 now i had the same problem ! this is the fix. look where he gets the profile ID ! http://youtu.be/SzWRRwKxhJI?t=4m30s Thanks for pointing this out, problem solved. Thanks! Link to comment Share on other sites More sharing options...
ijipk Posted January 25, 2016 Share Posted January 25, 2016 now i had the same problem ! this is the fix. look where he gets the profile ID ! http://youtu.be/SzWRRwKxhJI?t=4m30s Thank you !! solved my problem Jesper http://dirtytime.dk Link to comment Share on other sites More sharing options...
vucumbra Posted September 1, 2016 Share Posted September 1, 2016 i have the some error Link to comment Share on other sites More sharing options...
serg93 Posted October 14, 2016 Share Posted October 14, 2016 Same error... Link to comment Share on other sites More sharing options...
vvaahhiidd Posted June 18, 2017 Share Posted June 18, 2017 (edited) Problem cannot retrieve test results solved by commenting one line and changing key in array for foreach in modules/gapi/gapi.php // if (isset($response['rows']) && is_array($response['rows'])) <-- comment this line foreach ($response['columnHeaders'] as $row) <-- change rows to columnHeaders I'm using Prestashop 1.6.9, GAPI not adapted for multistore option. Setting valid UA-xxxxxx code in another Google Analytics Module Dont know where the problem is coming from! It may have many reasons, so it may have many solutions! But I have done everything right and still receiving the error "can't retrieve...." Zhandos solution solve my error. made my day! Edited June 18, 2017 by vvaahhiidd (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts