Title: WPG2-Plugin: wp-gallery2.php -&gt; Error
Last modified: August 18, 2016

---

# WPG2-Plugin: wp-gallery2.php -> Error

 *  [tim82](https://wordpress.org/support/users/tim82/)
 * (@tim82)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wpg2-plugin-wp-gallery2php-gt-error/)
 * WordPress 2.2.1 and Gallery2 are installed and are working. I have tried Gallery2
   versions 2.2.2 and 2.1.2, but it’s the same result.
 * The WPG2 Plugin (2.13) says “Validated Successfully” and all lines show “Success”.
   But if I go to the site wp-gallery2.php the following error message will appear:
 * ERROR
 * Error (ERROR_PLATFORM_FAILURE) :
 *  * in modules/core/classes/GalleryTemplate.class at line 270 (GalleryCoreApi::
   error)
    * in modules/core/classes/GalleryTemplate.class at line 200 (GalleryTemplate::
   _initCompiledTemplateDir) * in main.php at line 418 (GalleryTemplate::fetch) *
   in main.php at line 87 * in modules/core/classes/GalleryEmbed.class at line 192*
   in /www/htdocs/gottw/wp-gallery2.php at line 48 (GalleryEmbed::handleRequest)
 * 🙁
 * What should I do?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [robbart](https://wordpress.org/support/users/robbart/)
 * (@robbart)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wpg2-plugin-wp-gallery2php-gt-error/#post-598781)
 * According to the Gallery2 FAQ ([http://codex.gallery2.org/Gallery2:FAQ](http://codex.gallery2.org/Gallery2:FAQ))
 *  How can I fix the filesystem permissions of the Gallery storage folder?
 * Usually you get either an ERROR_PLATFORM_FAILURE or the upgrade wizard reports
   that the filesystem permissions are wrong for your storage folder, i.e. it can’t
   write to all files and subfolders in that folder anymore.
 *  * To fix the problem, you can try the Fix the storage folder (make it writeable)
   tool in [http://example.com/gallery2/lib/support/](http://example.com/gallery2/lib/support/)
   on the Filesystem Permissions page. (This tool was added in G2.1.1), older versions
   don’t have it.
 *  * You can also try to change the permissions to 777 (read & writeable for everyone)
   with your FTP program. If all fails, please ask in the forum for help such that
   we can verify that it is indeed a filesystem permissions problem. If it actually
   is one, you’ll have to ask your webhost to change the filesystem permissions 
   recursively for you (e.g. chmod -R 777 g2data).
 *  * What might help is removing all cached data from the storage folder. Please
   see: How can I clear cached data?
 *  * A common issue is:
 * Error (ERROR_PLATFORM_FAILURE) :
    in modules/core/classes/GalleryTemplate.class
   at line 270 (gallerycoreapi::error) in modules/core/classes/GalleryTemplate.class
   at line 200 (gallerytemplate::_initcompiledtemplatedir)
 * In that case, if the above suggestions do not help, please try to delete g2data/
   smarty/templates_c/ folder via FTP or whatever tool you use to upload / manage
   files of your website.
 *  * If the problem does not disappear or is reappearing after it has been fixed
   for a while, please ask your webhost whether there are any scripts that change
   the owner of the files to the account owner. This could be the culprit since 
   files are not created / managed by your account, but by the webserver application.
   We also welcome you to consult the Gallery forums for further expert advice.
 *  Thread Starter [tim82](https://wordpress.org/support/users/tim82/)
 * (@tim82)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wpg2-plugin-wp-gallery2php-gt-error/#post-598785)
 * Thanks, the problem was the permission -> 777.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WPG2-Plugin: wp-gallery2.php -> Error’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [tim82](https://wordpress.org/support/users/tim82/)
 * Last activity: [18 years, 10 months ago](https://wordpress.org/support/topic/wpg2-plugin-wp-gallery2php-gt-error/#post-598785)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
