Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Aug 2007
    Location
    Upstate, NY
    Posts
    48
    Plugin Contributions
    0

    Default 1054 Unknown column 'p.products_id' in 'on clause'

    1054 Unknown column 'p.products_id' in 'on clause'

    I am getting this message on my website when trying to look at any product. All my categories are there but when you click on any of them to see product it's not there anymore.

    I'm new and freaking out.

    Everything was fine an hour ago!!!

    What did I do??????

    Someone PLEASE help me!!!

    Amber

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    Is the full SQL statement also being output with the error message?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2007
    Location
    Upstate, NY
    Posts
    48
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    Quote Originally Posted by kuroi View Post
    Is the full SQL statement also being output with the error message?
    I am very new here... I have no idea what you are asking... sorry.

    The "1054 Unknown column 'p.products_id' in 'on clause'" message is the only thing you see when you click on a sub-category to see list of items.

    I have found out that my host has upgraded to some 5.0 MySQL thing. (I think that is what it was called.)

    I don't know if that has anything to do with this problem. I contacted them and they said they'd get back to me in 24-48 hours. In the meantime I am without a business. Not good for me.

    Amber

  4. #4
    Join Date
    Aug 2007
    Location
    Upstate, NY
    Posts
    48
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    kuroi,

    I took my site off "down for maintenance" for the moment.

    You can see what it does...

    www.ambersscrapattic.com

    That is if it even loads for you. That is another problem I'm working on.

    Thank you, Amber

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    What version of Zen Cart are you using ?
    What addons/contributions are installed?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Aug 2007
    Location
    Upstate, NY
    Posts
    48
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    Zen Cart 1.2.7

    Old, I know. I have someone who is going to teach me to upgrade. I just don't understand it all yet. I need it broke down better for me.

    But my server/host people just did something this morning I found out. I was hopeing they'd help but so far they haven't done much.

    Thanks!!

    Amber

  7. #7
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    The following *might* provide some relief until you can get around to doing the upgrade (which should still be done as soon as possible if you're on MySQL5 now):

    /includes/classes/db/mysql/query_factory.php
    around line 41 you'll find:
    Code:
        if ($this->link) {
          if (@mysql_select_db($zf_database, $this->link)) {
            $this->db_connected = true;
            return true;
          } else {
    Insert an extra line as shown:
    Code:
        if ($this->link) {
          if (@mysql_select_db($zf_database, $this->link)) {
            @mysql_query("SET SESSION sql_mode = ''", $this->link);
            $this->db_connected = true;
            return true;
          } else {
    Doing this *might* be enough to tell MySQL 5 to ignore some of the strictness it normally enforces.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Aug 2007
    Location
    Upstate, NY
    Posts
    48
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    Well... that did not work for me.

    Thank you anyway. It was a good try.

    Maybe once I learn to upgrade my cart things will get better.

    Thanks, Amber

  9. #9
    Join Date
    Dec 2005
    Location
    Maryland
    Posts
    12
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    is your site hosted by powweb? they just upgraded their mySQL database to version 5 and it screwed up my cart with the same error message you are getting.

    ...joe
    seaside stampin' ink
    seasidestampin.com

  10. #10
    Join Date
    Aug 2007
    Location
    Upstate, NY
    Posts
    48
    Plugin Contributions
    0

    Default Re: 1054 Unknown column 'p.products_id' in 'on clause'

    Yes, I am with PowWeb. It would seem the cart I am using is to old to work with this MySQL 5.0 thing.

    Sorry I don't really know what MySQL is, but we need to upgrade our Zen Cart.

    This I now know.

    Problem is I don't really understand how to upgrade my cart.

    I need less computer words to explain it to me.

    Amber

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. 1054 Unknown column 'p.products_id' in 'on clause'
    By cathytsui in forum General Questions
    Replies: 0
    Last Post: 23 Jul 2009, 02:07 PM
  2. 1054 Unknown column 'p.products_id' in 'on clause'
    By jeffnord in forum Setting Up Categories, Products, Attributes
    Replies: 30
    Last Post: 30 Apr 2009, 05:22 PM
  3. 1054 Unknown column 'p.products_id' in 'on clause'
    By phylrust in forum General Questions
    Replies: 3
    Last Post: 5 Jan 2009, 08:36 PM
  4. 1054 Unknown column 'p.products_id' in 'on clause'
    By crazylane in forum General Questions
    Replies: 14
    Last Post: 4 Aug 2008, 02:21 PM
  5. 1054 Unknown column 'p.products_id' in 'on clause'
    By JayCali in forum Installing on a Linux/Unix Server
    Replies: 15
    Last Post: 29 Apr 2007, 07:44 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR