Alexenn Posted October 5, 2018 Share Posted October 5, 2018 (edited) Hello, I am using prestashop 1.7.3.3 after installing and testing my shop in a subdirectory called /1/ on my server, I wanted to change the main directory of my shop so it could replace the old-site I was using, that's why I had to install and test it in a subdir before. So now that I moved all files from /1/ to / and changed the physical_uri in the ps_shop_url table, and also regenerate the .htaccess everything is working fine except for some modules that I had to install during the dev phase in the subdirectory. And now when I'm in the backoffice trying to access the Modules tab prestashop give me that error: Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: PrestaShop\PrestaShop\Adapter\Module\Module::instanciateLegacyModule(): Failed opening required '/flex/storage/website/site/www/1/modules/ps_featuredbrands/ps_featuredbrands.php' (include_path='/flex/storage/website/site/www/tools/htmlpurifier/standalone:/flex/storage/website/site/www/vendor/pear/pear_exception:/flex/storage/website/site/www/vendor/pear/console_getopt:/flex/storage/website/site/www/vendor/pear/pear-core-minimal/src:/flex/storage/website/site/www/vendor/pear/archive_tar:.:/usr/share/php:/usr/share/pear') at n/a in /flex/storage/website/site/www/src/Adapter/Module/Module.php line 320 by looking at the url it's trying to access : "www/1/modules/ps_featuredbrands/ps_featuredbrands.php" we can see that the old url is still stored somewhere (in the symphony settings I believe). Anyone know where I can find that old url stored ? or even regenerate the path ? Thanks for your help Edited October 5, 2018 by Alexenn (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted October 5, 2018 Share Posted October 5, 2018 6 minutes ago, Alexenn said: Hello, after installing and testing my shop in a subdirectory called /1/ on my server, I wanted to change the main directory of my shop so it could replace the old-site I was using, that's why I had to install and test it in a subdir before. So now that I moved all files from /1/ to / and changed the physical_uri in the ps_shop_url table, and also regenerate the .htaccess everything is working fine except for some modules that I had to install during the dev phase in the subdirectory. And now when I'm in the backoffice trying to access the Modules tab prestashop give me that error: Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: PrestaShop\PrestaShop\Adapter\Module\Module::instanciateLegacyModule(): Failed opening required '/flex/storage/website/site/www/1/modules/ps_featuredbrands/ps_featuredbrands.php' (include_path='/flex/storage/website/site/www/tools/htmlpurifier/standalone:/flex/storage/website/site/www/vendor/pear/pear_exception:/flex/storage/website/site/www/vendor/pear/console_getopt:/flex/storage/website/site/www/vendor/pear/pear-core-minimal/src:/flex/storage/website/site/www/vendor/pear/archive_tar:.:/usr/share/php:/usr/share/pear') at n/a in /flex/storage/website/site/www/src/Adapter/Module/Module.php line 320 by looking at the url it's trying to access : "www/1/modules/ps_featuredbrands/ps_featuredbrands.php" we can see that the old url is still stored somewhere (in the symphony settings I believe). Anyone know where I can find that old url stored ? or even regenerate the path ? Thanks for your help Have you cleared cache? Link to comment Share on other sites More sharing options...
Alexenn Posted October 5, 2018 Author Share Posted October 5, 2018 I just cleared prestashop cache and my browser cache but the error is still there unfortunately Link to comment Share on other sites More sharing options...
joseantgv Posted October 5, 2018 Share Posted October 5, 2018 2 minutes ago, Alexenn said: I just cleared prestashop cache and my browser cache but the error is still there unfortunately Just to ensure it's not a cache problem, you could try these things: Manual cache clearing Using an FTP client or hosting file manager, go to the root directory of your site on the server. Delete content of the following directories (except index.php files): /cache/smarty/compile/ /cache/smarty/cache/ These are main cache directories. Also, if necessary, you can clean the following directories: /cache/cachefs/ /img/tmp/ /themes/your_theme/cache/ Similarly, delete all files inside these directories, except for index.php files 3. Delete file /cache/class_index.php. It is cache of PHP classes. You need to clear it when you make some overrides of classes and controllers. 4. Cache cleared. Refresh the page you worked on and check the result. Disabling cache You can simply turn off the cache for a while, so that it doesn’t interfere with your work on the site. Don’t forget to enable it back after making changes, it significantly speed up PrestaShop! In the Back Office go to the page Advanced Parameters -> Performance. Turn on the option Template compilation: Force compilation and toggle “Cache” option to “No”. At the bottom of the page in the “Caching” block, turn off the “Use caching” option. In the block CCC (COMBINE, COMPRESS AND CACHE) turn off all options. These settings affect the caching of CSS and JS files. Save changes Cache cleared. Refresh the page you worked on and check the result. 1 Link to comment Share on other sites More sharing options...
Alexenn Posted October 5, 2018 Author Share Posted October 5, 2018 (edited) Thanks to take the time to answer. Unfortunately, even if your answer was aiming a prestashop 1.6 I believe, I know where are the caches and cleared em all on my ftp, and did everything else, but the error is still here Edited October 5, 2018 by Alexenn (see edit history) Link to comment Share on other sites More sharing options...
K@s Posted June 23, 2019 Share Posted June 23, 2019 (edited) Try deleting the (dev and prod) folders inside the "/var/cache" directory . this solved my problem Edited June 23, 2019 by K@s (see edit history) 1 Link to comment Share on other sites More sharing options...
Chicho1969 Posted February 21, 2020 Share Posted February 21, 2020 Try to delete var/cache/prod. 1 Link to comment Share on other sites More sharing options...
Web Planet Posted April 29, 2020 Share Posted April 29, 2020 Yeah!!!! works Try deleting the (dev and prod) folders inside the "/var/cache" directory . Thanks! Link to comment Share on other sites More sharing options...
dany2234 Posted February 28, 2022 Share Posted February 28, 2022 Hi, This solution works! Solved the error with Module Manager after moving the website from a subdomain to main domain. I made a copy after both folders (dev and prod) before deleting....just in case something will crack. "prod" folder was regenerated immediately..."dev" not yet ... but the error was solved and the Module Manager is accessible again. Thanks Link to comment Share on other sites More sharing options...
joseantgv Posted March 3, 2022 Share Posted March 3, 2022 En 28/2/2022 a las 4:46 PM, dany2234 dijo: Hi, This solution works! Solved the error with Module Manager after moving the website from a subdomain to main domain. I made a copy after both folders (dev and prod) before deleting....just in case something will crack. "prod" folder was regenerated immediately..."dev" not yet ... but the error was solved and the Module Manager is accessible again. Thanks "dev" is used when you enable DEBUG mode. 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