Latest posts

The 500 error when installing prestashop 8.x

The Error: HTTP 500

We have a pretty simple workaround for this problem. And you will need to do a few core file edits before restarting the theme installation process.

1: you need to open the zip file (prestashop installation file) or you will need to extract the installation package.

2: Open the AppKernel.php file with the path /app/AppKernel.php in a text editor. Search for the function "getContainerClearCacheLockPath"

protected function getContainerClearCacheLockPath(): string { $class = $this->getContainerClass(); // $this->getCacheDir(); comment this line $cacheDir = sys_get_temp_dir(); // add new code line return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class); }

You can then retry the installation process.

After completing the theme installation process. The last step you need to do is restore the original line of code (as if you had not edited it).

protected function getContainerClearCacheLockPath(): string { $class = $this->getContainerClass(); $this->getCacheDir(); //remove this comment $cacheDir = sys_get_temp_dir(); // remove this line after installed success return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class); }

Hope you will successfully resolve the issue and can continue smoothly with the next steps.

Leave a comment