Forums / General Questions / 1054 Unknown column 'p.products_id' in 'on clause'

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

Locked

Views: 1,717

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
7 Oct 2006, 7:35 PM
#1
caradelrae avatar

caradelrae

New Zenner

Join Date:
Dec 2005
Posts:
55
Plugin Contributions:
0

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

Can someone help me figure out how to fix this? My pal just moved her cart to a new server and when we click on a catagory from the catalog, we get this error.

ANy suggestions?

Thanks

Cara

7 Oct 2006, 7:50 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

Go to Admin->Tools->Server Info.

Please post all the information shown there down until the blue "PHP Version" starts.

The error suggests mismatched database version compared to php file/code version.

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

7 Oct 2006, 8:21 PM
#3
caradelrae avatar

caradelrae

New Zenner

Join Date:
Dec 2005
Posts:
55
Plugin Contributions:
0

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

DrByte:

Go to Admin->Tools->Server Info.

Please post all the information shown there down until the blue "PHP Version" starts.

The error suggests mismatched database version compared to php file/code version.

Server Host: venus.bhservers.com (208.116.7.242) Database Host: localhost (127.0.0.1)
Server OS: Linux 2.6.14.3.dn2.64 Database: MySQL 5.0.24-standard
Server Date: 10/07/2006 16:20:45 Database Date: 10/07/2006 16:20:45
Server Up Time: 16:20:45 up 33 days, 12:01, 0 users, load average: 1.96, 0.93, 0.56
PHP Version: 4.4.4 (Zend: 1.3.0)
HTTP Server: Apache/1.3.37 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a

8 Oct 2006, 1:06 AM
#4
jmw avatar

jmw

New Zenner

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

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

I just got the same type of error. It turns out that the MySQL on the server got upgraded, and thats the source of the issue. Zen Cart needs to get upgraded as well to deal with MySQL 5 (Zen Cart was on 1.2.2, so it was kinda old). Anyways, more info can be found here:

http://www.zen-cart.com/wiki/index.php/Errors#General_Troubleshooting_to_find_odd_problems

8 Oct 2006, 2:45 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

caradelrae, can you please also post the Zen Cart version details including Database Version and any history details? (from the same screen)

.
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 Oct 2006, 3:43 PM
#6
caradelrae avatar

caradelrae

New Zenner

Join Date:
Dec 2005
Posts:
55
Plugin Contributions:
0

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

DrByte:

caradelrae, can you please also post the Zen Cart version details including Database Version and any history details? (from the same screen)
Linux venus.bhservers.com 2.6.14.3.dn2.64 #4 SMP Sun Dec 25 19:45:33 EST 2005 i686
Build Date Aug 23 2006 00:06:23
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-zip' '--with-zlib'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/Zend/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib

Please pm me should u want access to the site for further details!
Cara

8 Oct 2006, 4:06 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

Does it not have anything that says:

Zen Cart Version: xxxxxxxxx

Database Patch Level: xxxxxxxxx

(upgrade info .....)
(upgrade info ........)
(etc)

.
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 Oct 2006, 4:30 PM
#8
caradelrae avatar

caradelrae

New Zenner

Join Date:
Dec 2005
Posts:
55
Plugin Contributions:
0

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

DrByte:

Does it not have anything that says:
Zen Cart 1.2.4.1
Database Patch Level: 1.2.4

8 Oct 2006, 4:41 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

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

caradelrae:

Zen Cart 1.2.4.1
Database Patch Level: 1.2.4

Zen Cart v1.2.x has a number of compatibility problems with MySQL 5

Version 1.3.x has addressed most of the issues. You should plan for an upgrade.

In the meantime, a 3rd-party contributor has shared some code-adjustments based on v1.2.6/7 which help with several (but not all) MySQL5 issues. More info and the link can be found here:
http://www.zen-cart.com/wiki/index.php/Errors#1054_Unknown_column_..._in_.27on_clause.27

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