I swear it wasn't me!!

getgoosed

Joined: 2004-10-24
Posts: 19
Posted: Thu, 2005-02-17 03:16

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-02-17 08:18

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?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-02-17 08:20

Looks like a G2 version of FAQ Gallery:c.15

 
getgoosed

Joined: 2004-10-24
Posts: 19
Posted: Thu, 2005-02-17 17:56

Is there an easy way to backup all pics and my settings to uninstall/reinstall?

 
getgoosed

Joined: 2004-10-24
Posts: 19
Posted: Thu, 2005-02-17 18:11

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?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-02-17 18:17

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.