(ERROR_PLATFORM_FAILURE)

mascot

Joined: 2009-01-31
Posts: 6
Posted: Sun, 2009-02-01 17:28

I have Drupal 6.9 and Gallery 2.3
Webserver: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635

I get the (ERROR_PLATFORM_FAILURE) error no matter what I do.

I have checked the chmod settings and they are all set to 777 in the g2data folder.
I have tried to redo it again using the lib/support login.
I have cleared the cache
I have checked the path to my g2data folder in the config file.
And I have deleted the folder that was inside the smarty folder. Still I have the same problem. I am using Galery 2.3 and hosting on Hostgator.

First this
warning: fopen(/home/mascotwe/public_html/mascotgallery/g2data/locks/7) [function.fopen]: failed to open stream: No such file or directory in /home/mascotwe/public_html/drupal/mascotgallery/modules/core/classes/GalleryPlatform.class on line 337.

And then this:
Error (ERROR_PLATFORM_FAILURE) : /home/mascotwe/public_html/mascotgallery/g2data/locks/7

* in modules/core/classes/FlockLockSystem.class at line 72 (GalleryCoreApi::error)
* in modules/core/classes/GalleryLockSystem.class at line 95 (FlockLockSystem::_acquireLock)
* in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 62 (GalleryLockSystem::acquireReadLock)
* in modules/core/classes/GalleryCoreApi.class at line 2252 (GalleryLockHelper_simple::acquireReadLock)
* in modules/core/ItemAddAlbum.inc at line 48 (GalleryCoreApi::acquireReadLock)
* in main.php at line 250 (ItemAddAlbumController::handleRequest)
* in main.php at line 104
* in modules/core/classes/GalleryEmbed.class at line 189
* in /home/mascotwe/public_html/drupal/modules/gallery2/gallery_base.inc at line 205 (GalleryEmbed::handleRequest)
* in /home/mascotwe/public_html/drupal/modules/gallery2/gallery.module at line 452
* in ??? at line 0
* in /home/mascotwe/public_html/drupal/includes/menu.inc at line 348
* in /home/mascotwe/public_html/drupal/index.php at line 18

 
mascot

Joined: 2009-01-31
Posts: 6
Posted: Wed, 2009-02-04 04:33

Still no one has any ideas?

 
Beatnink

Joined: 2009-10-03
Posts: 2
Posted: Sat, 2009-10-03 06:52

A website (www.tara-artwork.com) that I'm managing for a friend of mine, which uses Drupal imbedded Gallery, has just encountered the same problem. Any ideas anyone?!

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 main.php at line 521 (GalleryTemplate::fetch)
* in main.php at line 104

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-10-06 16:17

FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Beatnink

Joined: 2009-10-03
Posts: 2
Posted: Tue, 2009-10-27 08:38

The problem seems to be with the Gallery template and database cache. As per another post on this problem I tried to delete the /httpdocs/drupal/gallery2/g2data_1947/smarty folder contents. It wouldn't allow me though and gave me the error "permission denied", including when I tried to set the chmod properties to 777. I got my hosting provider to set the properties after which I was able to delete the contents, which fixed the problem. But the problem has just recurred again. I once again deleted the smarty folder contents, but it wouldn't delete the templates_c subdirectory.

What I really would like to know, what is causing this problem?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-10-27 15:58

Don't delete that stuff manually like that. Go to Site Admin > Maintenance. Are you able to delete the template and database cache there?

The permissions on g2data need to be set so that what ever user that the web server or PHP run as, that user needs to be able to read, write and execute all directories and read and write all files.

Perhaps your host needs to set the owner of your g2data directory and ALL files and directories below it to match the user the web server or PHP run as and set the permissions to 755 for ALL directories below g2data and all files in all directories below g2data to 644.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here