sorry, i am using G2~~~
my gallery works fine for long time
but it doesn't work suddenly
the error msg in the following:
Error (ERROR_PLATFORM_FAILURE)
* in modules/core/classes/GalleryTemplate.class at line 239 (gallerystatus::error)
* in modules/core/classes/GalleryTemplate.class at line 167 (gallerytemplate::_initcompiledtemplatedir)
* in main.php at line 362 (gallerytemplate::fetch)
* in main.php at line 30
Thanks in advanced~~~~ :wink:
Posts: 8194
Moving to G2 forum.
Posts: 8601
did your g2data directory move or change permissions or owner?
Posts: 8
no ~~~~
so ?
what can i do ??
thz man~
Posts: 8601
so.... based on that error looks like you're using Alpha-1 ??
please upgrade! then we'll try to help.
right now it is unable to write to your g2data/smarty/templates_c directory.
Posts: 8
i think it is Upgradeable Core and Modules:
At long last we support upgrading from one version of G2 to the next. Unfortunately, this may not work reliably for all version before Alpha 4, so we recommend that you reinstall Alpha 4 from scratch just to be sure.
(quoted from the documentation)
please help me
Posts: 8601
check the README and G2 FAQ (sticky topic in this forum).. they tell you how to reinstall from scratch.
Posts: 8
sorry
if i reinstall the g2, all of my pics, album and settings will be lost.
but now i want to keep all of those data~~
what can i do ?
Posts: 328
alfredwongpy, this not supported, sorry. Up to alpha-4, upgrading requires a total reinstall (loosing all your pics/albums/settings). If you migrated from G1, just remigrate after you reinstall the newest g2-version.
Posts: 8
My gallery wasn't migrate from G1, it was a full install of G2~~~
Is there any method to fix my problem except reinstall it ?
Thz ~~~
Posts: 8601
you can try to fix the permission problem yourself.. then search the forums and/or do diffs on the schema files to update your database by hand to match the current schema.. a fair amount of work and you won't get help.
you'll never be able to upgrade that version automatically (as the README told you), so might as well bite the bullet and do it now.
Posts: 328
alfredwongpy, there is a tool called mysqldiff that is able to compare the schemas of two databases and generate appropriate ALTER TABLE statements.
Try this:
1) Install the new gallery2 in a new directory and with a different database (!) from scratch.
2) After that, run the mysqldiff between your current install and the new gallery2 install to see what's changed
3) Apply that changes to the old version.
4) Update the content of the g2_Schema tables with the content of the new gallery2 install.
5) Upgrade the gallery2 code in the current directory.
6) After that, clean up g2data/cache/ and g2data/smarty/ and pray that it still works (now with the new code).
Don't forget to do backups of everything before you start so you can start over in case something went wrong!!
And, as mindless notes, we cannot support you further on that, sorry.
Posts: 3
I just had this happen. Mine was owned by apache now it is owned by the user. What can I do to fix the poblem. G2
Posts: 32509
ask your webhost to chmod -R 777 /path/to/your/g2data
or chown -R newuser /path/to/your/g2data
whereas newuser should be replaced with the username as which g2 now runs on your webserver via php.
Posts: 3
that worked. i recompiled Apache.
Many hosts are now installing PHPsuexec as an added security measure. This will affect all of us who use PHP scripts in that .htaccess files are not permitted [we used these to turn register_globals off] and CHMOD permissions cannot be set to 777.
Posts: 1
Hi Please help!
i guess a bit of knowledge can harmful: I changed directory permissions to upload files to albums in g2data with dreamweaver then got a platformfailure error. changed permissions back to 777 and 755 but still no luck... any help?
thanks.
Error
Error (ERROR_PLATFORM_FAILURE) :
in modules/core/classes/GalleryTemplate.class at line 270 (gallerystatus::error)
in modules/core/classes/GalleryTemplate.class at line 222 (gallerytemplate::_initcompiledtemplatedir)
in main.php at line 318 (gallerytemplate::display)
in main.php at line 87
in main.php at line 80
above are main.php errors; below are config.php errors:
Fatal error: Call to a member function on a non-object in /home/palestin/public_html/gallery2/config.php on line 35
Posts: 32509
please ask your webhost to change the permissions for you as described above.
Posts: 5
Folks,
I ran into the same issue this evening after having not touched my site since June 2006. Everything was running fine for the past 6 months, then all of a sudden I started getting the following error:
Error (ERROR_PLATFORM_FAILURE) :
in modules/core/classes/GalleryTemplate.class at line 270 (gallerystatus::error)
in modules/core/classes/GalleryTemplate.class at line 222 (gallerytemplate::_initcompiledtemplatedir)
in main.php at line 318 (gallerytemplate::display)
in main.php at line 87
in main.php at line 80
Seeing that I did not tinker with my gallery software, the data directory, the file permissions or the gallery configuration, I assumed it was the fault of my hosting provider. I contacted my hosting provider (hostrocket.com) and they had recently implemented "php su exec" on the server in which my site is being hosted. This allows php scripts to be run as my account user versus the nobody user. This attempts to prevent vulnerabilities from affecting all users instead only affecting the unique user of the particular vunerable account. Since php is now being executed via my account user, the data directory owner had to be chowned to reflect my account user instead of the nobody user. The hosting provider had to take care of this for me, but the problem is now solved. If you have any questions or concerns, please contact me at
Posts: 2
thanks a million to valiant!! that fixed my problem. I had a similar error as you guys too.
Posts: 18
My host changed all of my file ownership over to me instead of the Apache server so that I could edit and customize them. This now caused my gallery NOT to function, and I got an error similar to the one above. Mine reads:
I did NOT request the host to change all the files, just a few. They didn't want to be bothered with changing files all the time, so he reset all of them to me.
How can I solve this problem? I have A LOT of hardwork in the gallery I created.
THANKS!
VB
Posts: 8601
with the owner change, now your webserver/php user can't write/delete in your g2data dirs. you need to chmod all dirs you own to 777 and all files you own to 666, or have the owner changed back.
Posts: 18
Is it a security issue if I do as you said above?
And if I request to have the hosting company change the ownership, do I do that to ONLY the g2data directory?
Thanks!
VB
Posts: 8601
777 and 666 do provide open permission to other users on the same system. It is common on shared hosts for your home directory to have permissions like 711 which allows others (including your webserver) to access files given an exact path, but they can't list the contents of your home dir. this just makes it a little harder to find any files you have with open permissions.
If you change the owner back, the dirs can be 755, files 644. Best if the change is done for everything under g2data, as G2 needs to write in all these dirs for various operations. Now other users logged into your system can't remove your files directly, but can still do so by writing their own php scripts and having the webserver run them (I'm talking about shared hosting where everyone uses the same webserver/php user).
Posts: 18
Is it just the g2data directory, or ALL of the g2data and it's subfolders that need to be returned ownership to the Apache server?
THANKS!
VB
Posts: 8601
Posts: 61
I did not maka any change to my G2. I did chmod all dir under G2data 777 and file 666.
it still don't work. Hope someone would help me in this!!
Posts: 61
I have my debug output .See if someone can take a look? thanks so much.
Posts: 61
I solved it already. got to use SmartFTP to CHMOD -R 777 to all G2data and below it.
Posts: 10
Exact the same problem, had run chown earlier to myuser:myusergrp and when I changed /g2data back to www:www (as php runs on our box) all went back to fine ;)
Posts: 2
I just wanted to thank everyone for your constructive guidance. I'm a newb at this and this post and others showed me the way!
Best,
H
Posts: 2
Here's another, very odd, reason why one could get (ERROR_PLATFORM_FAILURE)
http://gallery.menalto.com/node/38947#comment-237082
Posts: 2
Dont user chmod -r 777 on the data directory. This leads to a huge security hole. Instead it is enough to set permissions 777 to the following directory
/public_html/g2/g2_data/smarty
That is enough.
Posts: 6
tom_poes suggestion worked for me after I changed ownership of allfiles to the account user. Gallery now restored. Thanks for this.
Posts: 2
I have found a better method to ensure better security still. In config.php find the line:
make the directory something that is outside public_html. Now you dont have to care about permissions so much.