Post by neuron » 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

Newbie

Posts

Joined
Wed Aug 12, 2020 5:40 pm

Post by khnaz35 » Sun Aug 16, 2020 7:00 pm

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

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by sw!tch » Mon Aug 17, 2020 4:36 am

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.

Code: Select all

upload/system/storage/vendor
#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.

Code: Select all

composer update 
or just download the precompiled version of opencart from the website.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by neuron » Mon Aug 31, 2020 5:16 pm

khnaz35 wrote:
Sun Aug 16, 2020 7:00 pm
Try this method https://medium.com/@stefan.huber/instal ... fe0ba121b1
Sorry, for late reply.
I found this link before and tried to follow steps descripted. But I am facing the same error

Newbie

Posts

Joined
Wed Aug 12, 2020 5:40 pm

Post by khnaz35 » Mon Aug 31, 2020 5:26 pm

How about the method switch share?

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by sw!tch » Tue Sep 01, 2020 3:39 am

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.

Code: Select all

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

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by neuron » Tue Sep 01, 2020 8:30 pm

Thank you @sw!tch your solution worked!

Newbie

Posts

Joined
Wed Aug 12, 2020 5:40 pm

Post by khnaz35 » Tue Sep 01, 2020 8:32 pm

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

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member
Online

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by straightlight » Mon Jan 25, 2021 12:48 am

This should be in the FAQ...

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 13 guests