Hi all,
So one minute my Gallery2 was working fine and the next it crashed. The error given shown below:
Error
Error (ERROR_PLATFORM_FAILURE)
* in modules/core/classes/GalleryTemplate.class at line 288 (GalleryCoreApi::error)
* in modules/core/classes/GalleryTemplate.class at line 214 (GalleryTemplate::_initCompiledTemplateDir)
* in modules/core/classes/GalleryTheme.class at line 1025 (GalleryTemplate::fetch)
* in modules/core/classes/GalleryView.class at line 301 (GalleryTheme::loadTemplate)
* in main.php at line 465 (GalleryView::doLoadTemplate)
* in main.php at line 104
* in modules/core/classes/GalleryEmbed.class at line 189
* in /export/web/csr/modules/gallery/gallery_base.inc at line 205 (GalleryEmbed::handleRequest)
* in /export/web/csr/modules/gallery/gallery.module at line 452
* in ??? at line 0
* in /export/web/csr/includes/menu.inc at line 348
* in /export/web/csr/index.php at line 18
So I go to look at GalleryTemplate.class and around line 288 I find this:
if (!$platform->is_writeable($dir)) {
return array(GalleryCoreApi::error(ERROR_PLATFORM_FAILURE), null);
}
So I'm thinking something has gone wrong with the permissions but I'm not clear on the variables $platform (would that be the root folder of gallery2) or $dir. Any idea which folder permissions I should be investigating? I've checked my g2data and it's already on 777.
Posts: 6138
g2data needs to be writable recursively
chmod -R 0777 path/to/g2data
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 2
Thanks for that it worked. So this folder and its subfolders are always on 777? Is there any security risk to that
Posts: 6138
http://codex.gallery2.org/Gallery2:Security
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2