Skip to content

Can't install project on Windows #4555

@jurchiks

Description

@jurchiks

When running php app/console sylius:install in the console, after the progress bar goes to 37%, something goes wrong and I get blasted with a shitton of stack traces all about Twig.

$ php app/console sylius:install
Installing Sylius...

Step 1 of 4. Checking system requirements.
+------------------------------------+------------------------------------+
| Issue                              | Recommendation                     |
+------------------------------------+------------------------------------+
| sylius.settings.short_open_tag     |                                    |
| sylius.settings.session.auto_start |                                    |
| sylius.extensions.accelerator      | sylius.extensions.accelerator.help |
+------------------------------------+------------------------------------+
Success! Your system can run Sylius properly.

Step 2 of 4. Setting up the database.
Creating Sylius database for environment dev.
It appears that your database already exists. Would you like to reset it? (y/N) y
 3/8 [|||||||||||                 ]  37%PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in C:\Users\Juris\Desktop\sylius\vendor\twig\twig\lib\Twig\Node.php on line 229

After checking the install script, it seems the error occurs on the command cache:clear, which is executed in InstallerBundle\Command\InstallDatabaseCommand.php (added on line 83).

This matches the progress percentage, since doctrine:database:drop, doctrine:database:create and doctrine:schema:create have no errors, but when running cache:clear directly, the command does something for at least 20 seconds, then throws an exception that shouldn't occur in a console command:

$ php app/console cache:clear
Clearing the cache for the dev environment with debug true
PHP Warning:  Uncaught UnexpectedValueException: There are not any requests on request stack in C:\Users\Juris\Desktop\sylius\src\Sylius\Component\Channel\Context\RequestBased\ChannelContext.php:78

I know you don't care about Windows, but this doesn't seem like a Windows-only error...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help WantedIssues needing help and clarification.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy