Permission denied when adding blocks

I am trying to add a block, but get the following error :

Warning: file_put_contents(/var/www/vhosts/ [function.file-put-contents]: failed to open stream: Permission denied in /var/www/vhosts/ on line 739

I have changed the block_manager.php permissions to 777, as well as the controllers & admin directories to 777. Anyone have any idea how to fix this please?

Reading the message carefully indicates that the file:


is the one having problems. Verify that the path to that file and the file itself are accessible by whatever user your PHP environment is using. 777 is probably overkill but probably won’t hurt. Note: the 777 recommendation is a lowest-common-denonminator solution and will generally work on most sites.

Thanks tbirnseth, i forgot to change the permissions in bottom.tpl, and now i’ve done it, it works! :slight_smile: