Jump to content

LIVE EDIT 1.6.0.8 - leading to 404 page with no options


rv01

Recommended Posts

Hi

When I tick "live edit" in modules positions it leads to a 404 page in the front office,

and no sign of editing options, it's just the normal view.

 

Is there any way to reset/restore this module/functionality?

 

Thanks

 

 

Link to comment
Share on other sites

one of my customers has got similar problem some time ago

the problem was related to... memory limit

 

he just exceded memory limit, and it spawns 404 error

in your case problem can be similar, or related to some other PHP settings (environment) restrictions

 

it's worth to check error logs (apache / php) if you've got an access of course

Link to comment
Share on other sites

  • 2 weeks later...

Thanks but it does not work, and liveedit.tpl is there (I use bootstrap).

 

My PHP.INI file is this:

<?php
memory_limit = 2048M
max_execution_time = 1200;
max_input_time = -1;
post_max_size = 15M;
upload_max_filesize = 15M;
max_input_vars = 10000;
suhosin.get.max_vars = 10000;
suhosin.post.max_vars = 10000;
 
extension=suhosin.so
extension=pdo.so
extension=pdo_sqlite.so
extension=sqlite.so
extension=pdo_mysql.so
 
?>
Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...

I have found a way round this to make it work with friendly url's turned on...

 

In "your shop"/override/controllers/admin/AdminModulesPositionsController.php

 

paste this code before the last }

	public function getLiveEditUrl($live_edit_params)
	{
		$lang = '';
		$admin_dir = dirname($_SERVER['PHP_SELF']);
		$admin_dir = substr($admin_dir, strrpos($admin_dir, '/') + 1);		
		$dir = str_replace($admin_dir, '', dirname($_SERVER['SCRIPT_NAME']));
		if (Configuration::get('PS_REWRITING_SETTINGS') && count(Language::getLanguages(true)) > 1)
			$lang = Language::getIsoById($this->context->employee->id_lang).'/';
		$url = Tools::getCurrentUrlProtocolPrefix().Tools::getHttpHost().$dir.$lang.Dispatcher::getInstance()->createUrl('?', (int)$this->context->language->id, $live_edit_params);
		return $url;
	}


All that we are doing is changing "createUrl('index'," to "createUrl('?'," but doing it in the override folder so wont be changed when upgrading

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

×
×
  • Create New...