Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / 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

Started by jaycali on 28 Feb 2007, 7:06 AM · Views: 5,111

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
28 Feb 2007, 7:06 AM
#1
jaycali avatar

jaycali

New Zenner

Join Date:
Feb 2007
Posts:
3
Plugin Contributions:
0

Post #1 by jaycali

Hi All,

I just moved my ZenCart to a different web host. But now I am getting the following error message, "1054 Unknown column 'p.products_id' in 'on clause' ".

How do I fix this?

Please help as I have been struggling with this.. :-(

Thanks,
Jerome

28 Feb 2007, 7:20 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Zen Cart Version 1.2.x wasn't built for compatibility with MySQL 5, but your new host appears to be using MySQL 5.
Either that or you've done an upgrade and didn't complete the database table-structure upgrade.

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

9 Mar 2007, 12:23 AM
#3
angelt avatar

angelt

New Zenner

Join Date:
Oct 2006
Location:
New York
Posts:
75
Plugin Contributions:
0

Post #3 by angelt

Hello,

I am Having the same problem: "1054 Unknown column 'p.products_id' in 'on clause' " but I have not move to any other host and I am using the same MYSQL version. It is I have not done any change to the database and I am having this problem.

Could you help me with this please?

Thank you!

Radhames Lopez
:yes:

9 Mar 2007, 4:36 PM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

  1. Did you recently make any changes or customizations to your site?
  2. Did you recently install any mods/contributions/addons? If so, which ones?
  3. Please go to Admin->Tools->Server Info and post all the information you see there above the blue PHP logo/bar.

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

9 Mar 2007, 10:15 PM
#5
angelt avatar

angelt

New Zenner

Join Date:
Oct 2006
Location:
New York
Posts:
75
Plugin Contributions:
0

Post #5 by angelt

Hi DrByte,

I have not installed anything new.

The customization I did was to the text files controling the main page, page 2, page 3 and page 4. And also I did changes to the files where the Shipping & Returns, Privacy Notice, Conditions of Use, Contact Us, Gift Certificate FAQ and Newsletter Unsubscribe are already.

All those changes are working find. This was only text change.

What you say about admin/Tools/Server Info. I do not see any information to post there above the blue PHP Logo/Bar, but it seems to be that changes were done to MYSQL database. I see there the following:

Server Host: neptune (192.168.1.21)
Database Host: mysql.catalog.com (209.217.33.160)
Server OS: SunOS 5.9 Database: MySQL 5.0.27-standard-log
Server Date: 03/09/2007 15:45:29 Database Date: 03/09/2007 15:45:24
Server Up Time: 3:45pm up 7 day(s), 11:27, 1 user, load average: 35.79, 21.12, 25.50
PHP Version: 4.4.4 (Zend: 1.3.0)
HTTP Server: Apache

Please let me know what and how can I post the information you told me is on admin/Tools/Serfer info. Because all the information over there is just as display only. Or if there is another actions I could take.

Best Regards,

Radhames Lopez:smartass:

10 Mar 2007, 5:38 AM
#6
drbyte avatar

drbyte

Sensei

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

Post #6 by drbyte

The only other information you missed was the Zen Cart version history information shown between the info you copied and the blue bar containing the PHP version number ... you see the Zen Cart logo, and then Zen Cart and Zen Cart Database version information. What's in there?

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

10 Mar 2007, 5:42 AM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

AngelT:

I am Having the same problem: "1054 Unknown column 'p.products_id' in 'on clause' " but I have not move to any other host and **I am using the same MYSQL version. ** It is I have not done any change to the database and I am having this problem.

AngelT:

it seems to be that changes were done to MYSQL database. I see there the following:

Server OS: SunOS 5.9 Database: [B]MySQL 5.0.27-standard-log [/B]
Server Date: 03/09/2007 15:45:29 Database Date: 03/09/2007 15:45:24
[B]Server Up Time: 3:45pm up 7 day(s),[/B] 11:27, 1 user, load average: 35.79, 21.12, 25.50
PHP Version: 4.4.4 (Zend: 1.3.0)


1. Please talk to your host or webserver administrator and find out when they upgraded to MySQL 5.0
It looks like the server was last rebooted a week ago.

2. Note that there are known problems with older versions of Zen Cart having incompatibilities when running under MySQL 5.
Upgrading to the latest version of Zen Cart is an ideal starting point, as all the known issues have been addressed there.  Currently the latest is v1.3.7.

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

12 Mar 2007, 11:26 PM
#8
angelt avatar

angelt

New Zenner

Join Date:
Oct 2006
Location:
New York
Posts:
75
Plugin Contributions:
0

Post #8 by angelt

Hi DrByte,

In the mean times I changed a program to point to mysql4 version. And it is temporarely working fine.

But I agree with you to migrate to the last ZenCart version. Then I have question for you my friend about it:

a) I never have upgrade to a new version.
b) I have not done structure changes in programs but cosmetic changes like:
1) Adding the Business Logo to the shooping cart.
2) Policies for Shipping and Returns, Conditions of Use, Warranty,Privacy
Notice, Contact Us ... Main Page, Page 1 -- Page4, etc.
3)
c) I assume that all the data base changes like my admin settings will not be lost with an upgrade.

d) I also do not know if the guy wotking on this before me implemented the shopping cart using the same directories that Zen Cart recomend.

So do you think I will loose all the changes if I upgrade to a new Zen Cart version or should I continue to do so without any problems?

Thank you DrByte.

Best Regards,

Radhames :laugh:

22 Mar 2007, 10:18 PM
#9
angelt avatar

angelt

New Zenner

Join Date:
Oct 2006
Location:
New York
Posts:
75
Plugin Contributions:
0

