Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/.composer:/home/web/local.net/public_html:/home/web/local.net/private:/home/web/local.net/public_shtml:/home/local.net/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt) in /home/web/local.net/public_html/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 91Twig\Error\LoaderError: The "/" directory does not exist ("/"). in /home/web/local.net/public_html/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 92
PHP Version 8.0.19
Linux 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64
Build Date May 17 2022 18:48:30
Server API FPM/FastCGI
MariaDB 10.5.16
open_basedir /home/.composer:/home/web/local.net/public_html:/home/web/local.net/private:/home/web/local.net/public_shtml:/home/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt
Opencart Open_basedir restriction in effect
https://www.templatemonster.com/help/en ... ths-y.html
https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's
You'd need to contact your host to resolve this issue.Piercer wrote: ↑Thu May 26, 2022 6:54 pmWhen installing OpenCart 4.0 I got an error - please help.
PHP Version 8.0.19Code: Select all
Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/.composer:/home/web/local.net/public_html:/home/web/local.net/private:/home/web/local.net/public_shtml:/home/local.net/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt) in /home/web/local.net/public_html/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 91Twig\Error\LoaderError: The "/" directory does not exist ("/"). in /home/web/local.net/public_html/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 92
Linux 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64
Build Date May 17 2022 18:48:30
Server API FPM/FastCGI
MariaDB 10.5.16
Code: Select all
open_basedir /home/.composer:/home/web/local.net/public_html:/home/web/local.net/private:/home/web/local.net/public_shtml:/home/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/:/tmp:/var/tmp:/opt/alt/php74/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php74/lib/php/) in /home/:/public_html/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 91Twig\Error\LoaderError: The "/" directory does not exist ("/"). in /home/vipgiy/domains/vipgiy.com/public_html/system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 92
try this
open
system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php
replace
Code: Select all
$checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
Code: Select all
$checkPath = $this->rootPath.$path;
private function isAbsolutePath(string $file): bool
Suppliers Module - XML, CSV, XLS Product Feed Import and Update
Rich Snippets | Facebook Open Graph Meta Tags | WebP Images
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
it has been two days i have been working on this problem, i contaced to my posting company they say "Shared hostings dont have opendir function," so i need to purches new hosting without sharing,
i dont know weather it is true or not, but your solution saved my day,
I really appriciated.
There is no 2.3.0.7 version of OpenCart.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
This solution worked fine for me too, upgrading from 3.0.2.0 to 4.0.1.1, same error message as OP. Your solution brought me a step further in the upgrading process (but still no working OC yet).agatha65 wrote: ↑Sun May 29, 2022 5:00 amtry this
open
system/storage/vendor/twig/twig/src/Loader/FilesystemLoader.php
replacewithCode: Select all
$checkPath = $this->isAbsolutePath($path) ? $path : $this->rootPath.$path;
for some reason this fuction in the same file is not working correctlyCode: Select all
$checkPath = $this->rootPath.$path;
private function isAbsolutePath(string $file): bool
Official fix is https://github.com/opencart/opencart/pull/13450.
That's not an exact version, but at this point you should stick with 3.0.3.9.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: No registered users and 9 guests