Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 3 of Craft documentation Quick Start throwing error on install #106

Open
sydneyhaggard opened this issue Jan 23, 2025 · 0 comments
Open
Labels

Comments

@sydneyhaggard
Copy link

Description

I began spinning up a new Craft 5 install and received "failed to open stream" error (see full error under Additional Info) when attempting to run the ddev composer create command in the Craft 5 documentation.

Image

Issue was resolved by adding --no-scripts to the command:

ddev composer create -y --no-scripts "craftcms/craft"

Steps to reproduce

See steps 1-3 under Craft 5 install Quick Start guide.

Additional info

Executing Composer command: [composer create-project craftcms/craft --no-install /tmp/sMTRzY]
 
Creating a "craftcms/craft" project at "/tmp/sMTRzY"
Installing craftcms/craft (5.3.2)
  - Installing craftcms/craft (5.3.2): Extracting archive
Created project in /tmp/sMTRzY
> @php -r "file_exists('.env') || copy('.env.example.dev', '.env');"
> @php -r "unlink('composer.json');"
> @php -r "rename('composer.json.default', 'composer.json');"
> @php craft install
PHP Warning:  require_once(/tmp/sMTRzY/vendor/autoload.php): Failed to open stream: No such file or directory in /tmp/sMTRzY/bootstrap.php on line 11

Warning: require_once(/tmp/sMTRzY/vendor/autoload.php): Failed to open stream: No such file or directory in /tmp/sMTRzY/bootstrap.php on line 11
PHP Fatal error:  Uncaught Error: Failed opening required '/tmp/sMTRzY/vendor/autoload.php' (include_path='.:/usr/share/php') in /tmp/sMTRzY/bootstrap.php:11
Stack trace:
#0 /tmp/sMTRzY/craft(8): require()
#1 {main}
  thrown in /tmp/sMTRzY/bootstrap.php on line 11

Fatal error: Uncaught Error: Failed opening required '/tmp/sMTRzY/vendor/autoload.php' (include_path='.:/usr/share/php') in /tmp/sMTRzY/bootstrap.php:11
Stack trace:
#0 /tmp/sMTRzY/craft(8): require()
#1 {main}
  thrown in /tmp/sMTRzY/bootstrap.php on line 11
Script @php craft install handling the post-create-project-cmd event returned with error code 255
Failed to create project:exit status 255, stderr= 
  • Craft version: Craft 5
  • PHP version: 8.2
  • Database driver & version: N/A
  • Plugins & versions: N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant