shahriar Posted March 21, 2014 Share Posted March 21, 2014 (edited) Hello , after i update some module which is prestashop offerd in admin panel i get problem with shop at first it shows only withe page and after turned on debug i got this error Fatal error: Call to undefined method Media::addJsDef() in /var/www/modules/blocksearch/blocksearch.php on line 77 any advise ? Edited March 21, 2014 by shahriar (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted March 21, 2014 Share Posted March 21, 2014 it would appear that classes/Media.php did not upgrade properly. you can unpack a 1.6.0.5 and ftp the file up and see if resolves your issue. Link to comment Share on other sites More sharing options...
tashkas Posted March 22, 2014 Share Posted March 22, 2014 (edited) im using 1.5.6.2 why im getting modules updates for 1.6 in backoffice you cant configure them. Edited March 22, 2014 by tashkas (see edit history) Link to comment Share on other sites More sharing options...
sitte Posted March 22, 2014 Share Posted March 22, 2014 If You use module or template designed for prestashop 1.6 in 1.5 prestashop store You will get many errors like this: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template ... on line ... unknown tag addJsDef or addJsDefL From what I see Prestashop 1.5 does not have this functions. Best regards Barto 1 Link to comment Share on other sites More sharing options...
w3bsolutions Posted March 22, 2014 Share Posted March 22, 2014 I had the same issue, updated the modules today on my 1.5.6.2 installation and I got that error enabling DEV mode (because my site was blank). I solved it replacing my classes/Media.php with the one from 1.6 package. Link to comment Share on other sites More sharing options...
vekia Posted March 22, 2014 Share Posted March 22, 2014 new modules, designed for 1.6 version in some cases will not work in old ps versions. i know that this sounds weirdy, but unfortunately, it's hard to avoid that. moreover, here on forum you can find several topics (for example related to product comments addon) related to the same problem. before update is always worth to check module compability. Link to comment Share on other sites More sharing options...
bb22dk Posted March 23, 2014 Share Posted March 23, 2014 I have the same problem. I used PrestaShop™ 1.5.6.1 and after some module update I get white blank page when I trying to visit my webshop. I was lucky to backup my DB before update. I want to ask can I restore my webshop to before module updating? and how? Best regard Link to comment Share on other sites More sharing options...
brigittadik Posted March 23, 2014 Share Posted March 23, 2014 same error here. Blank homepage. Fatal error: Call to undefined method Media::addJsDef() in /var/www/modules/blocksearch/blocksearch.php on line 77 i was not lucky to replace the media file. It doesnt work for me. Any suggestions ? Link to comment Share on other sites More sharing options...
El Patron Posted March 23, 2014 Share Posted March 23, 2014 same error here. Blank homepage. Fatal error: Call to undefined method Media::addJsDef() in /var/www/modules/blocksearch/blocksearch.php on line 77 i was not lucky to replace the media file. It doesnt work for me. Any suggestions ? PrestaShop could do much better about their native free modules checking that the ps version actually works...that being said.. I am attaching a native blocksearch module from a 1.5.6.1 installation. uninstall the updated blocksearch then delete it and install this one blocksearch.zip Link to comment Share on other sites More sharing options...
brigittadik Posted March 23, 2014 Share Posted March 23, 2014 Still having problems after installing the module.see screenshot. and also my valuta and languages dont dropp down so i cant choose a valuta or language. any suggestions? Link to comment Share on other sites More sharing options...
JayBEE Posted March 23, 2014 Share Posted March 23, 2014 Sadly I am also affected by this and luckily I took a backup before installing the numerous updates. I also asked about the Addons site providing access to a changelog so one can know the change and determine if they need it for their site or not. Link to comment Share on other sites More sharing options...
bb22dk Posted March 23, 2014 Share Posted March 23, 2014 Hi all I acually solved my problem I get one to restore my cPanel from backup I had made before updating prestashop module. Best regard Link to comment Share on other sites More sharing options...
piercingpusher Posted March 23, 2014 Share Posted March 23, 2014 If modules don`t work in ver. 1.5.6.2 why does prestashop-team offer them to that version??? I have been reparing this all day. omg. My advice is - If you are running 1.5.6.2 - DO NOT UPDATE MODULES IN BO. Your shop will crash! 2 Link to comment Share on other sites More sharing options...
El Patron Posted March 23, 2014 Share Posted March 23, 2014 please voice your frustration in this post.... http://www.prestashop.com/forums/topic/317563-addons-suggesting-incompatiable-native-module-upgrades/ Link to comment Share on other sites More sharing options...
waldiPL Posted March 24, 2014 Share Posted March 24, 2014 I used vekias repository here:https://www.dropbox.com/sh/wj0frfmsy3xmw64/yj89hz0K9J guide here: http://mypresta.eu/en/art/issues/updated-prestashop-modules-not-work.html Link to comment Share on other sites More sharing options...
smallbizwiz Posted August 11, 2014 Share Posted August 11, 2014 I am on 1.6.0.2, and I received the same error. I FTP'd the version from the 1.6.0.2 zip file in /modules/blocksearch to my server, and it's working now. I guess clicking Update from Modules - Modules in the back office upgrades the module to the latest version and not the most compatible???? Really strange since 1.6.0.2 is the stable release at this time. Link to comment Share on other sites More sharing options...
El Patron Posted August 11, 2014 Share Posted August 11, 2014 I am on 1.6.0.2, and I received the same error. I FTP'd the version from the 1.6.0.2 zip file in /modules/blocksearch to my server, and it's working now. I guess clicking Update from Modules - Modules in the back office upgrades the module to the latest version and not the most compatible???? Really strange since 1.6.0.2 is the stable release at this time. if at all possible, upgrade to 1.6.0.9 Link to comment Share on other sites More sharing options...
smallbizwiz Posted August 11, 2014 Share Posted August 11, 2014 Thanks Patron. This is good timing; I'll try that later this week. Can you give any pointers on when to download the latest revision? I have worked with PS long enough to learn (the hard way) to customize as little as possible. That being said, can you give some pointers when to upgrade to a new version? What download page is the best for being the authority on the latest release? Thanks again for the help! Teo Link to comment Share on other sites More sharing options...
El Patron Posted August 11, 2014 Share Posted August 11, 2014 Thanks Patron. This is good timing; I'll try that later this week. Can you give any pointers on when to download the latest revision? I have worked with PS long enough to learn (the hard way) to customize as little as possible. That being said, can you give some pointers when to upgrade to a new version? What download page is the best for being the authority on the latest release? Thanks again for the help! Teo when upgrading always follow the guide http://doc.prestashop.com/display/PS16/Updating+PrestaShop most important is having test shop to try upgrade... I think 1.6.0.9 fixed many previous issues with 1.6... but vekia (moderator) suggests waiting for 1.6.1 that being said, there is no reason not to start testing upgrading using your test copy... Link to comment Share on other sites More sharing options...
smallbizwiz Posted August 11, 2014 Share Posted August 11, 2014 El Patron - Thanks for the info! The upgrade went super smooth. I completely re-built the PS installation, and it was up and running, fully configured, within 30 minutes - record speed. 1.6.0.9 is sooooooooo much better. Just simple things like the automatic child menu on-hover in BO, and the theme configurator/logos on one page. Thanks for the heads up! Here's the link I was asking about; it might help others: http://www.prestashop.com/en/developers-versions ~/www/yourdomain/public_html#: wget http://www.prestashop.com/download/old/prestashop_1.6.0.9.zip Link to comment Share on other sites More sharing options...
El Patron Posted August 11, 2014 Share Posted August 11, 2014 El Patron - Thanks for the info! The upgrade went super smooth. I completely re-built the PS installation, and it was up and running, fully configured, within 30 minutes - record speed. 1.6.0.9 is sooooooooo much better. Just simple things like the automatic child menu on-hover in BO, and the theme configurator/logos on one page. Thanks for the heads up! 1.6.0.9 is da bomb... tip: keep javascript loaded bottom, search forum (post new topic if questions) fight any theme developer or module maker that does not support javascript bottom, don't use their stuff, scream and yell to have them fix it. be a rebel for a better web. Link to comment Share on other sites More sharing options...
Recommended Posts