Post #9 by angelt

DrByte:

  1. Please talk to your host or webserver administrator and find out when they upgraded to MySQL 5.0
    It looks like the server was last rebooted a week ago.

  2. Note that there are known problems with older versions of Zen Cart having incompatibilities when running under MySQL 5.
    Upgrading to the latest version of Zen Cart is an ideal starting point, as all the known issues have been addressed there. Currently the latest is v1.3.7.


To solve this problem I have decided to update to the new ZenCart version: But I want to do a backup before downloading the new version. To do the backup I have to FTP to my account (https://www.mydomain.com/admin) then I receive a windows to log in, I am using the same user and password to log in to my admin. Should be them differents user and password? If so, do you have an idea who can help me to get them? I did not do the installation originally.

Thank you!

Best Regards,

Radhames:yes:

23 Mar 2007, 8:28 AM
#10
drbyte avatar

drbyte

Sensei

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

Post #10 by drbyte

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

23 Mar 2007, 1:13 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #11 by schoolboy

We had something similar: Got these errors:-

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'

Our problem appears to be a conflict between Ultimate SEO URLS, and Image Handler 2.

We switched off the SEO mod, changing all TRUE settings to FALSE as well.

Error vanished, site is now OK

20 years a Zencart User

4 Apr 2007, 1:15 AM
#12
angelt avatar

angelt

New Zenner

Join Date:
Oct 2006
Location:
New York
Posts:
75
Plugin Contributions:
0

Post #12 by angelt

Hi DrByte,

We decided to upgrade to v1.3.7. I have done so, but when I load the shopping page it comes the same as v1.2.7 except by the Zen Cart sign at the bottom of the page.

When I go to Tools/Server Info on my Admin I see the Zen Cart v1.2.7. Dos this mean that the upgrade did not work out? or Do I have to do anything else to see the changes?

Please let me know!

Radhames:lamo:

4 Apr 2007, 6:14 AM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

AngelT:

We decided to upgrade to v1.3.7. I have done so, but when I load the shopping page it comes the same as v1.2.7 except by the Zen Cart sign at the bottom of the page.

When I go to Tools/Server Info on my Admin I see the Zen Cart v1.2.7. Dos this mean that the upgrade did not work out? or Do I have to do anything else to see the changes?

What exactly did you do to "upgrade" ?

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

4 Apr 2007, 11:47 PM
#14
angelt avatar

angelt

New Zenner

Join Date:
Oct 2006
Location:
New York
Posts:
75
Plugin Contributions:
0

Post #14 by angelt

DrByte:

What exactly did you do to "upgrade" ?

  1. I downloaded the v1.3.7 and unzip it up.
  2. Uploaded v1.3.7 to a new directory to my site.
  3. Made a databse backup from my site to my pc.
  4. The configure.php files were empty both in new-directory/admin/includes
    and in new-directory/includes, so I copied them from the old version 1.2.7
    using the same directory structure.
  5. Run zc_install and it gave me the upgrade option along with all the
    information from the configure.php file: User, password, database name, etc.
  6. All check boxes starting from Upgrade DB from 1.2.7 to 1.3.0 where
    checkted up to the v1.3.7.
  7. I hit the button Upgrada Database Now.
  8. I assumed the process run accumulative from one version to another. But
    because I saw the shopping page the same as the v1.2.7 except for the zen
    cart sign at the bottom of the page, I said to myself maybe I have to run
    separate for each version; then I did that until I reach v1.3.7.

Notes:

a) I run zc_install from the new-directory on top of the old database. I did not
do a new database.

b) The only message I got after the upgrade was "SKIPPED: Cannot insert
configuration_key (then the key name) because it already exist" for some
files.

c) I changed the prefix of the database files to a new one because the process
say that leaving the existing one could corrupt the database.

Thank you for your help!.

I'll be waiting for your reply to continue this process, please!

Best regards,

Radhames

28 Apr 2007, 11:11 PM
#15
thedidgmaster avatar

thedidgmaster

New Zenner

Join Date:
Apr 2007
Posts:
29
Plugin Contributions:
0

Post #15 by thedidgmaster

Hi, I was trying to add new products into the catalog, I just installed zencart, and put in the canada post module, I know nothing about php, but I keep getting the following when I try to add a product and subsequently am unable to add products.

" 1054 Unknown column 'products_weight_type' in 'field list'
in:
[insert into products (products_quantity, products_type, products_model, products_price, products_date_available, products_weight, products_weight_type, products_dim_type, products_length, products_width, products_height, products_ready_to_ship, products_status, products_virtual, products_tax_class_id, manufacturers_id, products_quantity_order_min, products_quantity_order_units, products_priced_by_attribute, product_is_free, product_is_call, products_quantity_mixed, product_is_always_free_shipping, products_qty_box_status, products_quantity_order_max, products_sort_order, products_discount_type, products_discount_type_from, products_price_sorter, products_image, products_date_added, master_categories_id) values ('0', '1', '', '0', null, '0', 'lbs', 'in', '0', '0', '0', '0', '1', '0', '0', '0', '1', '1', '0', '0', '0', '1', '0', '1', '0', '0', '0', '0', '0', '', now(), '1')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields."

Anyone know what might be going on?? Thanks

29 Apr 2007, 6:44 AM
#16
drbyte avatar

drbyte

Sensei

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

Post #16 by drbyte

thedidgmaster:

I put in the canada post module, I know nothing about php, but I keep getting the following when I try to add a product and subsequently am unable to add products.

" 1054 Unknown column 'products_weight_type' in 'field list'

You missed a step in installing the CP module. There's an SQL patch to apply, which is documented in step #2 of the "Install_CP.txt" file in the module distribution files.

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