'Error (ERROR_PLATFORM_FAILURE)' Issues

Chisa

Joined: 2007-01-10
Posts: 14
Posted: Wed, 2007-01-10 11:35

About a month ago my host decided to switch to safe mode, breaking my gallery. After I requested to have Safe Mode turned off for my sites, the galleries were working fine again. Shortly after that they had some trouble, went down for a bit then shipped everything to new servers. Since then the galleries have not been working, despite them assuring me that Safe Mode was no longer on. I've tried following the suggestions in this thread in terms of setting permissions to 777, but that doesn't seem to have done anything.

I'm not sure if the errors I'm getting are exactly the same as before, just that they both contained 'Error (ERROR_PLATFORM_FAILURE)'. I've turned on debug mode but can't seem to make any sense of it =/

I'm afraid I'm not sure which version of Gallery 2 I'm using, and I'm not sure how to check with the gallery itself not working.

The error message I get is:

Quote:
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 main.php at line 80

And the debug info can be seen here: http://yarnyeetong.com/gallery/gallery2/main.php

I'm not too great with PHP so I'm a bit stumped here. Anyone have some suggestions?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2007-01-10 11:45
 
Chisa

Joined: 2007-01-10
Posts: 14
Posted: Wed, 2007-01-10 12:04

That did it, thankyou ^_^

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2007-01-10 13:01

That would be the intention, yes. :-)


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
Chisa

Joined: 2007-01-10
Posts: 14
Posted: Wed, 2007-01-10 13:28

Hrmm, I tried the same with a gallery on my other site, but I installed that one a while after and it doesn't seem to have a g2data folder... do later installs not have it? I managed to find the smarty/templates_c folder that I deleted to fix my first one and deleted it here, but now I get a new error as well as the Platform one:

Quote:
Warning: mkdir() [function.mkdir]: Permission denied in /home/teresawa/public_html/chigard/gallery2/gallery2/modules/core/classes/GalleryPlatform.class on line 624

Can't seem to find that error in the FAQ or with the search.

Turned on debug mode but still have no idea how to decipher it : http://www.chigarden.com/gallery2/gallery2/main.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-01-10 13:59

That's also platform related. Try to change the folder permissions recursively.

--------------
Enter the Gallery 2 Theme Contest today!

 
Chisa

Joined: 2007-01-10
Posts: 14
Posted: Wed, 2007-01-10 14:24

I thought it might be something like that - do you have any idea which folder it might be? I know its not wise to just change everything... would it just be the modules folder?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2007-01-10 14:39

nope, that's about the storage folder.
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?

--------------
Enter the Gallery 2 Theme Contest today!

 
Chisa

Joined: 2007-01-10
Posts: 14
Posted: Mon, 2007-01-15 12:27

Do all versions of G2 have a g2data folder?

...because I don't seem to have one in this install.

Does this mean I have to redo everything?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-01-15 15:43

yes, all gallery 2 versions have a storage folder. its name doesn't have to be "g2data" though. look at your config.php (download the file via ftp and open it in a texteditor) and look for a "data.gallery.base" setting. that's the path to you "g2data" (storage) folder.

--------------
Enter the Gallery 2 Theme Contest today!

 
Chisa

Joined: 2007-01-10
Posts: 14
Posted: Tue, 2007-01-16 14:21

It's seems I've somehow set my storage directory to be the same as the gallery directory... which it says not to do =/ I've now moved it all to a g2data folder and updated the config file. I've emailed my host to have the permissions changed recursively, but I have the error:

Error (ERROR_PLATFORM_FAILURE) :

* in modules/core/classes/GalleryTemplate.class at line 260 (GalleryCoreApi::error)
* in modules/core/classes/GalleryTemplate.class at line 200 (GalleryTemplate::_initCompiledTemplateDir)
* in main.php at line 418 (GalleryTemplate::fetch)

For which it says changing permissions won't help and to delete some smarty files? I did that previously and they're still gone, but it doesn't seem to have made any difference.