Janekx Posted April 9, 2014 Share Posted April 9, 2014 Hi, I tried to build new shop on new PS1.6.0.5 and got in trouble now. When I tryed update native modules today I got this error [PrestaShop] Fatal error in module install-1.3.2: Call to undefined method Tools::recurseCopy() There was 3 modules to update I start with Home text editor and got this error. It is on page index.php?controller=AdminModules&token=c279b0a2f1620352d1f9287993ac56a3 All other pages in Admin works fine. Any idea please? Link to comment Share on other sites More sharing options...
Janekx Posted April 9, 2014 Author Share Posted April 9, 2014 Same here from other user http://www.prestashop.com/forums/topic/322221-error-after-module-update/ some serious issue? Link to comment Share on other sites More sharing options...
006point5 Posted April 9, 2014 Share Posted April 9, 2014 I had the same issue with the homeslider module update. It was also preventing me from accessing the Modules panel in admin. I used sftp to replace the updated homeslider module files with older files. That eliminated the error. 1 Link to comment Share on other sites More sharing options...
Janekx Posted April 9, 2014 Author Share Posted April 9, 2014 Thanks I can confirm that slider make my error too, after upload module from install zip error is away. Link to comment Share on other sites More sharing options...
visualcd Posted April 9, 2014 Share Posted April 9, 2014 (edited) I had the same issue with the homeslider module update. It was also preventing me from accessing the Modules panel in admin. I used sftp to replace the updated homeslider module files with older files. That eliminated the error. I can confirm that renameing the homeslider module fixed the issue or deleteing it or OVERWRITE with the original one from prestashop pack. 10x Edited April 9, 2014 by visualcd (see edit history) Link to comment Share on other sites More sharing options...
matt020983 Posted April 9, 2014 Share Posted April 9, 2014 Got the same issue myself just now. I just commented out the line causing the error install-1.3.2.php <?php if (!defined('_PS_VERSION_')) exit; function upgrade_module_1_3_2($module) { if (Tools::file_exists_cache($module->getLocalPath().'images')) #Tools::recurseCopy($module->getLocalPath().'images', $module->getLocalPath().'img', true); Tools::clearCache(Context::getContext()->smarty, $module->getTemplatePath('homeslider.tpl')); return true; } 1 Link to comment Share on other sites More sharing options...
J.Sahu Posted April 9, 2014 Share Posted April 9, 2014 Yes The homeslider is causing the issue. You can apply the above fix or you can disable it if not using. Link to comment Share on other sites More sharing options...
Ray UK Posted April 9, 2014 Share Posted April 9, 2014 Its just problem after problem with 1.6 at the moment. I got the error today too <?php if (!defined('_PS_VERSION_')) exit; function upgrade_module_1_3_2($module) { if (Tools::file_exists_cache($module->getLocalPath().'images')) Tools::recurseCopy($module->getLocalPath().'images', $module->getLocalPath().'img', true); Tools::clearCache(Context::getContext()->smarty, $module->getTemplatePath('homeslider.tpl')); return true; } reuploading the homeslider module sorted it Im just glad ive not upgraded the live store yet Link to comment Share on other sites More sharing options...
Ray UK Posted April 9, 2014 Share Posted April 9, 2014 well... it sorted it of a fashion. I looked at the shop again, but I had the slider at the top ( which had shrunk from full width back to 3/4 of the page, and also I got one of the sliders full width at the bottom of the homepage (under the New products etc) So I disabled it to see if the random image was the slider. It was Now I cant re-enable the homeslider because it needs an update Link to comment Share on other sites More sharing options...
HansNL Posted April 9, 2014 Share Posted April 9, 2014 I had the same problem. Put the old home slider back and it is working again! Link to comment Share on other sites More sharing options...
arlys Posted April 9, 2014 Share Posted April 9, 2014 I had the same problem, but since I need to keep manage this module, the thing that works for me was what matt saids: Got the same issue myself just now. I just commented out the line causing the error install-1.3.2.php <?php if (!defined('_PS_VERSION_')) exit; function upgrade_module_1_3_2($module) { if (Tools::file_exists_cache($module->getLocalPath().'images')) #Tools::recurseCopy($module->getLocalPath().'images', $module->getLocalPath().'img', true); Tools::clearCache(Context::getContext()->smarty, $module->getTemplatePath('homeslider.tpl')); return true; } 2 Link to comment Share on other sites More sharing options...
Antonio1981 Posted April 9, 2014 Share Posted April 9, 2014 Please, can you tell me where I find that line? Which folder and file? Link to comment Share on other sites More sharing options...
xabikip Posted April 9, 2014 Share Posted April 9, 2014 In modules/homeslider/upgrade/install-1.3.2.php line 9 2 Link to comment Share on other sites More sharing options...
Ray UK Posted April 9, 2014 Share Posted April 9, 2014 My module is now disabled and cant enable it because it needs an update If I update it shows the error If I comment out the line, it says "Module was not upgraded properly so it has been disabled" Link to comment Share on other sites More sharing options...
ppeter Posted April 9, 2014 Share Posted April 9, 2014 hello! yes i have the same problem any solutions? regards Peter Link to comment Share on other sites More sharing options...
xhostar Posted April 9, 2014 Share Posted April 9, 2014 1. Edit file: /modules/homeslider/upgrade/install-1.3.2.php 2. Comment out this two lines: //if (Tools::file_exists_cache($module->getLocalPath().'images')) //Tools::recurseCopy($module->getLocalPath().'images', $module->getLocalPath().'img', true);3. Press F5 in your back-end 4. Uncomment the previous two lines This work for me. (in Prestashop 1.6) Link to comment Share on other sites More sharing options...
ppeter Posted April 9, 2014 Share Posted April 9, 2014 did not work have this in the file /modules/homeslider/upgrade/install-1.3.2.php <?php if (!defined('_PS_VERSION_')) exit; function upgrade_module_1_3_2($module) { if (Tools::file_exists_cache($module->getLocalPath().'images')) Tools::recurseCopy($module->getLocalPath().'images', $module->getLocalPath().'img', true); Tools::clearCache(Context::getContext()->smarty, $module->getTemplatePath('homeslider.tpl')); return true; } error is the same [PrestaShop] Fatal error in module install-1.3.2:Call to undefined method Tools::recurseCopy() Link to comment Share on other sites More sharing options...
xhostar Posted April 9, 2014 Share Posted April 9, 2014 have you commented the two first lines inside upgrade_module_1_3_2() function and obtain the same error? Sorry, i can't help you. The problem is that Tools has not defined the function recurseCopy. Try: <?php if (!defined('_PS_VERSION_')) exit; function upgrade_module_1_3_2($module) { if (Tools::file_exists_cache($module->getLocalPath().'images')) if (method_exists(Tools, 'recurseCopy')) Tools::recurseCopy($module->getLocalPath().'images', $module->getLocalPath().'img', true); Tools::clearCache(Context::getContext()->smarty, $module->getTemplatePath('homeslider.tpl')); return true; } Link to comment Share on other sites More sharing options...
ppeter Posted April 9, 2014 Share Posted April 9, 2014 hello, thank you very much it worked perfect now Link to comment Share on other sites More sharing options...
Janekx Posted April 9, 2014 Author Share Posted April 9, 2014 Looks that module is corrcted now it make update and all works Link to comment Share on other sites More sharing options...
ppeter Posted April 9, 2014 Share Posted April 9, 2014 yes perfect thanks Link to comment Share on other sites More sharing options...
Ray UK Posted April 10, 2014 Share Posted April 10, 2014 (edited) I gave it another go upgrading... Now 1.3.4 is out and im getting this error [PrestaShop] Fatal error in module install-1.3.2: syntax error, unexpected 'recurseCopy' (T_STRING), expecting '(' I have tried re-uploading the unmodified module, it works, but I cant configure because there is an update So im forced to update, and the module bring up an error. 1.6 has been nothing but a pain in the butt since release Looks like its here that is causing the problem ? ( in install-1.3.2.php ) if (!function_exists('recurseCopy')) function recurseCopy($src, $dst, $del = false) { $dir = opendir($src); Edited April 10, 2014 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
xhostar Posted April 10, 2014 Share Posted April 10, 2014 (edited) Edit file: /modules/homeslider/upgrade/install-1.3.2.php solution: if (!function_exists('recurseCopy')) : <- colon blah blah blah endif; <- at the end of the file honestly, they should be careful programming, gives bad image such errors... Edited April 10, 2014 by xhostar (see edit history) 1 Link to comment Share on other sites More sharing options...
Ray UK Posted April 10, 2014 Share Posted April 10, 2014 (edited) cheers xhostar, I originally deleted the whole 'if' line and that worked. Ive now replaced it and added the colon Didnt need the endif; though, when I added that it highlighted as an error. So, the module is now updated and working, complete with the bug regarding the width ( I specify 1107 in module width, but it stays as 779px width, So I have to start editing the js file again) But, now I have 2 sliders on my homepage 1 slider is at the top where it should be, and is working... but not the right width 2nd slider is at the bottom, and is just a list of the images I dont think this 1.6 is ready for live shops yet, its just problem after problem Edited April 10, 2014 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
sunreader Posted April 10, 2014 Share Posted April 10, 2014 It's concerning that not any staff has been posting on these threads, and haven't come up with a fix for it yet. Link to comment Share on other sites More sharing options...
kamiliok Posted April 14, 2014 Share Posted April 14, 2014 (edited) Safe to update module. Works after update. Same issue. Maybe some one knows how to configure the module?I tried to change values in DB "homeslider" table, but no success. Or i need to update DB somehow? Edited April 14, 2014 by kamiliok (see edit history) Link to comment Share on other sites More sharing options...
Luchito Posted August 25, 2014 Share Posted August 25, 2014 Can some body help me i'm new to prestashop, I just finish my shop, and went to admin modules and there was a massage that i was in need to update like 15 different modules so i did, and after the update my products don't open it says Fatal Error: an i don't seem to find the problem my store link is www.directez.com any help will be apreciated because i don;t even remember what modules i did update Link to comment Share on other sites More sharing options...
El Patron Posted August 25, 2014 Share Posted August 25, 2014 Can some body help me i'm new to prestashop, I just finish my shop, and went to admin modules and there was a massage that i was in need to update like 15 different modules so i did, and after the update my products don't open it says Fatal Error: an i don't seem to find the problem my store link is www.directez.com any help will be apreciated because i don;t even remember what modules i did update http://www.prestashop.com/forums/topic/352865-hot-fatal-error-after-module-updates-wishlist/ 1 Link to comment Share on other sites More sharing options...
Luchito Posted August 25, 2014 Share Posted August 25, 2014 http://www.prestashop.com/forums/topic/352865-hot-fatal-error-after-module-updates-wishlist/ Thank you that works perfect Link to comment Share on other sites More sharing options...
Recommended Posts