Error (ERROR_PLATFORM_FAILURE) ------ Plz help me ---
alfredwongpy
Joined: 2004-07-28
Posts: 8 |
![]() |
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) Thanks in advanced~~~~ :wink: |
|
alindeman
![]()
Joined: 2002-10-06
Posts: 8194 |
![]() |
Moving to G2 forum. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
did your g2data directory move or change permissions or owner? |
|
alfredwongpy
Joined: 2004-07-28
Posts: 8 |
![]() |
mindless wrote:
did your g2data directory move or change permissions or owner? no ~~~~ so ? what can i do ?? thz man~ |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
so.... based on that error looks like you're using Alpha-1 ?? |
|
alfredwongpy
Joined: 2004-07-28
Posts: 8 |
![]() |
mindless wrote:
so.... based on that error looks like you're using Alpha-1 ?? 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 |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
check the README and G2 FAQ (sticky topic in this forum).. they tell you how to reinstall from scratch. |
|
alfredwongpy
Joined: 2004-07-28
Posts: 8 |
![]() |
mindless wrote:
check the README and G2 FAQ (sticky topic in this forum).. they tell you how to reinstall from scratch. 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 ? |
|
baschny
![]()
Joined: 2003-01-04
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. |
|
alfredwongpy
Joined: 2004-07-28
Posts: 8 |
![]() |
baschny wrote:
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. 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 ~~~ |
|
mindless
![]()
Joined: 2004-01-04
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. |
|
baschny
![]()
Joined: 2003-01-04
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. 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. |
|
msulliva
Joined: 2005-09-12
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 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
ask your webhost to chmod -R 777 /path/to/your/g2data |
|
stevebor1
Joined: 2006-01-07
Posts: 3 |
![]() |
that worked. i recompiled Apache. |
|
banastas
Joined: 2006-02-07
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 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 |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
please ask your webhost to change the permissions for you as described above. |
|
bretts
Joined: 2006-08-09
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) : 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 jerry@shocking.com |
|
irishblu
Joined: 2004-09-29
Posts: 2 |
![]() |
Quote:
ask your webhost to chmod -R 777 /path/to/your/g2data thanks a million to valiant!! that fixed my problem. I had a similar error as you guys too. |
|
VegasBoxers
Joined: 2006-04-20
Posts: 18 |
![]() |
Quote:
did your g2data directory move or change permissions or owner? 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: Quote:
Error 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! |
|
mindless
![]()
Joined: 2004-01-04
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. |
|
VegasBoxers
Joined: 2006-04-20
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! |
|
mindless
![]()
Joined: 2004-01-04
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. |
|
VegasBoxers
Joined: 2006-04-20
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! |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
Quote:
Best if the change is done for everything under g2data, as G2 needs to write in all these dirs for various operations. |
|
bentr7040
Joined: 2004-08-02
Posts: 61 |
![]() |
Quote:
Error (ERROR_PLATFORM_FAILURE) : Quote:
Best if the change is done for everything under g2data, as G2 needs to write in all these dirs for various operations. I did not maka any change to my G2. I did chmod all dir under G2data 777 and file 666. |
|
bentr7040
Joined: 2004-08-02
Posts: 61 |
![]() |
I have my debug output .See if someone can take a look? thanks so much. Quote:
Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236 |
|
bentr7040
Joined: 2004-08-02
Posts: 61 |
![]() |
I solved it already. got to use SmartFTP to CHMOD -R 777 to all G2data and below it. |
|
Caygill
Joined: 2005-09-12
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 ;) |
|
hserang
Joined: 2007-02-01
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! |
|
Zburatorul
Joined: 2007-05-31
Posts: 2 |
![]() |
Here's another, very odd, reason why one could get (ERROR_PLATFORM_FAILURE) |
|
tom_poes
Joined: 2007-07-27
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. |
|
filination
![]()
Joined: 2008-05-14
Posts: 6 |
![]() |
tom_poes suggestion worked for me after I changed ownership of allfiles to the account user. Gallery now restored. Thanks for this. |
|
tom_poes
Joined: 2007-07-27
Posts: 2 |
![]() |
I have found a better method to ensure better security still. In config.php find the line: Quote:
$gallery->setConfig('data.gallery.base', '/home/.../galtwo_data/'); make the directory something that is outside public_html. Now you dont have to care about permissions so much. |
|