BluTiGeS Posted May 8, 2014 Share Posted May 8, 2014 (edited) If you go to backoffice and edit a product to remove image the page stays as it is after the confirmation box to delete the image. No reload happens , iamge still shown there. But with firebug you see a JSON.parse: unexpected character as error happend. After manually reload page the image seems to be deleted. Please fix the deletion ajax call. Also seeing this:TypeError: data.content is undefinedid = data.content.id; already checked, it seems the callback function does not get the required id from json returned. File: \admin123\themes\default\template\controllers\products\images.tpl function afterDeleteProductImage(data) Has anybody also seen this with PS 1.6.0.6 Edited May 8, 2014 by BluTiGeS (see edit history) Link to comment Share on other sites More sharing options...
SWcoins.com Posted May 9, 2014 Share Posted May 9, 2014 I have not had issues with deleting images. Maybe try to regenerate the thumbnails and/or clear your cache? Link to comment Share on other sites More sharing options...
BluTiGeS Posted May 9, 2014 Author Share Posted May 9, 2014 Hi, Regenerate does Not have any effect. From debugging it is in fact missing in the json response. Are you using 1.6.0.6 ? Have you checked with firebug.? :-) Link to comment Share on other sites More sharing options...
SWcoins.com Posted May 10, 2014 Share Posted May 10, 2014 I am using 1.6.0.6 and I am able to delete images..... ??? I don't know. Link to comment Share on other sites More sharing options...
BluTiGeS Posted May 10, 2014 Author Share Posted May 10, 2014 Have upgraded from 1.4 or 1.6.0.5 ? I cannot understand why it is different here. But from code and response it must fail.... Can you share your Images.tpl from admin themes? Link to comment Share on other sites More sharing options...
BluTiGeS Posted May 13, 2014 Author Share Posted May 13, 2014 (edited) Solved using latest Layout-ajax.tpl file from github Edited May 13, 2014 by BluTiGeS (see edit history) 2 Link to comment Share on other sites More sharing options...
Cyrille C. Posted May 28, 2014 Share Posted May 28, 2014 Hi, Same problem with upgrade from 1.5.6.2 to 1.6.0.6. Solved with your solution using latest layout-ajax.tpl from PS Github. Thanks a lot, CC Link to comment Share on other sites More sharing options...
sandipchandela Posted June 6, 2014 Share Posted June 6, 2014 Hi Same issue in 1.6. No regenerate images working out successfully. Clear Cache also didn't effect Only solution for this. Solved using laest layout-ajax-file.tpl available on github. Thanks Link to comment Share on other sites More sharing options...
David Adifco Posted September 23, 2014 Share Posted September 23, 2014 Hi, Exactly the same issue and solved using latest layout-ajax.tpl from PS Github. Thanks for this solution. Link to comment Share on other sites More sharing options...
Recommended Posts