'Move the storage directory outside of the web directory

In opencart version 3 there is a notification:

It is very imporant that you move the storage directory outside of the web directory (e.g. public_html, www or htdocs)

Screenshot Screenshot

I tried by clicking on move button in the picture also tried manually but after trying it is giving weird errors.



Solution 1:[1]

It is very simple to remove / hide this dialog box:

open 'admin/controller/common/dashboard.php' file

search below line

$data['security'] = $this->load->controller('common/security');

and replace it with below line

$data['security'] = '';

That's it :)

Solution 2:[2]

Change directory path as decribed abowe--but when You save the config.php use utf8 encoding. I have worked 2 hour on it- did everithing i found on google, but nothing worked. Just this simple thing!

Solution 3:[3]

I also ran into this little problem, and the fault was layer 8 (problems between the keyboard and the chair)

I hadn't read the code that I had to change correctly and I was doing it wrong, I'll explain better in case someone runs into the same problem:

capturing the variable to be deleted

I was just replacing the new directory path, not removing the DIR_SYSTEM variable.

you have to delete DIR_SYSTEM and place the new route. that's all.

For this reason it gave me an error and so I came to this post.

It is my first contribution. I hope this helps you.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kamlesh
Solution 2 Menyuss
Solution 3