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 changed this code:
Code: Select all
// Autoloader if (file_exists(DIR_SYSTEM . '../../vendor/autoload.php')) { require_once(DIR_SYSTEM . '../../vendor/autoload.php'); }
Code: Select all
// Autoloader if (file_exists(DIR_SYSTEM . 'vendor/autoload.php')) { require_once(DIR_SYSTEM . 'vendor/autoload.php'); }