Post by PaulyWalnuts » Fri May 30, 2025 10:11 am

Hello, Y'all!

I'm told I need to move the storage location outside of the root of the web site. I tell it to put it on c:\ but it tells me to move the storage location, over and over. No matter where I put it!

Newbie

Posts

Joined
Tue May 27, 2025 10:07 am

Post by CartCoding » Fri May 30, 2025 10:56 am

Code: Select all

// DIR
define('DIR_OPENCART', '{your_path}');
***********
define('DIR_SYSTEM', DIR_OPENCART . 'system/');
define('DIR_STORAGE', DIR_SYSTEM . 'storage/');
Please open your website's config.php and admin/config.php, edit 'DIR_STORAGE' outside of {your_path}. {your_path} is your website's real path, then move system/storage to 'DIR_STORAGE' path.

Tracking Assiatant - Integrate Realtime Tracking Information on Website
OpenCart Extensions, Plugins Development, Themes Design and Website Optimization
FREE Guidance and Advice at https://www.cartcoding.com


User avatar
Newbie

Posts

Joined
Thu Aug 03, 2023 3:48 pm

Post by ADD Creative » Fri May 30, 2025 5:22 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 probably the quickest workaround.

OpenCart 4.x still has a log of bugs, so you might want to try 3.0.4.1 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 paulfeakins » Fri May 30, 2025 7:37 pm

PaulyWalnuts wrote:
Fri May 30, 2025 10:11 am
I tell it to put it on c:\
Really?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: SharriVZ90419 and 9 guests