Jump to content

ganalytics.php on line 173


Recommended Posts

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

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

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

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

 $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

  • 2 weeks later...
×
×
  • Create New...