sneko Posted August 30 Share Posted August 30 (edited) Hi, I installed PrestaShop successfully, used the installation assistant and enabled the "demo" mode to see how it looks. Great, but from the back-office I cannot do any action, like updating settings, adding a theme... For whatever reason it says in french "This feature has been disabled"... But what... no endpoint at all is usable . Is it a normal behavior? Due to new versions? I didn't find tips on forums. I thought about the demo mode restricting access, but I don't find in the UI where to disable this. Thank you, EDIT: It seems indeed coming from me having enabled the demo mode... https://github.com/PrestaShop/PrestaShop/blob/c719b308029ec00a7b5a182c5a8323867c7b7e74/controllers/admin/AdminTabsController.php#L282-L286 I need to find where this parameter has been saved in my container/database... EDIT2: Ok I succeeded after seeing when using Docker with `PS_DEMO_MODE: 1` it will hardcode in a file the setting: https://github.com/PrestaShop/PrestaShop/blob/c719b308029ec00a7b5a182c5a8323867c7b7e74/.docker/docker_run_git.sh#L150 The solution for me was to do the reserve operation: `docker exec -it xxxxxxx sed -i -e "s/define('_PS_MODE_DEMO_', true);/define('_PS_MODE_DEMO_',\ false);/g" /var/www/html/config/defines.inc.php` Then restart, and it's fixed! Edited August 30 by sneko (see edit history) Link to comment Share on other sites More sharing options...
sneko Posted August 30 Author Share Posted August 30 Ok I succeeded after seeing when using Docker with `PS_DEMO_MODE: 1` it will hardcode in a file the setting: https://github.com/PrestaShop/PrestaShop/blob/c719b308029ec00a7b5a182c5a8323867c7b7e74/.docker/docker_run_git.sh#L150 The solution for me was to do the reserve operation: `docker exec -it xxxxxxx sed -i -e "s/define('_PS_MODE_DEMO_', true);/define('_PS_MODE_DEMO_',\ false);/g" /var/www/html/config/defines.inc.php` Then restart, and it's fixed! 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