poizonhack Posted November 11 Share Posted November 11 An error occurred during installation... You may use the links on the left to return to previous steps, or restart the installation by clicking here. Error Details: 1: HTTP 500 - error - {"success":true,"message":""} Link to comment Share on other sites More sharing options...
Simplix Innovations Posted November 18 Share Posted November 18 This issue may arise due to a locked file called appAppKernelProdContainer.php.cache_clear.lock located in the cache directory. When PrestaShop tries to mirror, rename, copy, or remove this file, it fails without any error message, resulting in the installation getting stuck. Solution: By editing the AppKernel.php Luckily, there is an easy fix for this issue. The solution involves modifying the kernel function getContainerClearCacheLockPath in the AppKernel.php file before installing PrestaShop. Here’s the procedure: Unzip the PrestaShop installation package and find the /prestashop folder Open /app/AppKernel.php file in a text editor Locate the getContainerClearCacheLockPath function Replace the existing code with the following: protected function getContainerClearCacheLockPath(): string { $class = $this->getContainerClass(); $cacheDir = sys_get_temp_dir(); //$this->getCacheDir(); return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class); } This modification reroutes the cache to a temporary system folder instead of the original cache location, thereby avoiding the locked file. This allows the installation process to continue without any problems. * Important note: You will need to revert after installation (don't forgot to do so) Once you have completed the installation of PrestaShop, it's crucial to revert the code to its default condition. Neglecting this step could lead to issues with renaming cache files in the back office following the installation of a module. Here’s the necessary procedure: Reopen AppKernel.php file Restore the original code for the getContainerClearCacheLockPath function Save your changes By adhering to these steps, you will guarantee that PrestaShop is installed correctly and functions effectively after the installation process. Hopefully this will help you and anyone facing similar issues. 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