Post by maffe » Sun Apr 13, 2025 3:37 pm

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
Last edited by maffe on Sat Apr 26, 2025 3:58 am, edited 2 times in total.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by ADD Creative » Sun Apr 13, 2025 6:51 pm

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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by maffe » Sun Apr 13, 2025 9:49 pm

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.

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by by mona » Sun Apr 13, 2025 9:57 pm

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

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


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ADD Creative » Mon Apr 14, 2025 6:11 pm

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

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by maffe » Tue Apr 15, 2025 1:40 am

How and where can i change the open_basedir setting?
Image

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by ADD Creative » Tue Apr 15, 2025 4:14 pm

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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by maffe » Fri Apr 25, 2025 10:38 pm

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

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad

Post by khnaz35 » Fri Apr 25, 2025 11:08 pm

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 ;) :) :-*


User avatar
Active Member

Posts

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

Post by ADD Creative » Fri Apr 25, 2025 11:19 pm

maffe wrote:
Fri Apr 25, 2025 10:38 pm
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
Yes, 4.x seems to be very buggy which is why a lot recomend using 3.0.4.0.

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);

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by maffe » Sat Apr 26, 2025 3:57 am

Hello Creative,
I just removed the line you described. That works!
Thank you!

Active Member

Posts

Joined
Sun Jun 12, 2011 5:21 am
Location - Lelystad
Who is online

Users browsing this forum: No registered users and 11 guests