Post by iplocker » Sat Aug 23, 2025 4:33 pm

Hello.
I have this error ( open_basedir restriction in effect ) when I am logging in my opencart 3.0.4.1 dashboard .
I have read a lot posts about it and I m wondering why there is not an official solution coming with the 3.0.4.1 version ?
Based on this post : viewtopic.php?p=870129&hilit=open+basedir#p870129
The official fix as it says is not working : https://github.com/opencart/opencart/pull/13450
Thanks

Active Member

Posts

Joined
Sun May 26, 2013 6:39 pm


Post by khnaz35 » Sat Aug 23, 2025 10:13 pm

So have you changed the line in
upload/system/library/template/twig.php

Code: Select all

$this->loader = new \Twig\Loader\FilesystemLoader('/', $this->root);
to this?

Code: Select all

$this->loader = new \Twig\Loader\FilesystemLoader('./', $this->root);

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

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

Post by DesignCart » Sun Aug 24, 2025 2:55 pm

I think the best solution is to contact your hosting provider. Alternatively, you can move the storage directory into your domain's root directory

Tworzenie sklepów internetowych | Portfolio | Cennik | O mnie


User avatar
Active Member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin
Who is online

Users browsing this forum: No registered users and 28 guests