Bill Dalton Posted December 28, 2012 Share Posted December 28, 2012 Upgrade reported this, ----------- [ERROR] SQL 1.5.3.0 1101 in ALTER TABLE `ps_cart` CHANGE `delivery_option` `delivery_option` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '': BLOB/TEXT column 'delivery_option' can't have a default value Warning detected during upgrade. ----------- Is this something I can fix manually in my database? I also received this line with a red X "Upgrade complete, but warnings has been found. Please restore your shop." Does that mean I should revert back to 1.5.2.0 ? Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 28, 2012 Author Share Posted December 28, 2012 Everything seems to be working ok ... Link to comment Share on other sites More sharing options...
razaro Posted December 28, 2012 Share Posted December 28, 2012 Hi If that is only error you shouldn't revert back to 1.5.2. I just tried fresh install of 1.5.3 and there for delivery_option type is varchar(100), Null yes, default Null but also upgraded one website from 1.5.2 to 1.5.3 and there is bit different values : text, no, none. This is maybe a bug an I will report it just in case. You can try to Backup ps_cart table first and manually to change row delivery_option to Type: text, Default none and Null should not be selected. 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 28, 2012 Author Share Posted December 28, 2012 Thanks! I also had trouble with the BO giving page not found errors. Fixed it by clearing cache. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 28, 2012 Author Share Posted December 28, 2012 Serious problems. Can't add new products and get errors when I try to modify existing products. I'm going back to PS 1.5.2.0 for now. Link to comment Share on other sites More sharing options...
oldskooljunkieguy Posted December 29, 2012 Share Posted December 29, 2012 That was the same issue I had can't add or modify products. Link to comment Share on other sites More sharing options...
intimi Posted December 29, 2012 Share Posted December 29, 2012 (edited) I had the following msg: "An error occurred while updating object. product ()" I found a solution after I edited in prestadhop/config/defines.inc.php to temporarily change this line define('_PS_MODE_DEV_', false); to define('_PS_MODE_DEV_', true); So that revealed that the field redirect_type was missing in the tables ps_product AND ps_product_shop I know this is naive and optimistic, but adding it as an INT field which may be left empty to both tables did the job for me. Problem temporarily and dirtily solved. SO PLEASE, IF SOMEONE AT "THE FORGE" CAN TEST THIS OUT THOROUGHLY AS THIS DOESN'T FEEL REALLY SAFE. Regards and best wishes, Michiel Edited December 29, 2012 by intimi (see edit history) 3 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 29, 2012 Author Share Posted December 29, 2012 (edited) >>"An error occurred while updating object. product ()" Yes, I would get that error if I added a product image to an exsisting product. However, when I tried to enter a new product, nothing would happen. The information just disappears. intimi, can you add new products? Edited December 29, 2012 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
oldskooljunkieguy Posted December 29, 2012 Share Posted December 29, 2012 I can't add, edit or change status to enable. Link to comment Share on other sites More sharing options...
intimi Posted December 29, 2012 Share Posted December 29, 2012 >>"An error occurred while updating object. product ()" Yes, I would get that error if I added a product image to an exsisting product. However, when I tried to enter a new product, nothing would happen. The information just disappears. intimi, can you add new products? Now I can create or modify all sections, including shipping, prices, seo, combinations, associations, suppliers,... The problem appears to be solved for me, but I cannot guarantee that there will be no probs further on. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 29, 2012 Author Share Posted December 29, 2012 So that revealed that the field redirect_type was missing in the tables ps_product AND ps_product_shopI know this is naive and optimistic, but adding it as an INT field which may be left empty to both tables did the job for me. Problem temporarily and dirtily solved. Thank you! That solved it for me as well. Added an empty field redirect_type as INT to tables ps_product AND ps_product_shop. Thank you Michiel! Link to comment Share on other sites More sharing options...
kwells Posted December 29, 2012 Share Posted December 29, 2012 Thank you! That solved it for me as well. Added an empty field redirect_type as INT to tables ps_product AND ps_product_shop. Thank you Michiel! This is Nuts! We should not have to go through these hoops....I do not want to be forced to make an edit to the tables to get my damn store working again...This is BS! 3 Link to comment Share on other sites More sharing options...
tdr170 Posted December 29, 2012 Share Posted December 29, 2012 Totally, seems to me that Prestashop releases new versions and lets us find the bugs and fix them, while to some degree that is OK as it is FREEWARE, however this type of error should not be present, is anyone actually testing these things or what. What they need to do is when the next version is ready for release pick a few of us from here on the forum for a week or two of testing we could then give feedback and have a product on release that worked. There will always be some bugs that pop up as we don't always do things in the same way or order. Its not for those of us who can and will edit files and mess with databases but for those new to Prestashop I feel sorry for. Beta Testers Anyone! I Volunteer I can also confirm that addng redirect_type to the to tables fixed the issue with editing products, great work intimi. 3 Link to comment Share on other sites More sharing options...
workworkwork Posted December 29, 2012 Share Posted December 29, 2012 (edited) This is Nuts! We should not have to go through these hoops....I do not want to be forced to make an edit to the tables to get my damn store working again...This is BS! I guess I'll be waiting for 1.5.4.0 to upgrade. I'm still on 1.4.8.2. Edited December 29, 2012 by workworkwork (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted December 29, 2012 Share Posted December 29, 2012 I guess I'll be waiting for 1.5.4.0 to upgrade. I'm still on 1.4.8.2. I await your next post - I guess i'll wait for 1.5.5.0 to upgrade. Im still on 1.4.8.2. LOL My actual online shop is 1.4.7 it works without any issues. Link to comment Share on other sites More sharing options...
kwells Posted December 29, 2012 Share Posted December 29, 2012 Totally, seems to me that Prestashop releases new versions and lets us find the bugs and fix them, while to some degree that is OK as it is FREEWARE, however this type of error should not be present, is anyone actually testing these things or what. What they need to do is when the next version is ready for release pick a few of us from here on the forum for a week or two of testing we could then give feedback and have a product on release that worked. There will always be some bugs that pop up as we don't always do things in the same way or order. Its not for those of us who can and will edit files and mess with databases but for those new to Prestashop I feel sorry for. Beta Testers Anyone! I Volunteer I can also confirm that addng redirect_type to the to tables fixed the issue with editing products, great work intimi. I do not know how to add this change....Use MyPHPAdmin? ...if so, ok now how do I add this to the table.....Help please..I'm dead in the water floating toward the 4K waterfall Link to comment Share on other sites More sharing options...
dagnez Posted December 29, 2012 Share Posted December 29, 2012 (edited) Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. Just some tags for easier search, a lot of people will have that issue: - An error occurred while updating object. product () - modify product error - add product error - redirect product error - prestashop 1.5.3 Edited December 29, 2012 by dagnez (see edit history) 6 Link to comment Share on other sites More sharing options...
TurtlePie Posted December 29, 2012 Share Posted December 29, 2012 Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. Owwwww!!!! this is working, thank u very much, i desperate editing code but found nothing, till now. did this SQL manual instruction resulting any force code to system? I mean with this manual SQL maybe any negative side effect? Link to comment Share on other sites More sharing options...
kwells Posted December 29, 2012 Share Posted December 29, 2012 Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. Awesome!...this restores my confidence in Humanity...well at least for Today.... it worked perfect.....only one thing I had to change ps-product to pr-product Thanks Again, Dagnez 2 Link to comment Share on other sites More sharing options...
dagnez Posted December 29, 2012 Share Posted December 29, 2012 (edited) did this SQL manual instruction resulting any force code to system? I mean with this manual SQL maybe any negative side effect? Not really. I believe It just made a space to store the data that didn't have any place to be saved before. Apparently someone, who made new redirect function for products forgot to add instructions to make sure that there is a database field to store these instructions. IMHO this is something that really needs to be there. It is a shame that this bug exists in a newly released 1.5.3 version as it is a major one. Edited December 29, 2012 by dagnez (see edit history) 3 Link to comment Share on other sites More sharing options...
Ninna Posted December 29, 2012 Share Posted December 29, 2012 I'm thinking to upgrade my shops from Prestashop 1.5.1 to 1.5.3. Does it worth it or should I wait for some fixes? I'm thinking to upgrade my shops from Prestashop 1.5.1 to 1.5.3. Does it worth it or should I wait for some fixes? Link to comment Share on other sites More sharing options...
romast Posted December 29, 2012 Share Posted December 29, 2012 (edited) this worked for me as well: Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. Thank you! Edited December 29, 2012 by romast (see edit history) 1 Link to comment Share on other sites More sharing options...
THM11 Posted December 29, 2012 Share Posted December 29, 2012 (edited) I also tested 1.5.3 and I get a few bugs with my theme, anybody can help me out? this worked for me as well: Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. Thank you! EDIT: romast, you bastard Removed your pics... Anyway did you find solution to the issue? EDIT2: removed pictures, and will use separate but similar topic for this one: http://www.prestashop.com/forums/topic/212996-153-upgrade-tip/ Hi, I've noticed the same thing that you just copy pasted there! Also I lost my second level categories from the list as well, this just sucks! Tried so far: *Adjust the configurations from the blockcategories module on BO (No help) *Copied over the "old blockcategories and block manuafacturers" => Fixed the heading issues, but second level categories are still missing Edited December 29, 2012 by THM11 (see edit history) Link to comment Share on other sites More sharing options...
razaro Posted December 29, 2012 Share Posted December 29, 2012 Guys I think it would be best that you create separate topics for your issues. That way better and more chance to solve your problems. Link to comment Share on other sites More sharing options...
dagnez Posted December 29, 2012 Share Posted December 29, 2012 (edited) No that you mentioned it.. Me too! (( No subcategories showing. Grrr.. Well, these are all fresh 1.5.3 installation basic issues, so IMHO it could be all here. Everyone after 1.5.3 upgrade will have to apply those changes manually. Edited December 29, 2012 by dagnez (see edit history) Link to comment Share on other sites More sharing options...
romast Posted December 29, 2012 Share Posted December 29, 2012 Sorry THM11, I found another topic with this issue, so I tryed to remove it. http://www.prestashop.com/forums/topic/212996-153-upgrade-tip/ Link to comment Share on other sites More sharing options...
kwells Posted December 29, 2012 Share Posted December 29, 2012 (edited) No that you mentioned it.. Me too! (( No subcategories showing. Grrr.. Well, these are all fresh 1.5.3 installation basic issues, so IMHO it could be all here. Everyone after 1.5.3 upgrade will have to apply those changes manually. Just Checked...My Subcatagories are gone as well...Sheesh! I'll monitor this thread for the fix Edited December 29, 2012 by kwells (see edit history) Link to comment Share on other sites More sharing options...
Anat Kitithamrong Posted December 29, 2012 Share Posted December 29, 2012 (edited) Thanks intimi, dagnez your solution works great! In my case there is another field to add in ps_product , ps_product_shop id_product_redirected int 10 After added the above field including the fields suggest by dagnez some products locked solution found: After I manual edited the tables above.everything back to work again alter table ps_product add column redirect_type enum ('404','301','302') charset 'utf8' not null; alter table ps_product add column id_product_redirected int(10) unsigned not null default 0; alter table ps_product_shop add column redirect_type enum ('404','301','302') charset 'utf8' not null; alter table ps_product_shop add column id_product_redirected int(10) unsigned not null default 0; Edited December 29, 2012 by Anat Kitithamrong (see edit history) 1 Link to comment Share on other sites More sharing options...
THM11 Posted December 29, 2012 Share Posted December 29, 2012 Just Checked...My Subcatagories are gone as well...Sheesh! I'll monitor this thread for the fix I've created thread for this category issue: http://www.prestashop.com/forums/topic/213104-153-missing-subcategories-from-blockcategories/ Link to comment Share on other sites More sharing options...
redtango2 Posted December 29, 2012 Share Posted December 29, 2012 (edited) RESOLVED Idid'nt empty cahce it's works now TEST I try it the result in SQL tab alter table ps_product add column redirect_type int (10) ;# 106 lignes affectées. alter table ps_product_shop add column redirect_type int (10) ;# 106 lignes affectées. then i go to B.O. product and it dont work to modify product ( want only save Votre produit va être enregistré en tant que broui lon ° work only on duplication Upgrade Module last version Upgrade de PS 1.5.2 à PS.15.3 file modified Tous les fichiers ont été mis à jour. La mise à jour de la base de données va commencer. Cette opération peut prendre quelques minutes, selon la taille de votre base et la puissance de votre serveur. [OK] SQL 1.5.3.0 SET NAMES 'utf8' [OK] PHP 1.5.3.0 : /* PHP:outstanding_allow_amount1530(); */ [OK] PHP 1.5.3.0 : /* PHP:blocknewsletter1530(); */ [OK] PHP 1.5.3.0 : /* PHP:block_category_1521(); */ [OK] SQL 1.5.3.0 UPDATE `ps_order_state` SET `delivery` = 0 WHERE `id_order_state` = 3 [OK] SQL 1.5.3.0 ALTER TABLE `ps_product_shop` ADD `id_product_redirected` int(10) unsigned NOT NULL default '0' AFTER `active` [OK] SQL 1.5.3.0 ALTER TABLE `ps_product` ADD `id_product_redirected` int(10) unsigned NOT NULL default '0' AFTER `active` [OK] SQL 1.5.3.0 UPDATE `ps_order_state` SET `send_email` = 1 WHERE `id_order_state` = (SELECT `value` FROM `ps_configuration` WHERE `name` = 'PS_OS_WS_PAYMENT' LIMIT 1) [OK] SQL 1.5.3.0 UPDATE `ps_order_state_lang` SET `template` = 'payment' WHERE `id_order_state` = (SELECT `value` FROM `ps_configuration` WHERE `name` = 'PS_OS_WS_PAYMENT' LIMIT 1) [OK] SQL 1.5.3.0 DELETE FROM `ps_configuration` WHERE `name`= 'PS_HIGH_HTML_THEME_COMPRESSION' [OK] SQL 1.5.3.0 INSERT INTO `ps_configuration`(`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_MAIL_COLOR', '#db3484', NOW(), NOW()) [OK] SQL 1.5.3.0 ALTER TABLE `ps_order_cart_rule` CHANGE `name` `name` VARCHAR(254) [OK] SQL 1.5.3.0 ALTER TABLE `ps_cart` CHANGE `delivery_option` `delivery_option` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' [OK] SQL 1.5.3.0 ALTER TABLE `ps_currency_shop` ADD `conversion_rate` DECIMAL( 13, 6 ) NOT NULL [OK] SQL 1.5.3.0 UPDATE `ps_currency_shop` a SET `conversion_rate` = (SELECT `conversion_rate` FROM `ps_currency` b WHERE a.id_currency = b.id_currency) [OK] SQL 1.5.3.0 INSERT INTO `ps_configuration`(`name`, `value`, `id_shop`, `id_shop_group`, `date_add`, `date_upd`) (SELECT 'PS_GIFT_WRAPPING_TAX_RULES_GROUP', b.`id_tax_rules_group`, a.`id_shop`, a.`id_shop_group`, NOW(), NOW() FROM `ps_configuration` a JOIN `ps_tax_rule` b ON (a.value = b.id_tax) WHERE a.name='PS_GIFT_WRAPPING_TAX' GROUP BY a.`id_shop`, a.`id_shop_group` ) [OK] SQL 1.5.3.0 DELETE FROM `ps_configuration` WHERE name='PS_GIFT_WRAPPING_TAX' [OK] SQL 1.5.3.0 ALTER TABLE `ps_cart_rule` ADD `highlight` tinyint(1) unsigned NOT NULL default 0 AFTER `gift_product_attribute` Mise à jour de la base de données Ok fichier settings.inc.php mis à jour [sKIP] directory "/tools/smarty/cache/" doesn't exist and cannot be emptied. [sKIP] directory "/tools/smarty/compile/" doesn't exist and cannot be emptied. [sKIP] directory "/tools/smarty_v2/cache/" doesn't exist and cannot be emptied. [sKIP] directory "/tools/smarty_v2/compile/" doesn't exist and cannot be emptied. 2 module(s) seront mis à jour. Utilisation de la classe ZipArchive sauvegarde extraite les fichier du module autoupgrade ont bien été mis à jour Utilisation de la classe ZipArchive sauvegarde extraite les fichier du module autoupgrade ont bien été mis à jour Utilisation de la classe ZipArchive sauvegarde extraite les fichier du module cashondelivery ont bien été mis à jour Utilisation de la classe ZipArchive sauvegarde extraite les fichier du module cashondelivery ont bien été mis à jour Les modules addons ont bien été mis à jour. La base de données a été nettoyée. End of process PrestaShop™ 1.5.2.0 Temps de chargement : 0.432s Questions / Renseignements / Formations : +33 (0)1.40.18.30.04 de 09h à 18h | Contact | Bug Tracker | Forum Edited December 29, 2012 by redtango (see edit history) Link to comment Share on other sites More sharing options...
TurtlePie Posted December 29, 2012 Share Posted December 29, 2012 No that you mentioned it.. Me too! (( No subcategories showing. Grrr.. Well, these are all fresh 1.5.3 installation basic issues, so IMHO it could be all here. Everyone after 1.5.3 upgrade will have to apply those changes manually. ups.., hell yeah just realize, my product subcategory didn't show "+" to expand the dropdown Link to comment Share on other sites More sharing options...
intimi Posted December 29, 2012 Share Posted December 29, 2012 This is Nuts! We should not have to go through these hoops....I do not want to be forced to make an edit to the tables to get my damn store working again...This is BS! - BS? Not really if you use the recent 1-click upgrade module. It has a rollback function. Select a backup version and click. - I don't like those workarounds either: what if they simply had omitted all new columns in all tables? It could take us a century to find out. So I expect another minor "stable" upgrade within days, now. - What users could do is run PS on an operational server, AND install it on a small, cheap server too, just for testing. Always do upgrades in your test environments first. Copy DB from operational to testing environment before doing the upgrade, so you're a bit more sure you will get operationally what you see in test. - Sticking to old versions too long is much like trying to get a university degree without attending courses: after a couple of major upgrades, it's like you are the only english speaker left over in mainland China ;-) Link to comment Share on other sites More sharing options...
intimi Posted December 29, 2012 Share Posted December 29, 2012 (edited) Something to be avoided in the future: Someone added a beautiful new function but forgot the instructions to upgrade the DB as well. That's a pretty common mistake as the DB is not a part of the versioning system and many developers leave DB design to the well encapsulated realm of a DBA. In enterprise environments, this is often a bless. ;-) On the developer's platform, it will all have worked well, as he/she added these needed colums manually. Unit testing would be well on it's place here! (If it exists on a dev platform, I appologize.) That means that, for each and every module, controller, function or whatever, a so called unit test should exist. When a change is made, the unit test should be examined that it checks the impact of the change as well. The idea is that for a given input, ther must always be the same output. It's a good idea to split up complex tests in a series of simple ones: a little change requires only to change or add a simple test. Complex tests would make the testing itself error prone. These tests are bundled in a test scenario that should run periodically, as even data changes in a live system always can create unexpected conditions. In some environments I have seen, there is a "main" and a "test" part, the test part's structure being a kind of an echo of the main structure. This made it easy to leave the test part out of the operatonal environment, while it remained easy for developers to find or create the appriopriate tests for their changes. For testing against a live thing and the impact of user input, it's essential to have all the testing on board, however. Edited December 29, 2012 by intimi (see edit history) Link to comment Share on other sites More sharing options...
TuKo Posted December 29, 2012 Share Posted December 29, 2012 Thanks for the workaround to solve the products problem. I've updated from 1.4.7 to 1.5.3 and see that the "reference" of each product disappeared. After correcting the previous bug, I've realized that in the DB the "supplier_reference" was changed to "reference". Do you see this a problem too? Link to comment Share on other sites More sharing options...
tdr170 Posted December 30, 2012 Share Posted December 30, 2012 Thanks intimi, dagnez your solution works great! In my case there is another field to add in ps_product , ps_product_shop id_product_redirected int 10 After added the above field including the fields suggest by dagnez some products locked solution found: After I manual edited the tables above.everything back to work again alter table ps_product add column redirect_type enum ('404','301','302') charset 'utf8' not null; alter table ps_product add column id_product_redirected int(10) unsigned not null default 0; alter table ps_product_shop add column redirect_type enum ('404','301','302') charset 'utf8' not null; alter table ps_product_shop add column id_product_redirected int(10) unsigned not null default 0; In my case the id_product_redirected is already in the database with the settings in your post but still no sub categories show in category menu. What is hilarius is we have been waiting for this release with all the fixes from 1.5.2 and instead we get a product with more bugs then I have ever seen, changed code, H4 changed in modules and global.css to .title_block and who knows what else at this point it is completely useless. Link to comment Share on other sites More sharing options...
tdr170 Posted December 30, 2012 Share Posted December 30, 2012 Just found another issue when in FO, click on a category and I get the list of all products, but click view on a product and I get a 404 page not found, turn off friendly URLs and then I can view porducts. I have never had an issue with friendly URLs, looking at the .htaccess I see that it is not completely filled as before. So it seems as though the Friendly URLs are not being written correctly to the .htaccess file. Some categories I can view products in other 404 error rolling back Im done. There are way to many errors to play with this as an upgrade, I will do a fresh install and once I have that working I will try the upgrade again. I fear that we are putting band aids on a gusher. Link to comment Share on other sites More sharing options...
ascker Posted December 30, 2012 Share Posted December 30, 2012 Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. this WORKED FINE. Everything back to normal, thank you so much! I was very frustrated. Thank you and happy new year!! Link to comment Share on other sites More sharing options...
iltecnobadante Posted December 30, 2012 Share Posted December 30, 2012 Hi all, excuse me for my bad english, I have many problem after upgrade from 1.5.2 to 1.5.3: - Not work, during csv product import, url image for the product (not import remote image for product) - category product not work (for example --> TV led not is into Category TV but is posted into Home Page) Please help me, Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 30, 2012 Author Share Posted December 30, 2012 I thought I had everything working in PS V1.5.3.0 but when I create a new product and then try to add it to the jquery blockcart it doesn't put in the thumbnail image. It also doesn't created the small "X" so you can remove the product from the cart. If you move to a new page the image then shows in the cart but the product remove selector remains missing. That's it for me ... back to V 1.5.2.0. I wonder how long before the Prestashop Team starts talking to us and giving some sort of guidance? Anything would be greatly appreciated. Heads in the sand is not helping. Link to comment Share on other sites More sharing options...
nanopresta Posted December 30, 2012 Share Posted December 30, 2012 I thought I had everything working in PS V1.5.3.0 but when I create a new product and then try to add it to the jquery blockcart it doesn't put in the thumbnail image. It also doesn't created the small "X" so you can remove the product from the cart. If you move to a new page the image then shows in the cart but the product remove selector remains missing. That's it for me ... back to V 1.5.2.0. I wonder how long before the Prestashop Team starts talking to us and giving some sort of guidance? Anything would be greatly appreciated. Heads in the sand is not helping. You didnt get the memo..... 1.5.3 was some kind of JOKE! Link to comment Share on other sites More sharing options...
Frank van der Voort Posted December 30, 2012 Share Posted December 30, 2012 Because of some problems with v1.5.2 I decided to upgrade to 1.5.3. Maybe that would solve some problems. Everything worked fine until I wanted to add products. Could not add products or duplicate them. I tried above fixes and it is possible to duplicate products but not add them. When I want to change a duplicated and save it, it doesn't work. Looks like the "save" function is broken. All these problems with v1.5 are really getting on my nerves. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 30, 2012 Author Share Posted December 30, 2012 (edited) It is like Whac-A-Mole. If you fix one thing, another pops up. With PS V1.5.3.0 The Prestashop team will need to regroup and choose new leadership. They have no choice. Edited December 30, 2012 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
Frank van der Voort Posted December 30, 2012 Share Posted December 30, 2012 The mole got whacked! Adding products and saving them is working again. Removed the columns mentioned before, added them again and now it's working. Link to comment Share on other sites More sharing options...
premanshu Posted December 30, 2012 Share Posted December 30, 2012 Here are the correct sql from from db_structure.sql file: ALTER TABLE `ps_product_shop` ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; ALTER TABLE `ps_product` ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 30, 2012 Author Share Posted December 30, 2012 Thanks premanshu, I'm going to add these changes to a 1.5.2.0 table and then run the 1.5.3.0 upgrade. See if that will do it. Maybe because those are not present during the upgrade other things are messing up. and alter ps_cart table first, change row delivery_option to Type: text, Default none and Null should not be selected. Hopfully that will help this error. ---------- [ERROR] SQL 1.5.3.0 1101 in ALTER TABLE `ps_cart` CHANGE `delivery_option` `delivery_option` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '': BLOB/TEXT column 'delivery_option' can't have a default value Warning detected during upgrade. ---------- 1 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 30, 2012 Author Share Posted December 30, 2012 OK, this update went better, Still received error, ---------- [ERROR] SQL 1.5.3.0 1101 in ALTER TABLE `ps_cart` CHANGE `delivery_option` `delivery_option` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '': BLOB/TEXT column 'delivery_option' can't have a default value Warning detected during upgrade. ---------- Even though I had modified the file before the upgrade. The problem I had with adding an item to the jquery cart - turns out that is a bug in both 1.5.3.0 and 1.5.2.0 in that if you do not enter a price for the product, customers will be able to add the item to the cart, but no thumbnail and no remove selector. But at least for now I'm back to testing PS V1.5.3.0. I really want to use it, all the bugs fix listed in change log. I want that. Link to comment Share on other sites More sharing options...
diador Posted December 30, 2012 Share Posted December 30, 2012 I change , delete rewrite rules in Prestashop 1.5.3 {categories:/}{id}-{rewrite}{-:ean13}.html But always the same structure appears, someone else with the same problem? pretty serious bug in production shops that have custom url Pleas help Thank Link to comment Share on other sites More sharing options...
ininna Posted December 30, 2012 Share Posted December 30, 2012 I had the same problem after update to 1.5.3 version. Missing subcategories from blockcategories. I have solved this problem in my e-shop. I have uninstall blockcategories module and after install again. After this module start works correct. Regards Inna Link to comment Share on other sites More sharing options...
dagnez Posted December 30, 2012 Share Posted December 30, 2012 I change , delete rewrite rules in Prestashop 1.5.3 {categories:/}{id}-{rewrite}{-:ean13}.html But always the same structure appears, someone else with the same problem? pretty serious bug in production shops that have custom url go to classes/Dispatcher.php to line 123 and change it there. It is hardcoded now, so just change it there. 1 Link to comment Share on other sites More sharing options...
zackv1 Posted December 31, 2012 Share Posted December 31, 2012 I thought I had everything working in PS V1.5.3.0 but when I create a new product and then try to add it to the jquery blockcart it doesn't put in the thumbnail image. It also doesn't created the small "X" so you can remove the product from the cart. If you move to a new page the image then shows in the cart but the product remove selector remains missing. That's it for me ... back to V 1.5.2.0. I wonder how long before the Prestashop Team starts talking to us and giving some sort of guidance? Anything would be greatly appreciated. Heads in the sand is not helping. OMG! I have the same problem and thought that it was because of my theme. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 31, 2012 Author Share Posted December 31, 2012 The problem I had with adding an item to the jquery cart - turns out that is a bug in both 1.5.3.0 and 1.5.2.0 in that if you do not enter a price for the product, customers will be able to add the item to the cart, but no thumbnail and no remove selector. Link to comment Share on other sites More sharing options...
diador Posted December 31, 2012 Share Posted December 31, 2012 go to classes/Dispatcher.php to line 123 and change it there. It is hardcoded now, so just change it there. Thank you for your help. Diador Link to comment Share on other sites More sharing options...
prestanesia Posted December 31, 2012 Share Posted December 31, 2012 Well, I just upgrade from 1.5.2 to 1.5.3 and it seems the tinymce is not loaded if we're using Chrome. The sub menu in the product page (price, associations, combinations, etc) isnt working at all :-D Anybody has the same issue ? Link to comment Share on other sites More sharing options...
diador Posted December 31, 2012 Share Posted December 31, 2012 Well, I just upgrade from 1.5.2 to 1.5.3 and it seems the tinymce is not loaded if we're using Chrome. The sub menu in the product page (price, associations, combinations, etc) isnt working at all :-D Anybody has the same issue ? Just erase the memory (cash and History) browser and it's ok Link to comment Share on other sites More sharing options...
m77 Posted December 31, 2012 Share Posted December 31, 2012 Didn't work for , got an error message: " Error SQL query: ALTER TABLE ps_product ADD COLUMN redirect_type INT( 10 ) ; MySQL said: #1046 - No database selected Cant add product to cart either m77 Link to comment Share on other sites More sharing options...
kwells Posted December 31, 2012 Share Posted December 31, 2012 Didn't work for , got an error message: " Error SQL query: ALTER TABLE ps_product ADD COLUMN redirect_type INT( 10 ) ; MySQL said: #1046 - No database selected Cant add product to cart either m77 If you are using a Host like BlueHost....My Database name is pr*_1 not ps*_1 so, I had to edit the patch code to: ALTER TABLE `pr_product_shop` ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; ALTER TABLE `pr_product` ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; Link to comment Share on other sites More sharing options...
kwells Posted December 31, 2012 Share Posted December 31, 2012 (edited) Now I can not access my site.....this is the error log [31-Dec-2012 00:27:09] PHP Fatal error: Uncaught Link to database cannot be established: SQLSTATE[HY000] [2005] Unknown MySQL server host '_DB_SERVER_' (0) thrown in /home5/uavobjec/public_html/classes/db/DbPDO.php on line 58 Edited December 31, 2012 by kwells (see edit history) Link to comment Share on other sites More sharing options...
dagnez Posted December 31, 2012 Share Posted December 31, 2012 Now I can not access my site.....this is the error log [31-Dec-2012 00:27:09] PHP Fatal error: Uncaught Link to database cannot be established: SQLSTATE[HY000] [2005] Unknown MySQL server host '_DB_SERVER_' (0) thrown in /home5/uavobjec/public_html/classes/db/DbPDO.php on line 58 Better just roll back your backup and stay with 1.5.2 until 1.5.4 comes (hopefully with smaller amount of bugs) Link to comment Share on other sites More sharing options...
kwells Posted December 31, 2012 Share Posted December 31, 2012 Thanks premanshu, I'm going to add these changes to a 1.5.2.0 table and then run the 1.5.3.0 upgrade. See if that will do it. Maybe because those are not present during the upgrade other things are messing up. and alter ps_cart table first, change row delivery_option to Type: text, Default none and Null should not be selected. Hopfully that will help this error. I did this as well.....Now I'm running again!....Wow! what a friggin ordeal....Thanks to the Guys here...You Rock! Link to comment Share on other sites More sharing options...
Hacheman Posted December 31, 2012 Share Posted December 31, 2012 (edited) go to classes/Dispatcher.php to line 123 and change it there. It is hardcoded now, so just change it there. thx !! saved me. But why is it harcoded now? All my old links are www.site.com/product-id.htm and not as it is done in 1.5.3. So I returned to 1.5.2 waiting better days if any. So BO Preferences-SEO doesn't have any impact? Thx guys for all your help Edited December 31, 2012 by Hacheman (see edit history) Link to comment Share on other sites More sharing options...
the.rampage.rado Posted December 31, 2012 Share Posted December 31, 2012 I took a leap and did the upgrade using 1click module. I can't see any problems except the product edit bug (which I fixed following the recommended way) I'm noticing few more rows for translation, new horizontal menu look, new email colour features. I can't see how it's better in terms of SEO and stuff but.. It still doesn't work on my host with browser caching enabled. Fixed bug when clicking on paypal logo. Still have 'currency not supported error' in PayPal. Still have 'free shipping' on some carriers if all carriers in all products are not selected (opposing on the description under the box) - bug. Link to comment Share on other sites More sharing options...
Totti Posted December 31, 2012 Share Posted December 31, 2012 modifying the database works but I do not mind the pictures. You can not do an update without also update the program to upload csv !! Link to comment Share on other sites More sharing options...
premanshu Posted December 31, 2012 Share Posted December 31, 2012 There is also another sql step in my view which is needed and not being done during update. "outstanding_allow_amount1530();" step of upgrade run on wrong table ps_address and hence results in doing nothing. After doing manual check I found that column "outstanding_allow_amount" is part of ps_customer table. So you might also need to run below sql to make the changes required by step "outstanding_allow_amount1530();". ALTER TABLE `ps_customer` CHANGE `outstanding_allow_amount` `outstanding_allow_amount` DECIMAL(20, 6) NOT NULL DEFAULT 0.000000; Link to comment Share on other sites More sharing options...
premanshu Posted December 31, 2012 Share Posted December 31, 2012 Ok.. Just to make it more easier for everyone here is the manual upgrade steps I have created on my test site (now working fine on 1.5.3) to upgrade my live site from 1.5.2 to 1.5.3.. You can refer to these tables structures if these have been correctly updated or not after upgrade. Change ps_ with your table prefix. Important Note: These steps are valid only for upgrade from 1.5.2 to 1.5.3 and use it at your own risk. Do not hold me responsible. SET NAMES 'utf8'; ALTER TABLE `ps_customer` CHANGE `outstanding_allow_amount` `outstanding_allow_amount` DECIMAL(20, 6) NOT NULL DEFAULT 0.000000; UPDATE `ps_order_state` SET `delivery` = 0 WHERE `id_order_state` = 3; ALTER TABLE `ps_product_shop` ADD `id_product_redirected` int(10) unsigned NOT NULL default '0' AFTER `active` ; ALTER TABLE `ps_product` ADD `id_product_redirected` int(10) unsigned NOT NULL default '0' AFTER `active` ; ALTER TABLE `ps_product_shop` ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; ALTER TABLE `ps_product` ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; UPDATE `ps_order_state` SET `send_email` = 1 WHERE `id_order_state` = (SELECT `value` FROM `ps_configuration` WHERE `name` = 'PS_OS_WS_PAYMENT' LIMIT 1); UPDATE `ps_order_state_lang` SET `template` = 'payment' WHERE `id_order_state` = (SELECT `value` FROM `ps_configuration` WHERE `name` = 'PS_OS_WS_PAYMENT' LIMIT 1); DELETE FROM `ps_configuration` WHERE `name`= 'PS_HIGH_HTML_THEME_COMPRESSION'; INSERT INTO `ps_configuration`(`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_MAIL_COLOR', '#db3484', NOW(), NOW()); ALTER TABLE `ps_order_cart_rule` CHANGE `name` `name` VARCHAR(254); ALTER TABLE `ps_cart` CHANGE `delivery_option` `delivery_option` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT ''; ALTER TABLE `ps_currency_shop` ADD `conversion_rate` DECIMAL( 13, 6 ) NOT NULL; UPDATE `ps_currency_shop` a SET `conversion_rate` = (SELECT `conversion_rate` FROM `ps_currency` b WHERE a.id_currency = b.id_currency); INSERT INTO `ps_configuration`(`name`, `value`, `id_shop`, `id_shop_group`, `date_add`, `date_upd`) (SELECT 'PS_GIFT_WRAPPING_TAX_RULES_GROUP', b.`id_tax_rules_group`, a.`id_shop`, a.`id_shop_group`, NOW(), NOW() FROM `ps_configuration` a JOIN `ps_tax_rule` b ON (a.value = b.id_tax) WHERE a.name='PS_GIFT_WRAPPING_TAX' GROUP BY a.`id_shop`, a.`id_shop_group` ); DELETE FROM `ps_configuration` WHERE name='PS_GIFT_WRAPPING_TAX'; ALTER TABLE `ps_cart_rule` ADD `highlight` tinyint(1) unsigned NOT NULL default 0 AFTER `gift_product_attribute`; 1 Link to comment Share on other sites More sharing options...
tdr170 Posted December 31, 2012 Share Posted December 31, 2012 What a shame I to have rolled back to 1.5.2 to wait for better days and in my case its just a test site my online shop is version 1.4.7 and it works, of course with some mods but I have no issues. Link to comment Share on other sites More sharing options...
nanopresta Posted December 31, 2012 Share Posted December 31, 2012 What a JOKE I am sure there will be yet another version coming out soon Next Year LOL in maybe a week or so. 1.5.3 HAHA Happy New Year. I recommend sticking with 1.5.2 TESTING is up to us users from the look of it. Link to comment Share on other sites More sharing options...
m77 Posted December 31, 2012 Share Posted December 31, 2012 1.5.3.1 is available- add/modify product issue solved, Thanks team P.S !! still can't add product to cart, may be a server issue...i hope m77 bigoshop.com Link to comment Share on other sites More sharing options...
iltecnobadante Posted January 1, 2013 Share Posted January 1, 2013 Problem on csv import is the same....after import Category not set.... please help... 1 Link to comment Share on other sites More sharing options...
Totti Posted January 1, 2013 Share Posted January 1, 2013 Same problem ,not import image and category. Link to comment Share on other sites More sharing options...
iltecnobadante Posted January 1, 2013 Share Posted January 1, 2013 no news? Link to comment Share on other sites More sharing options...
prestanesia Posted January 1, 2013 Share Posted January 1, 2013 no news? they've relased 1.5.3.1 Link to comment Share on other sites More sharing options...
iltecnobadante Posted January 1, 2013 Share Posted January 1, 2013 they've relased 1.5.3.1 Yes, now I have installed 1.5.3.1 but category not correct valorized during import and I have always "HomePage" in category.... 1 Link to comment Share on other sites More sharing options...
iltecnobadante Posted January 2, 2013 Share Posted January 2, 2013 problem on category when import csv nor solve with 1.5.3.1 there are news? Link to comment Share on other sites More sharing options...
epigos Posted January 4, 2013 Share Posted January 4, 2013 I have run the sql command alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; And this is what it gave me. #1060 - Duplicate column name 'redirect_type' please any suggestions... Link to comment Share on other sites More sharing options...
Aplexw Posted January 4, 2013 Share Posted January 4, 2013 Error during download downloading from http://www.prestashop.com/download/releases/prestashop_1.5.3.1.zip md5 will be checked against c7490320cf300a0791da3d0a94637fc3 downloading from http://www.prestashop.com/download/releases/prestashop_1.5.3.1.zip file will be saved in /home/x17elctr/public_html/prestatest/admintest/autoupgrade/download/prestashop.zip Error during download When i try to update from 1.5.2 to 1.5.3 . How can this be fixed ? Link to comment Share on other sites More sharing options...
BillyHardcore Posted January 4, 2013 Share Posted January 4, 2013 I have run the sql command alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; And this is what it gave me. #1060 - Duplicate column name 'redirect_type' please any suggestions... Same issue, Quite a gamestopper, this one.. :-) Link to comment Share on other sites More sharing options...
Porpoise Posted January 5, 2013 Share Posted January 5, 2013 Well, I've ended up doing what a lot of others here have done - rolled back to 1.5.2.0 It's a shame because it looked like there were some nice additional features in there. However, as it broke more than it fixed, and I really have to get this site up and running before our existing site stops running (will effectively be switched off by PHP upgrade on server). Of course, the problem now is I'm back to tussling with the bugs in that version! I've just discovered that any product with a weight equal to the upper limit of a range [0.001 - 0.100 kgs | product weight 0.100 Kgs] results in Free Shipping!! Now I have to hunt for the code that says < instead of <= Link to comment Share on other sites More sharing options...
sadlyblue Posted January 6, 2013 Share Posted January 6, 2013 Better just roll back your backup and stay with 1.5.2 until 1.5.4 comes (hopefully with smaller amount of bugs) I've been reading about all the errors/bugs, and i think i will wait for another release to upgrade. I'll stay with 1.5.2 so far. I can't see the major benefits for upgrading to 1.5.3 anyway... Link to comment Share on other sites More sharing options...
igor.i Posted January 7, 2013 Share Posted January 7, 2013 I have run the sql command alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; And this is what it gave me. #1060 - Duplicate column name 'redirect_type' please any suggestions... @epicos, @billyhc: this means that the column 'redirect_type' already exist in your db. Link to comment Share on other sites More sharing options...
igor.i Posted January 7, 2013 Share Posted January 7, 2013 (edited) EDIT: (disregard the message bellow) - clean install of ps 152, imported db, upgraded to 1.5.3.1. works. In Presta 1.5.3.1 I have a problem with adding and modifying products: - An error occurred while updating object. product () I tried the following, nothing works: 1: alter table ps_product add column redirect_type int (10) ;# 449 rows affected. alter table ps_product_shop add column redirect_type int (10) ;# 449 rows affected. 2: alter table ps_product DROP column redirect_type ; alter table ps_product_shop DROP column redirect_type ; 3: ALTER TABLE ps_product ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; ALTER TABLE ps_product_shop ADD `redirect_type` ENUM('', '404', '301', '302') NOT NULL DEFAULT '' AFTER `active` ; The DB was populated using Presta 1.5.2. As you can see, there are 449 products. Any suggestion, please? Edited January 8, 2013 by igor.i (see edit history) Link to comment Share on other sites More sharing options...
tdr170 Posted January 7, 2013 Share Posted January 7, 2013 Well, I've ended up doing what a lot of others here have done - rolled back to 1.5.2.0 It's a shame because it looked like there were some nice additional features in there. However, as it broke more than it fixed, and I really have to get this site up and running before our existing site stops running (will effectively be switched off by PHP upgrade on server). Of course, the problem now is I'm back to tussling with the bugs in that version! I've just discovered that any product with a weight equal to the upper limit of a range [0.001 - 0.100 kgs | product weight 0.100 Kgs] results in Free Shipping!! Now I have to hunt for the code that says < instead of <= This is normal if that is the only weight range you have, Prestashop uses an include/exclude form of weight ranges. Like this, from and including 0.001 up to but excluding 0.100 so an item that weighed 0.100 would fall to the next weight range. set ranges like this. 0.00 - 0.100 0.100 - 0.200 0.200 - .0300 1 Link to comment Share on other sites More sharing options...
madc Posted January 12, 2013 Share Posted January 12, 2013 Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. Just some tags for easier search, a lot of people will have that issue: - An error occurred while updating object. product () - modify product error - add product error - redirect product error - prestashop 1.5.3 The solution works for me as well!!! Great !! for the time being........ Link to comment Share on other sites More sharing options...
mag80 Posted January 13, 2013 Share Posted January 13, 2013 I tried manual l update of database as per : Yes, use MyPHPAdmin, go to your database, choose SQL tab and paste this: alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; then click GO button on the bottom right. but i was still getting error - line duplicate. I reverted back to 1.5.2 and updated again to 1.5.3 today- for now it works perfect. I can add and edit products. I did not have to manually change the database after this update. Maybe Presta guys corrected their update after so many people reported the same problem? Link to comment Share on other sites More sharing options...
badelakshmi Posted January 23, 2013 Share Posted January 23, 2013 Well, I just upgrade from 1.5.2 to 1.5.3 and it seems the tinymce is not loaded if we're using Chrome. The sub menu in the product page (price, associations, combinations, etc) isnt working at all :-D Anybody has the same issue ? Hi, Have you resolved this issue. I also have the same problem. Please help me. Thanks, Lakshmi Link to comment Share on other sites More sharing options...
bartvdhoeven Posted January 25, 2013 Share Posted January 25, 2013 Great topic! I had to add id_product_redirected and redirect_type to my ps_product and ps_product_shop tables to fix the problems. Link to comment Share on other sites More sharing options...
m.andrzejak Posted February 6, 2013 Share Posted February 6, 2013 Hello, Many thanks to: @premanshu for #44 and @dagnez for #58 I saved a lot of time. I have idea this topic should be PINNED - and each next version of PS should have Topic like this named perhaps: Patch or Service Pack with unofficial solutions to fix bugs. What you think? Link to comment Share on other sites More sharing options...
afshop Posted February 10, 2013 Share Posted February 10, 2013 I have the same problem on PS 1.5.3... i tried to add the new columns in the db but i cannot change and add new articles. Do you have a solution? Link to comment Share on other sites More sharing options...
redalice734 Posted February 19, 2013 Share Posted February 19, 2013 (edited) Hi, I'm also getting this error after an upgrade to 1.5.3.1 - An error occurred while updating object. product () I tried the phpMyAdmin fix (adding redirect_type) to pr_product & pr_product_shop but it didn't make any difference. We're trying like crazy to get our shop working but so far it's been one thing after another -- please help! Update: Used the fix suggested by Anat in #28 - now it's working like a charm. Should have double checked this entire thread first -- sorry, guys. And thanks, you're the best! I've found more solutions here than I ever have over @ Forge Edited February 19, 2013 by redalice734 (see edit history) Link to comment Share on other sites More sharing options...
gharnati Posted July 16, 2013 Share Posted July 16, 2013 Hey guys I'm new to all this so please bare with me. I tried this solution : alter table ps_product add column redirect_type int (10) ; alter table ps_product_shop add column redirect_type int (10) ; but it didn't work for me and I still cannot add new products or new categories.. all i can do is modify the sample products.. please help I got the shop online and I'm already behind schedule. Link to comment Share on other sites More sharing options...
skulasinghe Posted March 2, 2014 Share Posted March 2, 2014 (edited) Wow..... 4 days of searching was ended because your help. thanks. in ps 1.4 never had issue like this. thanks alot Anat Kitithamrong Edited March 2, 2014 by skulasinghe (see edit history) Link to comment Share on other sites More sharing options...
Modish Posted June 2, 2015 Share Posted June 2, 2015 Hi everybody, If still someone is looking for the solution please follow this video it's very clear and everything it will be all right. Link to comment Share on other sites More sharing options...
Recommended Posts