Warning:fopen(cache...

Created by caprenter
Keywords:
Last updated by:
caprenter

I place a copy of the application on my server, point my browser to the index.php page and get an error message:

Warning: fopen(cache/cache_plingsToday.txt) [function.fopen]: failed to open stream: Permission denied in /home/david/Desktop/Working_Webs/webplings/airline_jetson/assets/singlepling.php on line 191

Warning: fwrite(): supplied argument is not a valid stream resource in /home/david/Desktop/Working_Webs/webplings/airline_jetson/assets/singlepling.php on line 192

Warning: fclose(): supplied argument is not a valid stream resource in /home/david/Desktop/Working_Webs/webplings/airline_jetson/assets/singlepling.php on line 193

Help.

Answer:
This is to do with the permissions settings on the files in the 'cache' directory.

You may also get this problem on other pages (e.g. lists, places to go, individual pling entries....)

You should set the permissions so that your application can write to that file.

The issue is also addressed in Magpie RSS.