Hi,
I have fresh Drupal installation with the default bootstrap theme enabled in my site. I've downloaded 7.x-1.3 version of the module and after enabling the module it gives an error of "Unable to open file!".

So please have a look into this issue, its critical.

Attaching screenshot, after enabling as disabling this module.

I have given permission as well to the file, attach a screenshot for the same.

Thanks.

Comments

patelmayank7552 created an issue. See original summary.

esteban.arias’s picture

Hello Patel,

I have looked at your logs, and it seems that your Drupal installation directory changed from /var/www/html to /var/www/html/drupal7.

Please clean the caches of your site so that any references are fixed locally. A registry rebuild would be great too just in case.

I hope that this helps with your issue.

Regards,

patelmayank7552’s picture

Hi @esteban.arias,

I tried registry rebuild as well as a clear cache from Drush command as well as from site configuration

I installed the module and its working.

But what happens, if I change the theme in block configuration from default to any other style(like the bottom, right, etc) it gives me the warning. So only for default, it is working not for other themes selection(like the bottom, right, etc).

Warning: fopen(/var/www/html/drupal7/sites/all/modules/important_information/themes/bottom.json): failed to open stream: Permission denied in _important_information_settings_theme() (line 83 of /var/www/html/drupal7/sites/all/modules/important_information/important_information.inc).

Warning: fopen(/var/www/html/drupal7/sites/all/modules/important_information/themes/right.json): failed to open stream: Permission denied in _important_information_settings_theme() (line 83 of /var/www/html/drupal7/sites/all/modules/important_information/important_information.inc).

Attaching a screenshot of it. Filename: screenshot-drupal7.bn-2019.04.04-17-50-29.png

Thanks and Regards

esteban.arias’s picture

The permissions issue must have to do with the directory/files being owned by another user than the owner of the settings.php file.

Could you confirm whether the owner of the .json files and the settings.php are the same?

I have tried reproducing this issue locally, but have not been successful in it.

I am currently working on a Windows 10 laptop, maybe it is related to your OS as well, so could you tell me what OS are you using to run this module locally?

Thank you.

Eitisha’s picture

Hi @patelmayank7552

I also got the same kind of issue for other drupal module and it got fixed by changing the permission of files module directory to 755.

I hope this will work.

Thanks