Post by jstuardo » Fri Jun 22, 2018 3:58 am

Hello,

when installing 3x.ocmod extension this error occurs:

"The directory catalog/model/account is not allowed to be written to!"

That folder only has php files and of course should be read only, so I don't know why this extension installer tries to write something there.

To test, I have set 777 permission to that folder and the same error occurs.

Thanks
Jaime

New member

Posts

Joined
Sat Apr 03, 2010 8:52 am

Post by sw!tch » Fri Jun 22, 2018 4:46 am

Don't ever set 777 permissions! If you need to set full read/write find a new host.

In regard to your error -

Contact the extension developer you can see here the allowed directories in OC 3.0.2
https://github.com/opencart/opencart/bl ... #L124-L141

Code: Select all

// A list of allowed directories to be written to
$allowed = array(
'admin/controller/extension/',
'admin/language/',
'admin/model/extension/',
'admin/view/image/',
'admin/view/javascript/',
'admin/view/stylesheet/',
'admin/view/template/extension/',
'catalog/controller/extension/',
'catalog/language/',
'catalog/model/extension/',
'catalog/view/javascript/',
'catalog/view/theme/',
'system/config/',
'system/library/',
'image/catalog/'
);

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by jstuardo » Fri Jun 22, 2018 6:17 am

I have set 777 permissions only for test, of course, but that was not the problem since the same error occured.

Finally I have manually uploaded all files into opencart directories.... some thing took my attention. Most of files already existed in the folders.

I will contact developer.

New member

Posts

Joined
Sat Apr 03, 2010 8:52 am

Post by HAO » Tue Mar 12, 2019 9:47 am

I also have the same problem.

My cPanel virtual host do not need to set 777 read and write permissions, But when I upload and install the language or extensions, I get an error message.

How can I solve this problem?

My OpenCart 3.0.3.1

HAO
Active Member

Posts

Joined
Fri Jun 03, 2011 2:52 pm
Who is online

Users browsing this forum: No registered users and 366 guests