kwij Posted May 22, 2012 Share Posted May 22, 2012 (edited) Hi All, Im a new Prestashop user and I thank you guys for this forum because its helps me a lot. I'm working on Prestashop 1.4.7.3 on Mac and I dont have the initial prestashop theme. My website was working perfectly until I deleted blocklanguages in order to install blocklanguagesDP (with a menu list) I changed my mind and I installed back the initial languages module. Since this operation, i don't have the contents anymore (no CMS, no body, no footer, no products...) Could you please help me to fix this ? Thanks Kwij www.flexsuit.com Edited May 23, 2012 by kwij (see edit history) Link to comment Share on other sites More sharing options...
tomerg3 Posted May 22, 2012 Share Posted May 22, 2012 Turn on error reporting in /config/config.inc.php line #29 and reload the front end, you should see the error that is preventing it from loading properly. Link to comment Share on other sites More sharing options...
kwij Posted May 23, 2012 Author Share Posted May 23, 2012 Thank you. In the source code, I found the following errors/things: 1/ <b>Warning</b>: asort() expects parameter 1 to be array, boolean given in <b>/homez.501/flexsuit/www/modules/tmspecials/tmspecials.php</b> on line <b>57</b><br 2/ b>Notice</b>: Undefined index: id_cms in <b>/homez.501/flexsuit/www/tools/smarty/compile/c61af010bd2331e2121eda96c0b92da99c5b31d8.file.tmheaderlinks.tpl.php</b> on line <b>29</ 3/ <b>Warning</b>: include_once(/homez.501/flexsuit/www/modules//locationdetection/locationdetection.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in <b>/homez.501/flexsuit/www/override/classes/FrontController.php</b> on line <b>32</b><br /> <br /> <b>Warning</b>: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/homez.501/flexsuit/www/modules//locationdetection/locationdetection.php' for inclusion (include_path='.:/usr/local/lib/php') in <b>/homez.501/flexsuit/www/override/classes/FrontController.php</b> on line <b>32</b><br /> <br /> <b>Fatal error</b>: Class 'LocationDetection' not found in <b>/homez.501/flexsuit/www/override/classes/FrontController.php</b> on line <b>33</b><br /> I installed recently location detection module, and I copy and paste the file FrontController.php to www/override/classes. Moreover, I cannot find anymore location detection in the module in the back office. What should I do to fix it ? Thank you for your help Link to comment Share on other sites More sharing options...
tomerg3 Posted May 23, 2012 Share Posted May 23, 2012 It looks like the module was removed, and the change to FrontController is still there. Either re-install the module, or delete the override file. Link to comment Share on other sites More sharing options...
kwij Posted May 23, 2012 Author Share Posted May 23, 2012 Thank you tomerg3 I deleted the Frontontrollers file and installed again the module, now it works. Before putting solved in the title, can you help me for the first bug please : 1/ <b>Warning</b>: asort() expects parameter 1 to be array, boolean given in <b>/homez.501/flexsuit/www/modules/tmspecials/tmspecials.php</b> on line <b>57</b><br In tmspecials.php line 57 I have : $tmp = Product::getPricesDrop(intval($params['cookie']->id_lang)); asort($tmp); if (!$special = Product::getPricesDrop((int)($params['cookie']->id_lang)) AND !Configuration::get Thank you for your help again. Link to comment Share on other sites More sharing options...
tomerg3 Posted May 23, 2012 Share Posted May 23, 2012 I am not familiar with that module, you should ask the developer who created it. It should not stop your page from loading though, and you can turn off error reporting and you will not see it anymore. Link to comment Share on other sites More sharing options...
Recommended Posts