rv01 Posted July 11, 2014 Share Posted July 11, 2014 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 More sharing options...
El Patron Posted July 11, 2014 Share Posted July 11, 2014 make sure your theme has liveedit.tpl if not (assuming not default boot strap theme) then try copying from default to your theme. Link to comment Share on other sites More sharing options...
vekia Posted July 12, 2014 Share Posted July 12, 2014 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 More sharing options...
rv01 Posted July 24, 2014 Author Share Posted July 24, 2014 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 More sharing options...
Trishke Posted July 24, 2014 Share Posted July 24, 2014 Working locally untill my shop is ready and suddenly have the same problem. Any solutions yet? Thank you! Link to comment Share on other sites More sharing options...
Trishke Posted July 26, 2014 Share Posted July 26, 2014 Apparantly disable the use of friendly url's works but I do want to use them... :-/ Link to comment Share on other sites More sharing options...
rv01 Posted July 28, 2014 Author Share Posted July 28, 2014 Yes, when I disable friendly url's it works for me too. You disable them, you use the live edit and you restore them. Seems the only way, better than nothing. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted August 23, 2014 Share Posted August 23, 2014 I have the same problem..... In the url in the address bar it says "**** shop/index?live_edit=1****" If i delete the "index" then it works fine If i can sort out where to change the url then i will post back and let you know 1 Link to comment Share on other sites More sharing options...
mickeyboy1 Posted September 21, 2014 Share Posted September 21, 2014 (edited) 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 September 21, 2014 by mickeyboy1 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts