Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank Checkout_Success page Google Adwords Conversion Tracking


Tiff13

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

Link to comment
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://www.oscommerce.com/forums/topic/376532-cannot-redeclare/

Edited by BrockleyJohn

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

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

Link to comment
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://www.oscommerce.com/forums/topic/376532-cannot-redeclare/

 

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...