Post by zaqueon » Tue Nov 22, 2016 5:11 pm

I write this in case someone has the same problem as me.
When I installed opencart I had an error with open_basedir:

Code: Select all

Warning: is_file(): open_basedir restriction in effect. File(/home/admin/web/mydomain.com/public_html/system/../../vendor/autoload.php) is not within the allowed path(s): (/home/admin/web/mydomain.com/public_html:/home/admin/tmp) in /home/admin/web/mydomain.com/public_html/system/startup.php on line 89
I could solve it by editing system/startup.php
I changed this code:

Code: Select all

// Autoloader if (file_exists(DIR_SYSTEM . '../../vendor/autoload.php')) { require_once(DIR_SYSTEM . '../../vendor/autoload.php'); }
For this other code:

Code: Select all

// Autoloader if (file_exists(DIR_SYSTEM . 'vendor/autoload.php')) { require_once(DIR_SYSTEM . 'vendor/autoload.php'); }


Source:
http://wiki.iphoster.ru/wiki/OpenCart_- ... tartup.php

Mi nuevo protecto: Catinfog
Catinfog es un tpv online basado en opencart. El mejor tpv gratis para gestionar tiendas físicas.


User avatar
New member

Posts

Joined
Thu Oct 11, 2012 1:29 am


Post by Fengsheng » Mon May 27, 2019 4:46 am

Just make sure /storage moving on root folder then fix this issue, I have tried several times tonight, finally found the fix method.

Newbie

Posts

Joined
Fri Apr 19, 2019 12:43 am

Post by straightlight » Mon May 27, 2019 5:00 am

Fengsheng wrote:
Mon May 27, 2019 4:46 am
Just make sure /storage moving on root folder then fix this issue, I have tried several times tonight, finally found the fix method.
However, it only takes once by reading the FAQ: viewtopic.php?f=176&t=200804#p717782 . OP posted in Bug Reports, not a bug.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


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 1 guest