osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Error #1054 caused by MySQL 5.0?

This is a discussion on Error #1054 caused by MySQL 5.0? within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Our site which had been running fine under MySQL 4.1 is now experiencing errors under MySQL 5.0.18. When I click ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-25-2006, 04:08 PM
New Member
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dwsjr
Default Error #1054 caused by MySQL 5.0?

Our site which had been running fine under MySQL 4.1 is now experiencing errors under MySQL 5.0.18. When I click on "categories" on my site, no problem. Going further and clicking below the category level, I get the following error:

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_retail_prices 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 = '127'

[TEP STOP]

My web host says MySQL 5.0 has changed the "JOIN" syntax. Is this true and has anyone come up with a fix for this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 01-25-2006, 05:15 PM
New Member
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dwsjr
Default An Update

Just to provide a little more information....the #1054 error seems to be generated by the /catalog/index.php file (or the related template files). If I access the product pages using the "search" box, the products come up no problem. There does not seem to be a problem with the product_info.php.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-26-2006, 09:11 AM
New Member
 
Join Date: Oct 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dwsjr
Default Found the fix for this....

Download and install osCMax-2.0RC2-update051112 patch. Everything works well again...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 06-10-2006, 09:33 PM
lem lem is offline
Member
 
Join Date: Nov 2004
Location: CDA, ID
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lem
Default RE: Found the fix for this....

Installing the patch, none of the lines in the files are where they say they are. Half of the lines in the files that are needed to change dont seem to exist. I'm still having a hard time getting it to work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 06-11-2006, 06:50 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Found the fix for this....

Read the README-1ST.txt file...

It is not named that for kicks you know... You are supposed to read it first. It contains:

------------------------------------------------------------------------------
INSTALL DIRECTIONS - for non-modified shops (template excluded)
------------------------------------------------------------------------------

BACKUP!!! BACKUP!!! BACKUP!!! BACKUP!!!

Once you have backup BOTH your store and database....

Copy all files from 'catalog' into your store. (There is only the changed files included)

Use the update-20051112.sql file or modify manually in phpmyadmin with the following queries:

ALTER TABLE whos_online MODIFY COLUMN last_page_url VARCHAR(255) NOT NULL;
ALTER TABLE customers MODIFY COLUMN customers_default_address_id INTEGER;
ALTER TABLE customers_basket MODIFY COLUMN final_price DECIMAL(15,4);


Test! Test! Test! Test!

Done!

------------------------------------------------------------------------------
INSTALL DIRECTIONS - for MODIFIED shops (more than just the template changes)
------------------------------------------------------------------------------

BACKUP!!! BACKUP!!! BACKUP!!! BACKUP!!!

Once you have backup BOTH your store and database....

DO NOT COPY OVER YOUR EXISITNG FILES
Compare all files from 'catalog' with your modifed store using a file diff like Beyond Compare or WinMerge...
(There is only the changed files included)

Use the update-20051112.sql file or modify manually in phpmyadmin with the following queries:

ALTER TABLE whos_online MODIFY COLUMN last_page_url VARCHAR(255) NOT NULL;
ALTER TABLE customers MODIFY COLUMN customers_default_address_id INTEGER;
ALTER TABLE customers_basket MODIFY COLUMN final_price DECIMAL(15,4);


Test! Test! Test! Test!

Done!
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Error #1054 caused by MySQL 5.0 dwsjr osCMax v2 Installation issues 0 01-25-2006 04:07 PM
Problem (error 1054) Yari_Gio osCMax v1.7 Discussion 0 10-26-2004 01:54 AM
ERROR 1054 Anyone???? bleu osCMax v1.7 Discussion 4 06-05-2004 08:03 AM
catalog 1054 error onnig osCommerce 2.2 Installation Help 12 02-05-2003 09:49 AM
Error 1054 don osCommerce 2.2 Installation Help 1 12-31-2002 06:27 PM


All times are GMT -8. The time now is 06:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax