Jump to content
Tiff13

Blank Checkout_Success page Google Adwords Conversion Tracking

Recommended Posts

After installing the Google Adwords Conversion Tracking module in my v2.3.4 shop - have tested with selecting Java placement in both Header and footer. Both times after order process the Checkout_Success.php page returns blank

 

Each time my website error log indicates:     PHP Fatal error:  Cannot redeclare class language in /public_html/includes/classes/language.php on line 16 (code starting line 16 below) 

class language {
    var $languages, $catalog_languages, $browser_languages, $language;

I haven't made changes to this particular file for years.  Do i need to add/change something to the php file also ?  any ideas?

 

Thanks in advance

Share this post


Link to post
Share on other sites

Your problem is not actually in this file. The most likely cause is that you have included it twice.

 

First, lets check that you didn't upload the page file for checkout_success.php to the language directory, which would produce this error. Upload includes/languages/english/checkout_success.php again just to be sure.

 

If that doesn't fix it, you can temporarily add some code to the top of the class file to find out where the duplication is happening. See this thread: http://forums.oscommerce.com/topic/376532-cannot-redeclare/

Edited by BrockleyJohn

For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites

Your problem is not actually in this file. The most likely cause is that you have included it twice.

 

First, lets check that you didn't upload the page file for checkout_success.php to the language directory, which would produce this error. Upload includes/languages/english/checkout_success.php again just to be sure.

 

If that doesn't fix it, you can temporarily add some code to the top of the class file to find out where the duplication is happening. See this thread: http://forums.oscommerce.com/topic/376532-cannot-redeclare/

 

OK,  thank you so much i'll start there. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×