bozboz Posted October 10, 2007 Share Posted October 10, 2007 Hi I wonder if anyone can help with a problem that has me tearing my hair out at the moment I have just moved a store to a new server and its functioning entirely fine as far as i know except for that the products in each category are not being listed when the store tries to go to a main category page i get the nav etc but an error occurs which i have traced to product_listing.php 1054 - Unknown column 'p.products_id' in 'on clause' select count(p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '91' The database and code are the same in both stores, the only difference is that one requires vars to be set in php.ini one in htaccess files. register globals is enabled but perhaps there is something else that is not enabled and causing the error Im pretty much at a loss to work out why this one query is not working, i can only guess that the url is not being dissected properly on this occasion ad so the query fails? here is a link to the erroring store http://www.eddielock.co.uk/index.php?cPath=81_91 - the error message shows in black so you cant see it unless you highlight the page the store is working fine here http://svr33.edns1.com/~eddie/index.php Any help would be greatly appreciated else i will have to revert back to th eold server Thanks in advance! Link to comment Share on other sites More sharing options...
bozboz Posted October 11, 2007 Author Share Posted October 11, 2007 anyone? Link to comment Share on other sites More sharing options...
Gauravs Posted October 11, 2007 Share Posted October 11, 2007 what is the version of PHP and mysql. This error comes after upgrade of mysql from 4 to 5 due to the way left join is handled in new version, while queries were made for version 4. Cheers Gaurav Best Regards,Gaurav Link to comment Share on other sites More sharing options...
bozboz Posted October 11, 2007 Author Share Posted October 11, 2007 what is the version of PHP and mysql. This error comes after upgrade of mysql from 4 to 5 due to the way left join is handled in new version, while queries were made for version 4. Cheers Gaurav Thanks on the old server 4.3.11 is Php versiona nd MYSQL version is MySQL version 4.0.25-standard on the new server Php version is 4.4.7 anf Mysql verison is 5.0.27 So it seems you may well be correct. Do you have any idea how i can correct the left join statements ? Thanks! Link to comment Share on other sites More sharing options...
♥toyicebear Posted October 11, 2007 Share Posted October 11, 2007 There are mysql/php 5 upgrade contribs available in the add-ons section at this site... or you can upgrade your osCommerce shop to the latest version RC1 , available in the downloads section. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
bozboz Posted October 11, 2007 Author Share Posted October 11, 2007 Thanks everyone. I have now fixed the issue after finding this thread via google http://www.oscommerce.com/forums/index.php?sho...p;#entry1148504 I think as you say it relates to the MYSQL queries Thanks for all the help! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.