Post by thejudge99 » Wed Mar 26, 2025 5:34 pm

2 days trying to get past the open_basedir error - without luck.

Opencart 4.1.0.3
Ubuntu 22.04 Server with plesk 18.0.68.
php 8.3.19

Ive tried hard setting the required folder - also plesks default settings and always an error.
I can see the required is identical to the current and still it shows an error.
If i leave the field empty in plesk then i can get past this page but it will show / which isnt safe.

Anyone know what to do so i dont need to leave this field empty?

Newbie

Posts

Joined
Wed Mar 26, 2025 5:18 pm

Guru Member

Posts

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

Post by thejudge99 » Thu Mar 27, 2025 4:34 pm

so ive installed it leaving the openbase_dir empty but then set the default back after install.
The backend is now wanting to move storage to another folder out side of the root.

with the main install being here
/var/www/vhosts/xxxxx/yyyyy/opencart-4.1.0.3/upload/ - this folder is the document root for our test url

the warning is offering me all the folders above the document root
/var/www/vhosts/xxxxx/yyyyy/opencart-4.1.0.3/
/var/www/vhosts/xxxxx/yyyyy/
/var/www/vhosts/xxxxx/
etc - but picking any results in an error saying it should be outside the document root. Im assuming this should be possible but same BUG as in the install.

What i have done is copy /rename

/var/www/vhosts/xxxxx/yyyyy/opencart-4.1.0.3/upload/system/storage

to

/var/www/vhosts/xxxxx/yyyyy/opencart-4.1.0.3/sytem/storage_xxxxxxxxxxx

and updated both config.php 's DIR_STORAGE with the updated paths.
There doesnt seem to be any errors now and im wondering if this is correct ?

Newbie

Posts

Joined
Wed Mar 26, 2025 5:18 pm

Post by ADD Creative » Thu Mar 27, 2025 8:56 pm

Another long standing bug is that the move will only work if the directory is the one above the document root. The path can also not contain a hyphen. Not sure if that is by design of just another bug. these two things were probably what prevented the move.

Moving manually is fine as long as the new storage in not publicly accessible and you delete the old one.

OpenCart 4.x still has a log of bugs, so you might want to try 3.0.4.0 which is regarded as more stable.

www.add-creative.co.uk


Guru Member

Posts

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

Post by thejudge99 » Fri Mar 28, 2025 4:39 pm

Is version 4 not release ready? as it was the one offered on the download page. I will look into version 3.

Newbie

Posts

Joined
Wed Mar 26, 2025 5:18 pm

Post by ADD Creative » Fri Mar 28, 2025 8:35 pm

The OpenCart developers obviously think it is, but if your search the forums the opinions of other users and developers differ.

www.add-creative.co.uk


Guru Member

Posts

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

Post by grgr » Sat Mar 29, 2025 7:54 am

thejudge99 wrote:
Fri Mar 28, 2025 4:39 pm
Is version 4 not release ready? as it was the one offered on the download page. I will look into version 3.
Leaving the don't use 4.x yet arguement to one side, the big thing at the moment, is that for 3040, there are 197 pages of extensions available and for 4102 there are 23 pages of extensions available. So depending on what you need, using the latest 3.x version makes much more sense just from a number and variety of extensions that are available point of view.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK
Who is online

Users browsing this forum: No registered users and 4 guests