silverbling Posted June 13, 2013 Share Posted June 13, 2013 Hi I am getting the message below when I enable google analytics and cannot log into the front end, does any one know how to fix it please? I am not a developer but have access to cpanel and can edit if I have simple instructions Thanks for your help www.silverbling.ie Fatal error: Call to a member function assign() on a non-object in /home3/s559027/public_html/modules/ganalytics/ganalytics.php on line 173 Link to comment Share on other sites More sharing options...
vekia Posted June 13, 2013 Share Posted June 13, 2013 i think that module don't support your prestashop store version. what version of ps you've got? Link to comment Share on other sites More sharing options...
silverbling Posted June 14, 2013 Author Share Posted June 14, 2013 HI I am on 1.4.7 I tried the 1 click upgrade to 1.5.4 and it all went very badly wrong, the roll back did not work. My hosts suggested I upgrade to use a different cache, as I had tried it before and it had not worked they took a dump before I started, after hours trying to sort it out we gave up and they reinstalled my shop from the back up. The theme designer has had to shut down some modules (leo themes, they are very helpful even though it was not thier fault) We now have it back to the stage bits are not falling off it but analytics is causing the error and Bing will not verify. Which analytics module should I install? Thanks for your help Link to comment Share on other sites More sharing options...
NemoPS Posted June 14, 2013 Share Posted June 14, 2013 Try grabbing the g analytics module from a fresh PS archive (latest version) and replace your one. Let us know then Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 Try grabbing the g analytics module from a fresh PS archive (latest version) and replace your one. Let us know then hello Nemo, ganalytics is a part of official installation package? I'm trying to localize it in the /modules/ dir and i haven't got it :| Link to comment Share on other sites More sharing options...
NemoPS Posted June 14, 2013 Share Posted June 14, 2013 Werid, it was for 1.4 didn't know it's been removed (as it appears in the list, I didn't check if it was missing in the downloaded zip) Link to comment Share on other sites More sharing options...
silverbling Posted June 14, 2013 Author Share Posted June 14, 2013 Hi This is the full error message when I enable analytics, if it gives you any more clues? Fatal error: Call to a member function assign() on a non-object in /home3/s559027/public_html/modules/ganalytics/ganalytics.php on line 173 Link to comment Share on other sites More sharing options...
NemoPS Posted June 14, 2013 Share Posted June 14, 2013 There should be no assign there, I have (latest version) return $this->display(__FILE__, 'header.tpl'); SO wait, what's the version you use now? 1.4 or 1.5? Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 $this->context->smarty->assign('ganalytics_id', $ganalytics_id); $this->context->smarty->assign('pageTrack', $pageTrack); $this->context->smarty->assign('isOrder', false); i checked this module sources, i've got there code that i pasted above. well, i think that he use 1.4, and context object doesnt work there i suggest to change it to something like global $smarty; $smarty->assign('ganalytics_id', $ganalytics_id); $smarty->assign('pageTrack', $pageTrack); $smarty->assign('isOrder', false); Link to comment Share on other sites More sharing options...
silverbling Posted June 14, 2013 Author Share Posted June 14, 2013 I am on 1.4 and the back up was from 1.4..............1.5 was removed completely before the back up was installed Link to comment Share on other sites More sharing options...
vekia Posted June 14, 2013 Share Posted June 14, 2013 i checked module code once again, definitely you need old version. this module will work only with 1.5.x, there are many scripts for 1.5. only 1 Link to comment Share on other sites More sharing options...
silverbling Posted June 14, 2013 Author Share Posted June 14, 2013 Thanks for your help I will look for the correct module in prestasho add ons Link to comment Share on other sites More sharing options...
silverbling Posted June 25, 2013 Author Share Posted June 25, 2013 Hi Does anyone know where I can get the 1.4 analytics module? I deleted it from modules and do not have a copy in my database I seem to have lost it. Thanks Link to comment Share on other sites More sharing options...
vekia Posted June 25, 2013 Share Posted June 25, 2013 hello here is 1.4.6.2 version http://www.prestashop.com/download/old/prestashop_1.4.6.2.zip you can download this package, go to modules/ directory and there is analytics module 1 Link to comment Share on other sites More sharing options...
silverbling Posted June 25, 2013 Author Share Posted June 25, 2013 Thank you so much I appreciate your help Link to comment Share on other sites More sharing options...
Recommended Posts