Active
Project:
Privatbank Merchant
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2010 at 10:40 UTC
Updated:
27 May 2011 at 12:01 UTC
Jump to comment: Most recent
Just install the module, open config page /admin/privatbank/settings and save it, got a warnings:
* warning: fopen(pblog.txt) [function.fopen]: failed to open stream: Permission denied in /var/www/drupal/sites/all/modules/privatbank/privatbank.pages.inc on line 385.
* warning: fwrite(): supplied argument is not a valid stream resource in /var/www/drupal/sites/all/modules/privatbank/privatbank.pages.inc on line 386.
* warning: fwrite(): supplied argument is not a valid stream resource in /var/www/drupal/sites/all/modules/privatbank/privatbank.pages.inc on line 387.
* warning: fclose(): supplied argument is not a valid stream resource in /var/www/drupal/sites/all/modules/privatbank/privatbank.pages.inc on line 388.
Comments
Comment #1
Anonymous (not verified) commentedIt seems like you don't have write permissions on desired directory. Do chmod 777 on it.
Or, if you do not need logs, just comment appropriate code in privatbank.pages.inc to turn off logging.
Comment #2
Nick Fedchik commentedIt is not secure to set 777 permissions to sites/all/modules directory. Even to a sites/all/modules/the_module directory.
Comment #3
Anonymous (not verified) commentedSo, create pblog.txt file and set permissions 777 on it.