I am getting the following error message today having installed and activated gCal yesterday:-

warning: file_put_contents(sites/all/modules/gcal_events/cache/be8a01d5acaa40ee3e401dfaa7c72dd0.spc) [function.file-put-contents]: failed to open stream: Permission denied in /.../sites/all/modules/gcal_events/simplepie.inc on line 8593.

user warning: sites/all/modules/gcal_events/cache/be8a01d5acaa40ee3e401dfaa7c72dd0.spc is not writeable in /.../sites/all/modules/gcal_events/simplepie.inc on line 1773.

(the dots '...' replace the remainder of the actual path)

The cache folder is in the 'gcal_events' folder:
sites/all/modules/gcal_events/cache

The cache folder is set to 777, the .inc file within is at 644 (that I cannot change)

Am brand new to Drupal, and can't for the life of me see what is wrong. Any help would be HUGELY appreciated.
thanks in advance,
Eddie

Comments

Se7enLC’s picture

Assigned: Unassigned » Se7enLC

The inc file is fine - you don't need to change permissions on that. When it says "in simplepie.inc on line 1773" it means that simplepie.inc is what is requesting the file write.

Try looking in your php.ini file for "allow_url_fopen". I believe that must be set to true for simplepie to work

ebyrne41’s picture

Thanks for reply. However, it is already on (ran php-test.php to verify).

By leaving the cache directory box empty (ie. no caching, which is not recommended) I no longer have the problem (most of the time that is, have seen the message on a rare occasion). So I am still at a loss as to what to do, and the implications of not having the cache on.

Se7enLC’s picture

Is there anything currently in the cache directory? The errors seem to point to a permission problem with writing to the cache directory, or to the individual cache file. Perhaps try making a new cache directory elsewhere and using that? I would double-check the directory names to make sure they are correct as well (case-sensitive). If you have the ability to get php or webserver error logs on your server, I would suggest looking at them for clues, as well.

jdwfly’s picture

Status: Active » Closed (fixed)

Closing old support request.