Bill Standke, III's picture

I'm trying to upload a new them in the prestashop vm and I get a message "Fatal error";   I turned on logging but haven't been able to figure out what's going on.  Any suggestions?

Forum: 
Jeremy Davis's picture

But my first suspicion would be a permissions problem.

Assuming that you are trying to load the file via PrestaShop itself, then my guess is that the folder where it is trying to save is owned by root (and needs to be owned by the webserver user i.e. www-data).

If you are using another method to upload the file (e.g. Webmin or SFTP) then the theme file itself is no doubt owned by root (as you probably used the root account to upload the file).

Ideally I would find out what folder it is trying to save in and just change the permissions on that folder:

chown -R www-data:www-data /var/www/path/to/theme/folder

But if you can't find what the folder is then I would recommend that you change ownership of the whole tree:

chown -R www-data:www-data /var/www

Add new comment