Hello all,
I tried Opencart 4.1.0.3 installation on php 8.2.27 and i cannot get passed by pre-install screen:
Warning: open_basedir needs to allow access to /home/pathhoster/...
What shoud i do to fix this?
And when i try to install on php 8.3 i get Warning:
Warning: ZEND OPcache API is restricted by "restrict_api" configuration directive in /system/storage/vendor/twig/twig/scr/Cache/FilesystemCache.php
I tried Opencart 4.1.0.3 installation on php 8.2.27 and i cannot get passed by pre-install screen:
Warning: open_basedir needs to allow access to /home/pathhoster/...
What shoud i do to fix this?
And when i try to install on php 8.3 i get Warning:
Warning: ZEND OPcache API is restricted by "restrict_api" configuration directive in /system/storage/vendor/twig/twig/scr/Cache/FilesystemCache.php
Last edited by maffe on Sat Apr 26, 2025 3:58 am, edited 2 times in total.
First issue is this one.
https://github.com/opencart/opencart/issues/14734
You will need to manually check or remove your open_basedir PHP setting and then remove the broken open_basedir check from install/controller/install/step_2.php.
The other issue is this one.
https://github.com/opencart/opencart/issues/11596
It looks like it won't be fixed, but there are some suggestions to work around it.
https://github.com/opencart/opencart/issues/14734
You will need to manually check or remove your open_basedir PHP setting and then remove the broken open_basedir check from install/controller/install/step_2.php.
The other issue is this one.
https://github.com/opencart/opencart/issues/11596
It looks like it won't be fixed, but there are some suggestions to work around it.
I still don’t understand it... Could you explain this in a bit more detail?
P.S. I’m using the hosting provider mijn.host and I have DirectAdmin access there.
Do I need to contact them for this, or can I adjust it somewhere myself? I don’t see any setting related to ‘open_basedir’.
Pff, looks like no OpenCart 4.x for me just yet.
P.S. I’m using the hosting provider mijn.host and I have DirectAdmin access there.
Do I need to contact them for this, or can I adjust it somewhere myself? I don’t see any setting related to ‘open_basedir’.
Pff, looks like no OpenCart 4.x for me just yet.
No one here recommends OC4 for production sites - just for developers to test and assist in fixing the bugs
OC3.0.4.0 is stable, updated and supports php8
It is available on the official Opencart download page https://www.opencart.com/index.php?rout ... ad/history
OC3.0.4.0 is stable, updated and supports php8
It is available on the official Opencart download page https://www.opencart.com/index.php?rout ... ad/history
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
As long as your open_basedir is set to one directory above where you are installing OpenCart, you just need to remove the following line.
https://github.com/opencart/opencart/bl ... 2.php#L175
https://github.com/opencart/opencart/bl ... 2.php#L175
That setting should work as it includes a directory above the install directory. If you do need to change it you will have to ask your host.
I’ve tried several things with my provider. I CANNOT get past this point.
What a crappy installation. Even the checkbox under Status says "passed." But it keeps showing this error:
Warning: open_basedir needs to allow access to /home/un119489/domains/<domain>.nl/
Please help
What a crappy installation. Even the checkbox under Status says "passed." But it keeps showing this error:
Warning: open_basedir needs to allow access to /home/un119489/domains/<domain>.nl/
Please help
Have you tried installing version 3.0.4.0?
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
Yes, 4.x seems to be very buggy which is why a lot recomend using 3.0.4.0.maffe wrote: ↑Fri Apr 25, 2025 10:38 pmI’ve tried several things with my provider. I CANNOT get past this point.
What a crappy installation. Even the checkbox under Status says "passed." But it keeps showing this error:
Warning: open_basedir needs to allow access to /home/un119489/domains/<domain>.nl/
Please help
Did you try removing the following line frominstall/controller/install/step_2.php?
Code: Select all
$json['error'] = sprintf($this->language->get('error_open_basedir'), $required);
Who is online
Users browsing this forum: No registered users and 11 guests