Anyone seen this? Tried logging onto my server today to upload some pictures, and this is what I get instead of the main page. Nothing has changed that I am aware of, and cvs is up to date. Thanx in advance.
----
Warning: fopen(/home/swampdonkey/g2data/cache/entity/5/3/5315.inc): failed to open stream: Permission denied in /home/swampdonkey/public_html/gallery2/modules/core/classes/GalleryPlatform.class on line 341
Warning: flock(): supplied argument is not a valid stream resource in /home/swampdonkey/public_html/gallery2/modules/core/classes/GalleryPlatform.class on line 359
Warning: unlink(/home/swampdonkey/g2data/cache/module/imageblock/0/0/0.inc): Permission denied in /home/swampdonkey/public_html/gallery2/modules/core/classes/GalleryPlatform.class on line 609
Warning: fopen(/home/swampdonkey/g2data/cache/entity/5/3/5316.inc): failed to open stream: Permission denied in /home/swampdonkey/public_html/gallery2/modules/core/classes/GalleryPlatform.class on line 341
Warning: flock(): supplied argument is not a valid stream resource in /home/swampdonkey/public_html/gallery2/modules/core/classes/GalleryPlatform.class on line 359
Error
Error (ERROR_PLATFORM_FAILURE)
* in modules/core/classes/GalleryTemplate.class at line 250 (gallerystatus::error)
* in modules/core/classes/GalleryTemplate.class at line 203 (gallerytemplate::_initcompiledtemplatedir)
* in main.php at line 315 (gallerytemplate::display)
* in main.php at line 46
* in main.php at line 39
Smarty Error
Error (ERROR_PLATFORM_FAILURE)
* in modules/core/classes/GalleryTemplate.class at line 250 (gallerystatus::error)
* in modules/core/classes/GalleryTemplate.class at line 203 (gallerytemplate::_initcompiledtemplatedir)
* in main.php at line 504 (gallerytemplate::display)
* in main.php at line 61
* in main.php at line 39
Posts: 32509
I'd say your webhost has changed something. perhaps moved your account from one machine to another or something else. sure there was no change?
Posts: 13451
Looks like a G2 version of FAQ Gallery:c.15
Posts: 19
Is there an easy way to backup all pics and my settings to uninstall/reinstall?
Posts: 19
Ok, must have been a permission problem. I chmod -R 777 to the g2data and gallery2 directories, but now they are wide open are they not?
Is there a default setting that the files are at? And how would I apply it?
Posts: 32509
777 is correct. that's the way gallery manages the albums.
it would be sufficient, if the user that runs the webserver (root, www, nobody, ...) has write permission on them.
so you can either change the owner of the files to this webserver user (command: chown), then 755 would be sufficient. or create a group (not a Gallery group, a filesystem permission group) where you and the webserver user are members. and chmod it then 775.