Error (ERROR_PLATFORM_FAILURE) :

punkrulz

Joined: 2007-02-01
Posts: 15
Posted: Mon, 2008-07-21 19:22

Hey guys,

I apologize for not posting any of the information required on this topic. I do not have accessibility to the site maintenance area to get said information. I am having an issue with the Gallery when I try to access it. I have not made any modifications to the Gallery other than attempting to upload photos a few days ago. You can access the gallery here:

http://www.tacomafire.org/gallery2/main.php

I get the following error message when attempting to access it:

Error
Error (ERROR_PLATFORM_FAILURE) :

* 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

Can someone please assist me with this issue?

 
punkrulz

Joined: 2007-02-01
Posts: 15
Posted: Mon, 2008-07-21 19:24

Btw, the following lines in the file are as follows:

Main.php Line 486: list ($ret, $html) = $template->fetch($templatePath);
Line 94: list ($ret, $g2Data) = _GalleryMain($embedded);
Line 83: GalleryMain();

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2008-07-21 19:51

FAQ: I get a ERROR_PLATFORM_FAILURE, what should I do?

Most likely a permissions problem, or your g2data directory disappeared/moved.

--Andy
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
punkrulz

Joined: 2007-02-01
Posts: 15
Posted: Mon, 2008-07-21 21:46

Thanks for your help Alinde... I am still not functional. I panicked and did not proceed through the FAQ... I'm kind of multi-tasking here at work and am having difficulty doing that.

I've gone through and performed several suggestions. Changing the configuration file made the install / upgrade screen come up, and when it performs a query on everything, it tells me I need to CHMOD 777 -R on the g2data directory. Is that all files and folders? This is taking a really crazy long time because of how many # folders there are in every single one. Is there any other way? I've deleted the templates_c directory with no luck, and also attempted to clear the cache it recommended and got an error message.

Thanks!

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2008-07-21 22:01

`chmod -R 777` might take a while, but it's required, yah. Most FTP clients have a way to automate this, so while it might take a lot of "real" time, you should be able to do it in the background.

--Andy
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
bobbit

Joined: 2008-07-21
Posts: 5
Posted: Mon, 2008-07-21 23:47

I'm having the exact same problem, except I've chmod'd every file and folder in my g2data directory and it's still not working... Any ideas?

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2008-07-21 23:53

