osCmax v2.5 User Manual
Results 1 to 5 of 5

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 ...

      
  1. #1
    New Member
    Join Date
    Oct 2005
    Posts
    6
    Rep Power
    0


    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?

  2. #2
    New Member
    Join Date
    Oct 2005
    Posts
    6
    Rep Power
    0


    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.

  3. #3
    New Member
    Join Date
    Oct 2005
    Posts
    6
    Rep Power
    0


    Default Found the fix for this....

    Download and install osCMax-2.0RC2-update051112 patch. Everything works well again...

  4. #4
    lem
    lem is offline
    Member
    Join Date
    Nov 2004
    Location
    CDA, ID
    Posts
    40
    Rep Power
    0


    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.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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 Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •