Kriter.io Posted April 4, 2011 Share Posted April 4, 2011 Hi Guys,i've to prestashop installed, i'm talking about version 1.4 - When i use LIVE EDIT button to move modules on homepage from left to right or other positions, on one store it works great, on the second stores it gives me a message FATAL ERROR. why? what should i do to make it working?Thanks Link to comment Share on other sites More sharing options...
Vincent Augagneur Posted April 6, 2011 Share Posted April 6, 2011 Hi falabby,This bug has been fixed on svn.To fixe it open FrontController.php approximately on ligne 274 juste replace the if condition like this if (!is_dir(_PS_ROOT_DIR_.DIRECTORY_SEPARATOR.$ad)) Regards Link to comment Share on other sites More sharing options...
crypton Posted April 6, 2011 Share Posted April 6, 2011 Hi falabby,This bug has been fixed on svn.To fixe it open FrontController.php approximately on ligne 274 juste replace the if condition like this if (!is_dir(_PS_ROOT_DIR_.DIRECTORY_SEPARATOR.$ad)) Regards I can't find the code to replace. What exactly should I be looking for? Thanks Link to comment Share on other sites More sharing options...
Kriter.io Posted April 6, 2011 Author Share Posted April 6, 2011 please tell me what i should do.i should replace WHAT with WHAT? Link to comment Share on other sites More sharing options...
ScubaLessonsInc Posted April 13, 2011 Share Posted April 13, 2011 Falaby, the FrontController.php file is inside the Classes folderScroll down to line#274 you will see // live edit just above that.. then two lines begining with "if" if (Tools::isSubmit('live_edit') AND $ad = Tools::getValue('ad') AND (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_))) if (is_dir($_SERVER['DOCUMENT_ROOT'].__PS_BASE_URI__.$ad)) $cookie->live_edit = true; Change the second line: if (is_dir($_SERVER['DOCUMENT_ROOT'].__PS_BASE_URI__.$ad)) $cookie->live_edit = true; to if (!is_dir(_PS_ROOT_DIR_.DIRECTORY_SEPARATOR.$ad)) $cookie->live_edit = true; Looks like it is working now.. Link to comment Share on other sites More sharing options...
Rhapsody Posted August 25, 2012 Share Posted August 25, 2012 (edited) Just upgraded from 1.4.8.3 to 1.4.9.0 and now I have a fatal error when I try to use Live Edit Edited August 25, 2012 by Rhapsody (see edit history) Link to comment Share on other sites More sharing options...
Rhapsody Posted August 25, 2012 Share Posted August 25, 2012 I rolled back the upgrade and now have Live Edit again. Until I know how to fix it I will stay at 1.4.8.3 Link to comment Share on other sites More sharing options...
fjoejoe Posted August 26, 2012 Share Posted August 26, 2012 1.4.9.0 did not work after the update, but I changed the code and it works. Thank you ScubaLessonsInc works for me too! Link to comment Share on other sites More sharing options...
indus Posted August 26, 2012 Share Posted August 26, 2012 Just upgraded from 1.4.8.3 to 1.4.9.0 and now I have a fatal error when I try to use Live Edit Same here. After upgrade to 1.4.9. But my front controller looks different. //live edit if (Tools::isSubmit('live_edit') && $ad = Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_)) { self::$smarty->assign(array('ad' => $ad, 'live_edit' => true)); self::$smarty->display(_PS_ALL_THEMES_DIR_.'live_edit.tpl'); } else Tools::displayError(); } Not sure where to add the code. Link to comment Share on other sites More sharing options...
DStainton Posted August 27, 2012 Share Posted August 27, 2012 I had the same problem - fatal error. As a temporary measure I tried the Live edit code from FrontController.php in version 1.4.8.2 so on line 320 (1.4.9) file I changed line from if (Tools::isSubmit('live_edit') && $ad = Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_)) to if (Tools::isSubmit('live_edit') AND $ad = Tools::getValue('ad') AND (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_))) and it all works ok again 3 Link to comment Share on other sites More sharing options...
DStainton Posted August 27, 2012 Share Posted August 27, 2012 Sorry forgot to add line 520 was changed as well to read the same and I also had problems saving the new layout, but changed line 452: Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery.min.js', _PS_JS_DIR_.'jquery/jquery.easing.1.3.js', _PS_JS_DIR_.'tools.js')); to the older version Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery-1.4.4.min.js', _PS_JS_DIR_.'jquery/jquery.easing.1.3.js', _PS_JS_DIR_.'tools.js')); 3 Link to comment Share on other sites More sharing options...
Onirim Posted August 27, 2012 Share Posted August 27, 2012 Thank you for the soluce, it's good now Link to comment Share on other sites More sharing options...
yugal Posted September 6, 2012 Share Posted September 6, 2012 thanks Link to comment Share on other sites More sharing options...
Mar20 Posted September 9, 2012 Share Posted September 9, 2012 Sorry forgot to add line 520 was changed as well to read the same and I also had problems saving the new layout, but changed line 452: Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery.min.js', _PS_JS_DIR_.'jquery/jquery.easing.1.3.js', _PS_JS_DIR_.'tools.js')); to the older version Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery-1.4.4.min.js', _PS_JS_DIR_.'jquery/jquery.easing.1.3.js', _PS_JS_DIR_.'tools.js')); Perfect thanks Link to comment Share on other sites More sharing options...
akrem Posted September 18, 2012 Share Posted September 18, 2012 Thks , Link to comment Share on other sites More sharing options...
Inpromark Posted January 15, 2013 Share Posted January 15, 2013 (edited) there are 4 files of FrontController.php....what is the root, please? /public_html/override/classes/_FrontController.php /public_html/modules/cloudcache/override/classes/controller/FrontController.php /public_html/modules/cloudcache/override_14/classes/FrontController.php /public_html/classes/FrontController.php Edited January 15, 2013 by Inpromark (see edit history) Link to comment Share on other sites More sharing options...
Aldeag Posted March 1, 2013 Share Posted March 1, 2013 I had the same problem - fatal error. As a temporary measure I tried the Live edit code from FrontController.php in version 1.4.8.2 so on line 320 (1.4.9) file I changed line from if (Tools::isSubmit('live_edit') && $ad = Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_)) to if (Tools::isSubmit('live_edit') AND $ad = Tools::getValue('ad') AND (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_))) and it all works ok again Sorry forgot to add line 520 was changed as well to read the same and I also had problems saving the new layout, but changed line 452: Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery.min.js', _PS_JS_DIR_.'jquery/jquery.easing.1.3.js', _PS_JS_DIR_.'tools.js')); to the older version Tools::addJS(array(_PS_JS_DIR_.'jquery/jquery-1.4.4.min.js', _PS_JS_DIR_.'jquery/jquery.easing.1.3.js', _PS_JS_DIR_.'tools.js')); Worked for me with Prestashop 1.4.9 Link to comment Share on other sites More sharing options...
Inpromark Posted March 1, 2013 Share Posted March 1, 2013 (edited) Problem fixed in 1.4.9.0 I have just replace the whole file FrontController.php for the one from prestashop_1.4.7.3 installation file and it works perfect. http://inpromark.com Edited March 1, 2013 by Inpromark (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now