Jump to content

My istallation interrupts when theme is installing


Recommended Posts

Hello i am trying to install Prestashop 8.1.3, in Xampp, local server, but when the installation, get to the point of installing the theme, the installation stops, beacuse of the error that i am posting you on the screenshot.

Can anyone help me please to fix this error and complete thw installation on the Prestashop 8.1.3?

Thans very much in advance!

 

Screenshot_1.png

Link to comment
Share on other sites

Hello,

I have the same issue, on WAMP and XAMPP. Environement Windows.
Allowing full access on folder www and htdocs didn't help !

From log I have:
127.0.0.1 - - [12/Feb/2024:16:25:18 +0100] "GET /install/index.php?installTheme=true&_=1707751280168 HTTP/1.1" 500 29
 

php_error.log

Link to comment
Share on other sites

I think it's still access issues while creating cache

Quote

[12-Feb-2024 16:25:59 Europe/Paris] PHP Notice:  stream_copy_to_stream(): Read of 8192 bytes failed with errno=13 Permission denied in C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php on line 66
[12-Feb-2024 16:25:59 Europe/Paris] PHP Stack trace:
[12-Feb-2024 16:25:59 Europe/Paris] PHP   1. PrestaShop\PrestaShop\Adapter\Cache\Clearer\SymfonyCacheClearer->PrestaShop\PrestaShop\Adapter\Cache\Clearer\{closure:C:\wamp64\www\src\Adapter\Cache\Clearer\SymfonyCacheClearer.php:63-108}() C:\wamp64\www\src\Adapter\Cache\Clearer\SymfonyCacheClearer.php:0
[12-Feb-2024 16:25:59 Europe/Paris] PHP   2. Symfony\Bundle\FrameworkBundle\Console\Application->doRun($input = class Symfony\Component\Console\Input\ArrayInput { protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $stream = NULL; protected $options = ['no-warmup' => TRUE, 'env' => 'prod']; protected $arguments = ['command' => 'cache:clear']; protected $interactive = TRUE; private $parameters = ['command' => 'cache:clear', '--no-warmup' => TRUE, '--env' => 'prod'] }, $output = class Symfony\Component\Console\Output\NullOutput {  }) C:\wamp64\www\src\Adapter\Cache\Clearer\SymfonyCacheClearer.php:86
[12-Feb-2024 16:25:59 Europe/Paris] PHP   3. Symfony\Component\Console\Application->doRun($input = class Symfony\Component\Console\Input\ArrayInput { protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $stream = NULL; protected $options = ['no-warmup' => TRUE, 'env' => 'prod']; protected $arguments = ['command' => 'cache:clear']; protected $interactive = TRUE; private $parameters = ['command' => 'cache:clear', '--no-warmup' => TRUE, '--env' => 'prod'] }, $output = class Symfony\Component\Console\Output\NullOutput {  }) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:83
[12-Feb-2024 16:25:59 Europe/Paris] PHP   4. Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand($command = class Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand { private ${Symfony\Component\Console\Command\Command}application = class Symfony\Bundle\FrameworkBundle\Console\Application { private ${Symfony\Component\Console\Application}commands = [...]; private ${Symfony\Component\Console\Application}wantHelps = FALSE; private ${Symfony\Component\Console\Application}runningCommand = ...; private ${Symfony\Component\Console\Application}name = 'Symfony'; private ${Symfony\Component\Console\Application}version = '4.4.50'; private ${Symfony\Component\Console\Application}commandLoader = class Symfony\Component\Console\CommandLoader\ContainerCommandLoader { ... }; private ${Symfony\Component\Console\Application}catchExceptions = TRUE; private ${Symfony\Component\Console\Application}autoExit = FALSE; private ${Symfony\Component\Console\Application}definition = class Symfony\Component\Console\Input\InputDefinition { ... }; private ${Symfony\Component\Console\Application}helperSet = class Symfony\Component\Console\Helper\HelperSet { ... }; private ${Symfony\Component\Console\Application}dispatcher = class Symfony\Component\EventDispatcher\EventDispatcher { ... }; private ${Symfony\Component\Console\Application}terminal = class Symfony\Component\Console\Terminal { ... }; private ${Symfony\Component\Console\Application}defaultCommand = 'list'; private ${Symfony\Component\Console\Application}singleCommand = FALSE; private ${Symfony\Component\Console\Application}initialized = TRUE; private $kernel = class AppKernel { ... }; private $commandsRegistered = TRUE; private $registrationErrors = [...] }; private ${Symfony\Component\Console\Command\Command}name = 'cache:clear'; private ${Symfony\Component\Console\Command\Command}processTitle = NULL; private ${Symfony\Component\Console\Command\Command}aliases = []; private ${Symfony\Component\Console\Command\Command}definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; private ${Symfony\Component\Console\Command\Command}hidden = FALSE; private ${Symfony\Component\Console\Command\Command}help = 'The <info>%command.name%</info> command clears and warms up the application cache for a given environment\nand debug mode:\n\n  <info>php %command.full_name% --env=dev</info>\n  <info>php %command.full_name% --env=prod --no-debug</info>'; private ${Symfony\Component\Console\Command\Command}description = 'Clear the cache'; private ${Symfony\Component\Console\Command\Command}ignoreValidationErrors = FALSE; private ${Symfony\Component\Console\Command\Command}applicationDefinitionMerged = TRUE; private ${Symfony\Component\Console\Command\Command}applicationDefinitionMergedWithArgs = TRUE; private ${Symfony\Component\Console\Command\Command}code = NULL; private ${Symfony\Component\Console\Command\Command}synopsis = ['short' => 'cache:clear [options] [--] <command>', 'long' => 'cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--] <command>']; private ${Symfony\Component\Console\Command\Command}usages = []; private ${Symfony\Component\Console\Command\Command}helperSet = class Symfony\Component\Console\Helper\HelperSet { private $helpers = [...]; private $command = NULL }; private $cacheClearer = class Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer { private $clearers = class Symfony\Component\DependencyInjection\Argument\RewindableGenerator { ... } }; private $filesystem = class Symfony\Component\Filesystem\Filesystem {  } }, $input = class Symfony\Component\Console\Input\ArrayInput { protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $stream = NULL; protected $options = ['no-warmup' => TRUE, 'env' => 'prod']; protected $arguments = ['command' => 'cache:clear']; protected $interactive = TRUE; private $parameters = ['command' => 'cache:clear', '--no-warmup' => TRUE, '--env' => 'prod'] }, $output = class Symfony\Component\Console\Output\NullOutput {  }) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:275
[12-Feb-2024 16:25:59 Europe/Paris] PHP   5. Symfony\Component\Console\Application->doRunCommand($command = class Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand { private ${Symfony\Component\Console\Command\Command}application = class Symfony\Bundle\FrameworkBundle\Console\Application { private ${Symfony\Component\Console\Application}commands = [...]; private ${Symfony\Component\Console\Application}wantHelps = FALSE; private ${Symfony\Component\Console\Application}runningCommand = ...; private ${Symfony\Component\Console\Application}name = 'Symfony'; private ${Symfony\Component\Console\Application}version = '4.4.50'; private ${Symfony\Component\Console\Application}commandLoader = class Symfony\Component\Console\CommandLoader\ContainerCommandLoader { ... }; private ${Symfony\Component\Console\Application}catchExceptions = TRUE; private ${Symfony\Component\Console\Application}autoExit = FALSE; private ${Symfony\Component\Console\Application}definition = class Symfony\Component\Console\Input\InputDefinition { ... }; private ${Symfony\Component\Console\Application}helperSet = class Symfony\Component\Console\Helper\HelperSet { ... }; private ${Symfony\Component\Console\Application}dispatcher = class Symfony\Component\EventDispatcher\EventDispatcher { ... }; private ${Symfony\Component\Console\Application}terminal = class Symfony\Component\Console\Terminal { ... }; private ${Symfony\Component\Console\Application}defaultCommand = 'list'; private ${Symfony\Component\Console\Application}singleCommand = FALSE; private ${Symfony\Component\Console\Application}initialized = TRUE; private $kernel = class AppKernel { ... }; private $commandsRegistered = TRUE; private $registrationErrors = [...] }; private ${Symfony\Component\Console\Command\Command}name = 'cache:clear'; private ${Symfony\Component\Console\Command\Command}processTitle = NULL; private ${Symfony\Component\Console\Command\Command}aliases = []; private ${Symfony\Component\Console\Command\Command}definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; private ${Symfony\Component\Console\Command\Command}hidden = FALSE; private ${Symfony\Component\Console\Command\Command}help = 'The <info>%command.name%</info> command clears and warms up the application cache for a given environment\nand debug mode:\n\n  <info>php %command.full_name% --env=dev</info>\n  <info>php %command.full_name% --env=prod --no-debug</info>'; private ${Symfony\Component\Console\Command\Command}description = 'Clear the cache'; private ${Symfony\Component\Console\Command\Command}ignoreValidationErrors = FALSE; private ${Symfony\Component\Console\Command\Command}applicationDefinitionMerged = TRUE; private ${Symfony\Component\Console\Command\Command}applicationDefinitionMergedWithArgs = TRUE; private ${Symfony\Component\Console\Command\Command}code = NULL; private ${Symfony\Component\Console\Command\Command}synopsis = ['short' => 'cache:clear [options] [--] <command>', 'long' => 'cache:clear [--no-warmup] [--no-optional-warmers] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--] <command>']; private ${Symfony\Component\Console\Command\Command}usages = []; private ${Symfony\Component\Console\Command\Command}helperSet = class Symfony\Component\Console\Helper\HelperSet { private $helpers = [...]; private $command = NULL }; private $cacheClearer = class Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer { private $clearers = class Symfony\Component\DependencyInjection\Argument\RewindableGenerator { ... } }; private $filesystem = class Symfony\Component\Filesystem\Filesystem {  } }, $input = class Symfony\Component\Console\Input\ArrayInput { protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $stream = NULL; protected $options = ['no-warmup' => TRUE, 'env' => 'prod']; protected $arguments = ['command' => 'cache:clear']; protected $interactive = TRUE; private $parameters = ['command' => 'cache:clear', '--no-warmup' => TRUE, '--env' => 'prod'] }, $output = class Symfony\Component\Console\Output\NullOutput {  }) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Application.php:97
[12-Feb-2024 16:25:59 Europe/Paris] PHP   6. Symfony\Component\Console\Command\Command->run($input = class Symfony\Component\Console\Input\ArrayInput { protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $stream = NULL; protected $options = ['no-warmup' => TRUE, 'env' => 'prod']; protected $arguments = ['command' => 'cache:clear']; protected $interactive = TRUE; private $parameters = ['command' => 'cache:clear', '--no-warmup' => TRUE, '--env' => 'prod'] }, $output = class Symfony\Component\Console\Output\NullOutput {  }) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Component\Console\Application.php:1039
[12-Feb-2024 16:25:59 Europe/Paris] PHP   7. Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand->execute($input = class Symfony\Component\Console\Input\ArrayInput { protected $definition = class Symfony\Component\Console\Input\InputDefinition { private $arguments = [...]; private $requiredCount = 1; private $hasAnArrayArgument = FALSE; private $hasOptional = FALSE; private $options = [...]; private $shortcuts = [...] }; protected $stream = NULL; protected $options = ['no-warmup' => TRUE, 'env' => 'prod']; protected $arguments = ['command' => 'cache:clear']; protected $interactive = TRUE; private $parameters = ['command' => 'cache:clear', '--no-warmup' => TRUE, '--env' => 'prod'] }, $output = class Symfony\Component\Console\Output\NullOutput {  }) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Component\Console\Command\Command.php:255
[12-Feb-2024 16:25:59 Europe/Paris] PHP   8. Symfony\Component\Filesystem\Filesystem->rename($origin = 'C:\\wamp64\\www\\var\\cache\\prod', $target = 'C:\\wamp64\\www\\var\\cache\\pro~', $overwrite = *uninitialized*) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand.php:154
[12-Feb-2024 16:25:59 Europe/Paris] PHP   9. Symfony\Component\Filesystem\Filesystem->mirror($originDir = 'C:\\wamp64\\www\\var\\cache\\prod', $targetDir = 'C:\\wamp64\\www\\var\\cache\\pro~', $iterator = NULL, $options = ['override' => FALSE, 'delete' => FALSE]) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:285
[12-Feb-2024 16:25:59 Europe/Paris] PHP  10. Symfony\Component\Filesystem\Filesystem->copy($originFile = class SplFileInfo { private $pathName = 'C:\\wamp64\\www\\var\\cache\\prod\\appAppKernelProdContainer.php.cache_clear.lock'; private $fileName = 'appAppKernelProdContainer.php.cache_clear.lock' }, $targetFile = 'C:\\wamp64\\www\\var\\cache\\pro~\\appAppKernelProdContainer.php.cache_clear.lock', $overwriteNewerFiles = FALSE) C:\wamp64\www\vendor\symfony\symfony\src\Symfony\Component\Filesystem\Filesystem.php:584
[12-Feb-2024 16:25:59 Europe/Paris] PHP  11.

 

