When you are installing the extension, you go to admin >> extensions >> installer and click upload button and select the extension ocmod.zip file but you got following error like “The directory catalog/controller/product is not allowed to be written to – Opencart error”. The way to solve it is to add the path at admin\controller\marketplace\install.php

Here in the example the path is catalog/controller/product so we needed to add at

// 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/',
   'catalog/controller/product' 
);

Whatever error path you get you need to add here to install successfully.

Thanks

Rupak

2 COMMENTS

  1. Works great! Had this issue installing CKeditor for opencart 3.0.2.0 … had 2 different directories I had to add to get the ocmod file to complete the install.

    Thanks for the info!

LEAVE A REPLY

Please enter your comment!
Please enter your name here