Jump to content

Live edit non funziona PS 1.4


apology91

Recommended Posts

  • 10 months later...
  • 2 weeks later...

Ho avuto anche io lo stesso problema aggiornando alla versione 1.4.9.0

 

Va modificato il file \class\FrontController.php in due punti diversi

 

Dalla Riga n.319 alla 322 Originale:

//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());

 

Dalla Riga n.319 alla 322 Modificata:

//live edit

if (Tools::isSubmit('live_edit') AND $ad = Tools::getValue('ad') AND (Tools::getValue('liveToken') == sha1(Tools::getValue('ad')._COOKIE_KEY_)))

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

$cookie->live_edit = true;

 

Riga n.452 Originale:

 

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

 

Riga n.452 Modificata:

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

 

 

 

Della riga 452 ho trovato anche un altra variante che mi elimina il Fatal Error ma non mi permette nessuna modifica. Sembra comunque che per altri utenti vada bene.

 

 

Ciao

Devid

Edited by DevidSp (see edit history)
Link to comment
Share on other sites

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...