Tiff13 Posted May 31, 2015 Share Posted May 31, 2015 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 Quote Link to comment Share on other sites More sharing options...
BrockleyJohn Posted June 1, 2015 Share Posted June 1, 2015 (edited) 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 June 1, 2015 by BrockleyJohn Quote 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 More sharing options...
Tiff13 Posted June 6, 2015 Author Share Posted June 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.