Error while saving theme configuration

While changing font in my fresh magento installation (not using the quickstart solution provided with the theme) I receive this error:
Something went wrong while saving this configuration: Warning: fopen(/var/www/domain/html/magento/app/design/frontend/Ubertheme/trex_pro/web/css/source/variables/_typography.less): failed to open stream: Permission denied in /var/www/domain/html/magento/app/code/Ubertheme/UbThemeHelper/Controller/Adminhtml/Config/Save.php on line 162
I tried running the chmod-chown script i usually use in my magento installations:
#!/bin/bash
find var generated vendor pub/static pub/media app/etc -type f --exec chmod g+w $
find var generated vendor pub/static pub/media app/etc -type d --exec chmod g+ws$
chown -R :www-data .
chmod u+x bin/magento
 
I also tried chmodding u+x and chowning to www-data:www-data instead of magentouser:www-data the /var/www/domain/html/magento/app/code/Ubertheme/UbThemeHelper/Controller/Adminhtml/Config/Save.php file, but it didn’t work either.
 
What am I doing wrong?
 

1 answer

Profile photo of Ziven Staff 100280.00 $tone May 11, 2020
Public

Hi Roberto,
It seems that you have an issue with the folder/files permission on your M2 instance. 
Please try to update the permission once again using these commands: 

find . -type d -exec chmod 775 {} +;
find . -type f -exec chmod 664 {} +;

If the issue still persists, then provide me the following info, I will check and get back to you then: 

  • URL and admin credentials of your M2 instance
  • SSH credentials of your M2 instance
  • Let me know the path to your M2 folder

PS. Please make sure you mark your reply private, then it’s safe to share your site info here. Only you and our technical team can access it.

Best Regards,
Ziven.
 

#1

Please login or Register to Submit Answer

Written By

Comments