Link to comment
Share on other sites

Hi, this problem only occures for the new version of prestashop (1).8.1.3. 

I have downgraded to last 1.7.8.11 prestashop and to the Php 7.4.

@Note: Php 7.4 is not working neither with prestashop (1).8.1.3. 

Hence, there may be a correlation with access right and the prestashop itself, yet i don't know.

Please consider this issue.

 

Link to comment
Share on other sites

On 2/15/2024 at 6:38 PM, AymericF said:

Environnement: Wamp 3.3.2 or Xamp 8.2.12 both try, same result. Local server. Windows 11.

Php 8+ and Prestashop 1.8.3 --> NOT WORKING

Php 7.4.33 and Prestashop 1.7.8.11 --> OK WORKING

 

@AymericF Tried installing prestashop ver 8.1 for like 2 days but there was some kind of error always. After seeing your post I too have tried installing prestashop 1.7.8.11 with php ver 7.4.33 and it WORKED!! Thank you..

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

  • 4 weeks later...
On 2/21/2024 at 1:17 PM, Light Saber said:

@AymericF Tried installing prestashop ver 8.1 for like 2 days but there was some kind of error always. After seeing your post I too have tried installing prestashop 1.7.8.11 with php ver 7.4.33 and it WORKED!! Thank you..

 

