Forum
Shipping Zone's Not Adding to Database
Hi,
I'm setting up a Perch Shop and adding shipping zones. I enter all the relevant information but get a "Sorry, that update was not successful" message. It wont let me add it to the database. I get the following in my Debug Message.
Invalid query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'armstrong.perch2_shop_shipping_zones' doesn't exist
Full Debug
SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='dc1cbf0b57fdbceea56098a291efabd9' LIMIT 1
UPDATE perch2_users SET userHash='b429d5a8860863567e19ede5d28038c9' WHERE userID='1'
[33] SELECT p.privKey FROM perch2_user_privileges p
[34] SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID
[7] SELECT collectionID, collectionKey, collectionEditRoles FROM perch2_collections WHERE collectionInAppMenu=1 ORDER BY collectionOrder ASC
Using template: /addons/apps/perch_shop/templates/shop/shippings/zone.html
INSERT INTO perch2_shop_shipping_zones(zoneIsDefault,zoneDynamicFields,zoneCreated) VALUES('1','{\"title\":\"United Kingdom\",\"slug\":\"united-kingdom\",\"description\":{\"_flang\":\"markdown\",\"raw\":\"United Kingdom\",\"processed\":\"<p>United Kingdom<\\/p>\"},\"status\":\"0\",\"countries\":[\"236\"]}','2016-04-21 15:40:37')
Invalid query: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'armstrong.perch2_shop_shipping_zones' doesn't exist
[248] SELECT * FROM perch2_shop_countries ORDER BY country ASC
Is there a way to force table creation?
Thanks
Dan
Can you post your Diagnostics Report please?
Was this a new install or were you on the gamma?
Hi Rachel,
This was a gamma updated to the version that was newly released.
Here is my diagnostic report:
Did you run the final gamma update before moving to v1.0? If not, you should do that.
No I didn't. Is there anyway I can retrospectively do that? Would deleting the shop tables in the database be a solution?
Yes, you can do either. If you're happy to lose what you have, deleting the tables and installing 1.0.1 fresh would help.
Otherwise run the update script from the final gamma.