Page 1 of 1
[SOLVED] getting error while installing opencart via composer
Posted: Wed Aug 12, 2020 5:50 pm
by neuron
Hi everybody,
I am new to opencart and trying to install opencart for the first time, but I am getting following error:
Code: Select all
Warning: require(/home/vagrant/myproject/upload/system/storage/vendor/composer/../react/promise/src/functions_include.php): failed to open stream: No such file or directory in /home/vagrant/myproject/upload/system/storage/vendor/composer/autoload_real.php on line 69
commands I run:
Code: Select all
composer create-project opencart/opencart .
and renamed
Code: Select all
upload/config-dist.php -> upload/config.php
upload/admin/config-dist -> upload-/admin/config.php
Opencart v3.0.3.6
PHP v7.4.4
what should I do to solve this error?
Thanks in advance
Re: getting error while installing opencart via composer
Posted: Sun Aug 16, 2020 7:00 pm
by khnaz35
neuron wrote: ↑Wed Aug 12, 2020 5:50 pm
Hi everybody,
I am new to opencart and trying to install opencart for the first time, but I am getting following error:
Code: Select all
Warning: require(/home/vagrant/myproject/upload/system/storage/vendor/composer/../react/promise/src/functions_include.php): failed to open stream: No such file or directory in /home/vagrant/myproject/upload/system/storage/vendor/composer/autoload_real.php on line 69
commands I run:
Code: Select all
composer create-project opencart/opencart .
and renamed
Code: Select all
upload/config-dist.php -> upload/config.php
upload/admin/config-dist -> upload-/admin/config.php
Opencart v3.0.3.6
PHP v7.4.4
what should I do to solve this error?
Thanks in advance
Try this method
https://medium.com/@stefan.huber/instal ... fe0ba121b1
Re: getting error while installing opencart via composer
Posted: Mon Aug 17, 2020 4:36 am
by sw!tch
neuron wrote: ↑Wed Aug 12, 2020 5:50 pm
what should I do to solve this error?
Thanks in advance
You can do the following below to resolve it.
#1
Delete the vendor folder.
#2
Then cd into your project root from command line (where you see Opencarts composer.json). Run composer update to pull back in the dependencies.
or just download the precompiled version of opencart from the website.
Re: getting error while installing opencart via composer
Posted: Mon Aug 31, 2020 5:16 pm
by neuron
Sorry, for late reply.
I found this link before and tried to follow steps descripted. But I am facing the same error
Re: getting error while installing opencart via composer
Posted: Mon Aug 31, 2020 5:26 pm
by khnaz35
How about the method switch share?
Re: getting error while installing opencart via composer
Posted: Tue Sep 01, 2020 3:39 am
by sw!tch
If this is a FRESH install and installing into the current directory via composer, try the below to resolve the error.
Code: Select all
composer create-project opencart/opencart .
Delete the vendor folder
Code: Select all
rm -rf upload/system/storage/vendor
Run Composer update to pull back in the dependencies.
When that's done, then start the opencart install..
As mentioned if you are not familiar with composer or shell commands, just download the precompiled version from the opencart website.
Re: getting error while installing opencart via composer
Posted: Tue Sep 01, 2020 8:30 pm
by neuron
Thank you @sw!tch your solution worked!
Re: getting error while installing opencart via composer
Posted: Tue Sep 01, 2020 8:32 pm
by khnaz35
neuron wrote: ↑Tue Sep 01, 2020 8:30 pm
Thank you @sw!tch your solution worked!
That is great news indeed!
you can add word [SOLVED] in the beginning of your post title.
Thanks
Re: [SOLVED] getting error while installing opencart via composer
Posted: Mon Jan 25, 2021 12:48 am
by straightlight
This should be in the FAQ...