Forums / Installing on a Linux/Unix Server / 1054 Unknown column 'p.products_id' in 'on clause'

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

Locked

Views: 10,060

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
20 Sep 2006, 2:09 AM
#1
ciclope avatar

ciclope

New Zenner

Join Date:
Mar 2005
Posts:
3
Plugin Contributions:
0

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

hi there,
i have installed zen-cart plenty of times without any trouble. but this time i'am getting an error i have never seen before:

everything is installed and working (at least the front page) but when i click on a category or a product (from the main page) i get the following error message:

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

does anybody knows how i can fix this?

thank you

20 Sep 2006, 2:10 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

What version did you install?

Clean install or an upgrade? If an upgrade from what and how did you do it?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Sep 2006, 2:15 AM
#3
ciclope avatar

ciclope

New Zenner

Join Date:
Mar 2005
Posts:
3
Plugin Contributions:
0

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

i am using version 1.2.7 and is the same version i have installed in other sites. and always have worked fine. why is now giving me this problem? is there anything i can do to fix it without upgrading?

thank you

20 Sep 2006, 2:17 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

There is an odd obscure bug ... if I can remember what it is ...

What fields are you displaying in your Product Listing ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Sep 2006, 5:46 PM
#5
ciclope avatar

ciclope

New Zenner

Join Date:
Mar 2005
Posts:
3
Plugin Contributions:
0

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

this is a clean install
i get the error message whenever i click on a category (in the categories menu) or directly on a product (what's new, or new products for this month at the bottom)

if i click on the 'all products' or 'new products' link (under the categories menu) i can see the listings with no problem, but when i click on any product on those listings i get the error again...

help please...

thank you

20 Sep 2006, 8:07 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

In the Configuration ... Product Listing ...

You have fields defined with values or 0 ... 0 means OFF

What fields do you have defined to show?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Sep 2006, 6:58 AM
#7
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

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

I'm getting it too. Just installed Image Handler 2, it worked fine, I was able to bang around in the shop to both categories and products, now it says (on all pages):

1054 Unknown column 'c.parent_id' in 'on clause'
in:
[SELECT c.categories_id as id, c.parent_id, cd.categories_name as cName, cd2.categories_name as pName FROM categories c, categories_description cd LEFT JOIN categories_description cd2 ON c.parent_id=cd2.categories_id AND cd2.language_id='1' WHERE c.categories_id=cd.categories_id AND cd.language_id='1']

I have the following in Product Listing:

Display Product Image 1
Display Product Manufacturer Name 0
Display Product Model 0
Display Product Name 2
Display Product Price/Add to Cart 3
Display Product Quantity 0
Display Product Weight 0
Display Product Price/Add to Cart Column Width 125
Display Category/Manufacturer Filter (0=off; 1=on) 1
Prev/Next Split Page Navigation (1-top, 2-bottom, 3-both) 3
Display Product Listing Default Sort Order
Display Product Add to Cart Button (0=off; 1=on) 1
Display Multiple Products Qty Box Status and Set Button Location 3

Any ideas? I'm going to remove Image Handler, since that was the last thing I did before this happened (before that was Ultimate SEO).

Thanks!

21 Sep 2006, 7:09 AM
#8
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

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

<SOLVED>

OK, uninstalled Image Handler, that didn't help. So I turned off Ultimate SEO, and then turned off "Add category parent to begining of URLs?". That did the trick. The site is back.

I remembered getting a similar error in Joomla when I turned on an external SEO mod there.

Is anyone knowledgable about a fix for this problem in Ultimate SEO?

22 Sep 2006, 1:05 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

Thanks for the update that this is not a Zen Cart issue but the result of your add-ons causing conflicts ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Sep 2006, 1:18 AM
#10
meadwench avatar

meadwench

New Zenner

Join Date:
Feb 2005
Location:
Youngsville, NC
Posts:
29
Plugin Contributions:
0

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

No problem, Linda. Its nice to be able to offer a solution for once instead of always asking for them!

Further info: I turned Ultimate URL's back on and re-installed Image Handler, but left the "Add category parent' festure in Ultimate URL's off. The site seems fine. I've no idea what is causing this, but it was the SEO program that caused this same issue in both Joomla and in an X-cart system I did for a client.

It seems that search-friendly URL's are a bit more of a challenge than they appear!

My big dilemma now is to upgrade or not to upgrade to 1.3.5.....

26 Sep 2006, 8:52 PM
#11
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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

meadwench:

No problem, Linda. Its nice to be able to offer a solution for once instead of always asking for them!

Further info: I turned Ultimate URL's back on and re-installed Image Handler, but left the "Add category parent' festure in Ultimate URL's off. The site seems fine. I've no idea what is causing this, but it was the SEO program that caused this same issue in both Joomla and in an X-cart system I did for a client.

It seems that search-friendly URL's are a bit more of a challenge than they appear!

My big dilemma now is to upgrade or not to upgrade to 1.3.5.....

Hi,

This same error message comes also when the server upgrades for MySQL 5 series. Then the ZC versions prior to 1.3 stops working and gives this error. The solution is to install the newest ZC version in that case.

Elli

I may be blond but at least I found Zen.

19 Nov 2006, 6:18 PM
#12
ronson avatar

ronson

New Zenner

Join Date:
Oct 2006
Posts:
20
Plugin Contributions:
0

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

Here is the fixed version of Ultimate SEO URLs: http://rapidshare.com/files/4022023/zencart_seo_136.zip.html

It contains the fixed seo.url.php sql query and also updated versions of categories.php and product.php.

Simply unzip the content of the zencart_seo_136.zip in your store main directory and rename the htaccess_sample file and it should be working. I have tested this only with ZenCart 1.3.6 so compatibility with older/newer version is not guaranteed.

I modified the 1.3.5 version of Ultimate SEO URLs which can be found here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=231

23 Feb 2007, 4:49 PM
#13
camel avatar

camel

New Zenner

Join Date:
Feb 2006
Posts:
43
Plugin Contributions:
0

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

ciclope:

this is a clean install
i get the error message whenever i click on a category (in the categories menu) or directly on a product (what's new, or new products for this month at the bottom)

if i click on the 'all products' or 'new products' link (under the categories menu) i can see the listings with no problem, but when i click on any product on those listings i get the error again...

help please...

thank you

I'm facing the same exact problem. Haven't installed Ultimate SEO or anything.

I had to change hosting, so all i did was copy all my files from the old site to the new site, created DB & imported data of the old site, & updated 2 configure.php files to link the DB. Like in the scenario above, "All Listing" is working fine, but when i click on a product or click on categories, i get this error.

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

Thanks for all the help.

24 Feb 2007, 5:32 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

What are your settings in the Configuration ... Product Listing ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Feb 2007, 6:16 PM
#15
camel avatar

camel

New Zenner

Join Date:
Feb 2006
Posts:
43
Plugin Contributions:
0

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

Actually it turned out to be MYSQL version problem. Zen i'm using is v1.2.7, which has issues with MYSQL 5. I had my site moved a another server with MYSQL v4.1 .. which instantly resolved my problem. Although for anyone how might be going through this thread in future, i found this download patch in one of the forum threads that is supposed to resolve the issue of v1.2.x with MYSQL 5 (although i didn't get the chance to test it)

http://wiki.dataweb.no/index.php/Downloads

Thanks again for all the help .. esp. you Linda.

24 Feb 2007, 6:53 PM
#16
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

Thanks for the update that this was a SQL issue with your old, old, ancient version of Zen Cart ... :cool:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Apr 2007, 10:47 PM
#17
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

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

I just ran into this problem so I thought I should add to the thread.

Everything was working just fine until I went to adjust the sort order of one category. After that I got the 1054 error.

I had had problems with Ultimate SEO add on so I had turned it off (rather than uninstalliing thinking I could solve the problems later). Even though it was off, it appears that the selection ""Add category parent to begining of URLs?". under Ultimate SEO still had an effect.

After I set that to false the site came back up - Phew!

Never would have even looked at it given that it was off but this thread gave me the idea to take a look anyway.

19 Apr 2007, 2:15 AM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

Thanks for the update ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Jun 2007, 4:43 AM
#19
issy avatar

issy

New Zenner

Join Date:
Jan 2006
Posts:
59
Plugin Contributions:
0

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

Ronson:

Here is the fixed version of Ultimate SEO URLs: http://rapidshare.com/files/4022023/zencart_seo_136.zip.html

It contains the fixed seo.url.php sql query and also updated versions of categories.php and product.php.

Simply unzip the content of the zencart_seo_136.zip in your store main directory and rename the htaccess_sample file and it should be working. I have tested this only with ZenCart 1.3.6 so compatibility with older/newer version is not guaranteed.

I modified the 1.3.5 version of Ultimate SEO URLs which can be found here: http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=231
Ronson,
I applied your fix and it worked like magic; I was going crazy and I did not know what to do or where to begin.
I'm on version 1.3.7 and I changed hosting service and now it all works perfect.

Thank you very much.