Quote Originally Posted by sunflowertami View Post
hello,

The mod was working on 1.3.8a and since cache error debugging wasn't available then, don't know if it was a problem back then.

Anyway, it was working then I upgraded to 1.3.9b. On the cache, I noticed the following error every time a purchase is made:

PHP Warning: require(includes/templates/cherry_zen/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
[23-May-2010 06:19:53] PHP Warning: require(includes/templates/cherry_zen/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/content/l/includes/templates/cherry_zen/common/tpl_main_page.php on line 227
[23-May-2010 06:19:53] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/cherry_zen/checkout_success//google_analytics.php' (include_path='.:/usr/local/php5/lib/php') in /home/includes/templates/cherry_zen/common/tpl_main_page.php on line 227

I have the google analytics folder correctly located on:
templates/cherry_zen/google_analytics/google_analytics.php

Then just to be sure, I took out the php file and just added it to the root of templates/cherry_zen/google_analytics.php

I still get the same error though, but it appears the site is functioning. I tested it, no blank pages and google is recording the order, it is just that the error comes out everytime.

Any ideas?
This should work regardless of version (older versions as well as new.)

The error you are getting looks it can't find the file in the following location:

includes/templates/cherry_zen/checkout_success//google_analytics.php

Notice the "checkout_success" portion. That is not a part of the original code. It looks to me like the tpl_main_page.php file is somehow now referencing the google_analytics.php file in the checkout success folder (which is incorrect).

Did you change anything else (add any mods) during upgrade? Did you add any third party mods or alter the "checkout_success" portion? During that process is when your error likely developed.

The message basically means that the system is looking for the google_analytics.php file in the "checkout_success" folder and since it can't find it, it throws the error. The tracking still works because you likely have the proper code also referencing the "google_analytics" folder (as it should.)

Remove the reference to the checkout_success portion and all should be ok.