Post by DavideSheeley » Mon Mar 16, 2009 3:16 pm

Error: Table 'xxxxxx.product_to_image' doesn't exist
Error No: 1146
DELETE FROM product_to_image WHERE product_id = '40'


http://localhost/admin/index.php?route=catalog/product

When I try to delete the default products I get the 1146 error. I searched for it in the forum and couldn't find anything.

Newbie

Posts

Joined
Mon Mar 16, 2009 2:28 pm

Post by fido-x » Mon Mar 16, 2009 3:58 pm

In "admin/model/catalog/product.php", line 148, change from --

Code: Select all

$this->db->query("DELETE FROM product_to_image WHERE product_id = '" . (int)$product_id . "'");
to

Code: Select all

$this->db->query("DELETE FROM product_image WHERE product_id = '" . (int)$product_id . "'");

Image
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool

If you're not living on the edge ... you're taking up too much space!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by theone » Sat Oct 30, 2010 9:11 am

hi, im having this error any body help?

Error: Table 'unlocks1_ocart.zone_to_geo_zone' doesn't exist
Error No: 1146
SELECT tr.tax_class_id, tr.rate AS rate, tr.description, tr.priority FROM tax_rate tr LEFT JOIN zone_to_geo_zone z2gz ON (tr.geo_zone_id = z2gz.geo_zone_id) LEFT JOIN geo_zone gz ON (tr.geo_zone_id = gz.geo_zone_id) WHERE (z2gz.country_id = '0' OR z2gz.country_id = '222') AND (z2gz.zone_id = '0' OR z2gz.zone_id = '3563') ORDER BY tr.priority ASC

New member

Posts

Joined
Sat Oct 30, 2010 9:09 am

Post by i2Paq » Sat Oct 30, 2010 3:07 pm

Always mention version of your OpenCart!

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by jones » Sun Oct 31, 2010 1:34 am

if you didn't delete any database table/query at before then just try to repair and optimize your OC database from your database manager .e.g phpmyadmin

Active Member

Posts

Joined
Tue Aug 24, 2010 1:05 pm

Post by theone » Sun Oct 31, 2010 11:58 am

hi, im using the latest version which is opencart_v1.4.9.1
i tried to repair db but still same problem and i also tried to clean install but unfortunately its same problem..
any help?

regards

New member

Posts

Joined
Sat Oct 30, 2010 9:09 am

Post by theone » Sun Oct 31, 2010 4:21 pm

also tried with 1.4.9.2 but still same

can anybody help?

New member

Posts

Joined
Sat Oct 30, 2010 9:09 am
Who is online

Users browsing this forum: No registered users and 58 guests