On 2/15/2024 at 3:08 PM, AymericF said:

Environnement: Wamp 3.3.2 or Xamp 8.2.12 both try, same result. Local server. Windows 11.

Php 8+ and Prestashop 1.8.3 --> NOT WORKING

Php 7.4.33 and Prestashop 1.7.8.11 --> OK WORKING

 

I find a perfect combination for Windows:

PHP 8.1.25 -> Prestashop 1.8.1.0 (8.1.0) -> OKKKKK WORK

Link to comment
Share on other sites

  • 2 months later...

I had similar issue and almost gave up trying to install v8.1 and always failed on installing the modules with a 500 error. I finally got it working by changing the PHP version to 7.4 with the htaccess file. 

Link to comment
Share on other sites

  • 2 months later...

This issue is related to your WAMP installation. You can refer to this post, which discusses the problem: 

https://github.com/PrestaShop/PrestaShop/issues/35044

The common solution is to edit the function in the app/AppKernel.php file during the installation process and restore it after.

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

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

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

To resolve the theme installation error in PrestaShop 8.1.3 on XAMPP, increase the PHP memory limit in the php.ini file, ensure required PHP extensions like zip, gd, and openssl are enabled, and check that the themes directory has the correct write permissions. After making these changes, restart XAMPP and try the installation again.

Link to comment
Share on other sites

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...