Error when enabling invoices module-dolibarr 4.0.0

i’m getting the error below when I try to enable the invoices module (which was enabled before the upgrade to 4.0.0):

Failed to copy file ‘/var/www/vhosts/domain.com/httpdocs/dolibarr/install/doctemplates/invoices/template_invoice.odt’ into ‘/var/www/vhosts/domain.com/dolibarr_documents/doctemplates/invoices/template_invoice.odt’.

where “domain.com” = my domain

Also happens in 4.0.1

I also noticed that, whatever I do, the warning for putting “install.lock” in the documents directory won’t go away, even if I tried playing with permissions etc.

Perhaps the two issues are related?

I figured it out.

The problem was that I had put the documents folder outside the server root, and the server couldn’t read/write on that folder/subfolders.

I moved the documents folder, I also changed conf/conf.php and the problem was solved (I could enable the module without error).

1 Like