Also check that the directory still exists (i.e., it hasn't moved locations because of a hosting change). The setting is in config.php.

--Andy
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
bobbit

Joined: 2008-07-21
Posts: 5
Posted: Mon, 2008-07-21 23:58

It is there and everything's set correctly. Something's corrupted, I know that much. I've been trying to get into the /lib/support/ area for quite a while and every time I enter the password it just refreshes the page; it's not the wrong password either.

Really no idea what's going on.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2008-07-22 00:03

Eek, yah, that sounds like a sessions problem .. so there might be multiple issues at play here.

Are you sure at all what changed? Did your host do something crazy?

--Andy
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
bobbit

Joined: 2008-07-21
Posts: 5
Posted: Tue, 2008-07-22 00:06

They most I can guess was that we switched the server harddrive to a new box about 2 weeks back... I'm not sure when it all went wrong because I haven't been on in quite some time. Nothing else on my site, or on the server as a whole for that matter, went wrong, I think.

I have over 1,000 photos on this thing... I'd really like to not lose it!

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2008-07-22 00:13

Are you sure, then, that the paths didn't change? And that the permissions were really updated?

--Andy
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
bobbit

Joined: 2008-07-21
Posts: 5
Posted: Tue, 2008-07-22 00:17

Paths are exactly the same, I just triple checked with a PHP script. I've chmod'd absolutely everything in g2data to 777, all to no avail...

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2008-07-22 00:21

Can you post the exact error and the stack trace? Just to make sure it really is the same thing.

--Andy
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
bobbit

Joined: 2008-07-21
Posts: 5
Posted: Tue, 2008-07-22 00:35

Ugh. That's embarrassing. My FTP client was only going two directories down when it was chmod'ing.

Time for an upgrade I think!

Really sorry to be a bother. :(

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2008-07-22 00:36
 
punkrulz

Joined: 2007-02-01
Posts: 15
Posted: Tue, 2008-07-22 00:48

Hey guys,

Initially I was coming here to report that I too was still having issues after doing the CHMOD -R 777 on everything in the G2Data directory. I left it running while I was at work so it would not tie up anything at home. While I began to write this post, I changed the path of my directory again. Initially it was /home/tacoma/g2data. When trying to troubleshoot the issue, I changed it to just /g2data/. That's when I got the upgrade screen. I initially thought that I was on the right track with that screen... would just let the upgrade complete and that would be it, but when it still didn't work I realized it was seeing the G2Data directory incorrectly. I went back into my configuration, and set the path back... and now everything seems to be working.

I really don't know what the fix was, but it's working. Thanks for the help.

Btw, should I change the CHMOD back to something else now? Or leave everything in the G2Data directory 777? I think the biggest PITA was with how many directories there were... unfortunately I don't think there's an easy way to get rid of it, is there? Especially when the only thing I have access to server side is FTP?

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2008-07-22 00:53

Keep the permissions as they are, yah.

Get rid of what?

--Andy Lindeman
Consider giving back to Gallery
Gallery Paid Support
http://www.andylindeman.com

 
astrosgirl

Joined: 2008-09-11
Posts: 1
Posted: Thu, 2008-09-11 05:45

I have the same problem. My gallery was working fine, I didn't change a thing and the follow message is coming up when I try to open it:

Error
Error (ERROR_PLATFORM_FAILURE) :

* 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

I have tried changing the permissions in the G2Data directory but it will not changed them, it says permission denied. Just wondered if anyone can help please, it would be much appreciated.

 
Matt Thorn
Matt Thorn's picture

Joined: 2008-09-18
Posts: 3
Posted: Thu, 2008-09-18 07:42

I'm getting precisely the same error. In my case, I was trying to use WordPress Automatic Upgrade to upgrade to WordPress 2.6.2. I ultimately failed (even though WPAU tells me I succeeded), but ever since then I can't access the gallery (http://matt-thorn.com/gallery2/), and most of the images have disappeared from my blog (http://matt-thorn.com/wordpress/). I used WebShell to change every file and folder in the gallery2 directory to 777, but to no avail. I can access my "Gallery Support" page, but when I try to clear the cache or reset permissions there, I get an error message. It seems Gallery has lost its ability to make any sort of changes to any file or folder whatsoever.

Matt Thorn
http://matt-thorn.com

 
Matt Thorn
Matt Thorn's picture

Joined: 2008-09-18
Posts: 3
Posted: Mon, 2008-09-22 12:46

Hello? Anybody home?

Matt Thorn
http://matt-thorn.com

 
willhl

Joined: 2008-09-29
Posts: 2
Posted: Mon, 2008-09-29 15:00

I've got the same problem and have bugger all php knowledge. Anyway I'm in the process of changing permissions but what I want to know is what I'm comparing the location of the "G2Data" directory to? I know the directory's path but how would I make sure gallery has the correct path? Thanks in advance.

 
willhl

Joined: 2008-09-29
Posts: 2
Posted: Mon, 2008-09-29 15:02

I've got the same problem and have bugger all php knowledge. Anyway I'm in the process of changing permissions but what I want to know is what I'm comparing the location of the "G2Data" directory to? I know the directory's path but how would I make sure gallery has the correct path? Thanks in advance.

 
mike2098

Joined: 2008-01-08
Posts: 6
Posted: Mon, 2008-10-06 10:35

I get this error while trying to add water mark

Error (ERROR_PLATFORM_FAILURE) : /home/g2data/locks/56

* in modules/core/classes/FlockLockSystem.class at line 72 (GalleryCoreApi::error)
* in modules/core/classes/GalleryLockSystem.class at line 147 (FlockLockSystem::_acquireLock)
* in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 176 (GalleryLockSystem::acquireWriteLock)
* in modules/core/classes/GalleryCoreApi.class at line 2193 (GalleryLockHelper_simple::acquireWriteLock)
* in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 396 (GalleryCoreApi::acquireWriteLock)
* in modules/core/classes/GalleryCoreApi.class at line 1111 (GalleryDerivativeHelper_advanced::remapSourceIds)
* in modules/watermark/classes/WatermarkHelper.class at line 300 (GalleryCoreApi::remapSourceIds)
* in ??? at line 0 (WatermarkHelper::watermarkItem)
* in modules/watermark/ItemEditWatermark.inc at line 160
* in ??? at line 0 (ItemEditWatermark::bulkOperation)
* in modules/core/classes/GalleryTemplateAdapter.class at line 915
* in /home/jaaree/gallery2/g2data/smarty/templates_c/%%487946764/%%A2^A21^A2113948%%theme.tpl.php at line 166 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1258
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 209 (GallerySmarty::fetch)
* in main.php at line 480 (GalleryTemplate::display)
* in main.php at line 94
* in main.php at line 83

everything is chmod to 777 ???

 
minutedesigns

Joined: 2009-11-06
Posts: 1
Posted: Fri, 2009-11-06 12:20

PLEASE DO NOT BE RETARDS AND TELL PEOPLE TO SET 777.

That's quite possibly the most retarded and unsecure way of doing things.

 
Matt Thorn
Matt Thorn's picture

Joined: 2008-09-18
Posts: 3
Posted: Fri, 2009-11-06 12:46

Aww, can't we be retards, minutedesigns? Please?

It seems like there's no shortage of Internet users who will brand people/things/ideas as "retarded," USUALLY IN CAPITAL LETTERS, without actually contributing anything useful.

Perhaps you didn't notice, minutedesigns, that 1) the thread died more than a year ago, and 2) whoever makes Gallery has no intention of providing anything resembling "support," so we are left to fend for ourselves. (Which is why I have abandoned Gallery.)

If you have a "non-retarded" solution to the problem, we're all ears. Maybe you could even go crazy and write it in a civil tone.

Matt Thorn
http://matt-thorn.com