Jump to content

1: HTTP 500 - error - {"success":true,"message":""} 1st installation.


Recommended Posts

I am sorry, but i didnt found any solution.

1st installation Prestashop 8.1.7 (newset) to WampServer 3.3.5 (Windows 11 64bit version), i change PHP version and some else steps, but i get this mistake: 1: HTTP 500 - error - {"success":true,"message":""}

Same problem i get by installation on our web server.

Somebody solve it?

chyba_prestashop.png

Link to comment
Share on other sites

I had the same issue and wasn't able to solve it. Finally I tried  lower versions of PrestaShop until it worked.
Now I have  xampp 8.2.12 and PrestaShop 8.1.2 and it is working fine.
I think it may be some kind of incompatibility between the PrestaShop and Apache server

Edited by FdezdePravia (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

When you look in your error log you will see the following error:

PHP Fatal error:  Uncaught ErrorException: Warning: 
require(C:\\xampp\\htdocs\\var\\cache\\dev\\ContainerJiLuDQW\\getSwiftmailer_EmailSender_ListenerService.php): 
Failed to open stream: No such file or directory in 
C:\\xampp\\htdocs\\var\\cache\\dev\\ContainerJiLuDQW\\appAppKernelDevDebugContainer.php:2243

The solution that Endriu mentions and that for me worked is editing the file /app/AppKernel.php 

Change the function getContainerClearCacheLockPath() from

    protected function getContainerClearCacheLockPath(): string
    {
        $class = $this->getContainerClass();
        $cacheDir = $this->getCacheDir();

        return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);
    }

to

    protected function getContainerClearCacheLockPath(): string
    {
        $class = $this->getContainerClass();
		$cacheDir = sys_get_temp_dir();

        return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);
    }

 

  • Like 3
Link to comment
Share on other sites

  • 4 weeks later...
On 10/14/2024 at 7:04 PM, musicmaster said:

When you look in your error log you will see the following error:

PHP Fatal error:  Uncaught ErrorException: Warning: 
require(C:\\xampp\\htdocs\\var\\cache\\dev\\ContainerJiLuDQW\\getSwiftmailer_EmailSender_ListenerService.php): 
Failed to open stream: No such file or directory in 
C:\\xampp\\htdocs\\var\\cache\\dev\\ContainerJiLuDQW\\appAppKernelDevDebugContainer.php:2243

The solution that Endriu mentions and that for me worked is editing the file /app/AppKernel.php 

Change the function getContainerClearCacheLockPath() from

    protected function getContainerClearCacheLockPath(): string
    {
        $class = $this->getContainerClass();
        $cacheDir = $this->getCacheDir();

        return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);
    }

to

    protected function getContainerClearCacheLockPath(): string
    {
        $class = $this->getContainerClass();
		$cacheDir = sys_get_temp_dir();

        return sprintf('%s/%s.php.cache_clear.lock', $cacheDir, $class);
    }

 

This work perfectly, thank you

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...