Category Archives: Gallery


I use to receive following error on accessing my photo gallery


* in modules/core/classes/GalleryTemplate.class at line 251 (GalleryCoreApi::error)
* in modules/core/classes/GalleryTemplate.class at line 180 (GalleryTemplate::_initCompiledTemplateDir)
* in main.php at line 486 (GalleryTemplate::fetch)
* in main.php at line 94
* in main.php at line 83

On investigating the issue I found g2data directory was having wrong permission it should have 777

go to the installation directory of your gallery use following command to change permission recursive

[root@server~]#chmod -R 0777 g2data

That fixed the issue.

Post to Twitter