Jump to content

Auto-Upgrade 1.8.4.2->1.9.0 LiveEdit "Fatal Error"


Recommended Posts

After successful autoupgrade from 1.8.4.2 to 1.9.0 Final

 

Everything seems to be working properly

 

except for module positions LiveEdit feature.

 

page returns "Fatal Error"

 

 

anyone else getting this?

 

 

 

To fixe it open FrontController.php (classes/FrontController.php)

 

in

 

//live edit

if (Tools::isSubmit('live_edit') && $ad = Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad').COOKIE_KEY))

if (!is_dir(PS_ROOT_DIR.DIRECTORY_SEPARATOR.$ad))

die(Tools::displayError());

 

replace

 

die(Tools::displayError());

 

with

 

$cookie->live_edit = true;

 

AND

 

Always in (classes/frontcontroller.php)

 

replace

 

Tools::addJS(array(PS_JS_DIR.'jquery/jquery.min.js', PS_JS_DIR.'jquery/jquery.easing.1.3.js',PS_JS_DIR.'tools.js'));

 

with

 

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'));

 

it should work! smile.gif)

Edited by lucarobo (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

I've also had the same problem upgrading to version 1.4.9.0

 

 

replace

 

Tools::addJS(array(PS_JS_DIR.'jquery/jquery.min.js', PS_JS_DIR.'jquery/jquery.easing.1.3.js',PS_JS_DIR.'tools.js'));

 

with

 

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'));

 

Not

 

 

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'));

Link to comment
Share on other sites

official fix is replacing "&&" with "AND" in

 

if (Tools::isSubmit('live_edit') && $ad = Tools::getValue('ad') && Tools::getValue('liveToken') == sha1(Tools::getValue('ad').COOKIE_KEY))

 

this line.

 

and nothing else.

 

(taken from svn and works for me)

Link to comment
Share on other sites

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...