Error (ERROR_PLATFORM_FAILURE) ------ Plz help me ---

alfredwongpy

Joined: 2004-07-28
Posts: 8
Posted: Thu, 2004-12-09 10:42

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:

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2004-12-09 12:46

Moving to G2 forum.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2004-12-09 16:18

did your g2data directory move or change permissions or owner?

 
alfredwongpy

Joined: 2004-07-28
Posts: 8
Posted: Fri, 2004-12-10 21:10
mindless wrote:
did your g2data directory move or change permissions or owner?

no ~~~~

so ?

what can i do ??

thz man~

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2004-12-10 23:04

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.

 
alfredwongpy

Joined: 2004-07-28
Posts: 8
Posted: Sat, 2004-12-11 18:34
mindless wrote:
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.

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
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2004-12-11 18:53

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
Posted: Sat, 2004-12-11 22:56
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
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Sat, 2004-12-11 23:06

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
Posted: Sun, 2004-12-12 15:24
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
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2004-12-12 17:06

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.

 
baschny
baschny's picture

Joined: 2003-01-04
Posts: 328
Posted: Sun, 2004-12-12 17:24

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. :(

 
msulliva

Joined: 2005-09-12
Posts: 3
Posted: Wed, 2005-10-05 14:56

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
Posted: Wed, 2005-10-05 15:13

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.

 
stevebor1

Joined: 2006-01-07
Posts: 3
Posted: Mon, 2006-01-30 23:28

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.

 
banastas

Joined: 2006-02-07
Posts: 1
Posted: Tue, 2006-02-07 07:25

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-02-07 07:28

please ask your webhost to change the permissions for you as described above.

 
bretts

Joined: 2006-08-09
Posts: 5
Posted: Wed, 2006-08-09 06:49

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

 
irishblu

Joined: 2004-09-29
Posts: 2
Posted: Sat, 2006-08-19 03:56
Quote:
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.

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
Posted: Mon, 2006-08-21 21:31
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
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

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

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-08-22 14:36

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
Posted: Tue, 2006-08-22 18:37

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

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-08-22 19:09

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).

 
VegasBoxers

Joined: 2006-04-20
Posts: 18
Posted: Wed, 2006-08-23 00:16

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

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2006-08-23 04:02
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
Posted: Wed, 2006-08-23 23:25
Quote:
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

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.
it still don't work. Hope someone would help me in this!!

 
bentr7040

Joined: 2004-08-02
Posts: 61
Posted: Thu, 2006-08-24 18:52

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

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/helpers/GalleryFactoryHelper_simple.class on line 122

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/lib/adodb/adodb.inc.php on line 2847

Notice: Only variable references should be returned by reference in /home/photomax/.panel/web/G2/modules/core/classes/GallerySession.class on line 1236
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

Debug Output

file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../config.php)
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../plugins/index.modules)
file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
Unimplemented: GalleryUrlGenerator
getParameter language.useBrowserPref for core plugin
file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/core/0/0/0.inc)
getParameter default.language for core plugin
controller , view
Loading plugin core
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/core/module.inc)
core plugin successfully instantiated
file_exists(/home/photomax/.panel/web/G2/g2data/versions.dat)
file(/home/photomax/.panel/web/G2/g2data/versions.dat, )
getParameter id.anonymousUser for core plugin
[1156445019] can't guarantee 5 -- extending!
file_exists(/home/photomax/.panel/web/G2/g2data/cache/entity/0/0/5.inc)
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the core plugin is ok
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/core/ShowItem.inc)
getParameter acceleration for core plugin
getParameter id.anonymousUser for core plugin
getParameter id.anonymousUser for core plugin
getParameter id.adminGroup for core plugin

(mysql):
SELECT
g2_UserGroupMap.g_userId
FROM
g2_UserGroupMap
WHERE
g2_UserGroupMap.g_userId = 5
AND
g2_UserGroupMap.g_groupId = 3
LIMIT 1

getParameter id.rootAlbum for core plugin
file_exists(/home/photomax/.panel/web/G2/g2data/cache/entity/0/0/7.inc)
getParameter default.theme for core plugin
Loading plugin matrix
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../config.php)
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../plugins/index.themes)
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../themes/matrix/theme.inc)
matrix plugin successfully instantiated
Check the version of the matrix plugin
file_exists(/home/photomax/.panel/web/G2/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
The version of the matrix plugin is ok
file_exists(/home/photomax/.panel/web/G2/g2data/cache/theme/matrix/0/0/0.inc)
file_exists(/home/photomax/.panel/web/G2/g2data/cache/theme/matrix/0/0/7.inc)

(mysql):
SELECT
g2_Group.g_id,
g2_Group.g_groupName
FROM
g2_UserGroupMap, g2_Group
WHERE
g2_Group.g_id = g2_UserGroupMap.g_groupId
AND
g2_UserGroupMap.g_userId = 5
ORDER BY
g2_Group.g_groupName
LIMIT 18446744073709551615

(mysql):
SELECT
g2_PermissionSetMap.g_module,
g2_PermissionSetMap.g_permission,
g2_PermissionSetMap.g_description,
g2_PermissionSetMap.g_bits,
g2_PermissionSetMap.g_flags
FROM
g2_PermissionSetMap

(mysql):
SELECT DISTINCT
g2_AccessMap.g_accessListId
FROM
g2_AccessMap
WHERE
g2_AccessMap.g_userOrGroupId IN (5,4)
AND
g2_AccessMap.g_permission & 1 = 1

(mysql):
SELECT
g2_AccessSubscriberMap.g_itemId
FROM
g2_AccessSubscriberMap
WHERE
g2_AccessSubscriberMap.g_itemId = 7
AND
g2_AccessSubscriberMap.g_accessListId IN (9)
LIMIT 1

file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc)

(mysql): UPDATE g2_ItemAttributesMap SET g_viewCount =
g2_ItemAttributesMap.g_viewCount + 1 WHERE g_itemId=7

file_exists(/home/photomax/.panel/web/G2/modules/core/classes/../../../themes/local/matrix)
getParameter misc.markup for core plugin
file_exists(/home/photomax/.panel/web/G2/modules/core/Preloads.inc)
file_exists(/home/photomax/.panel/web/G2/modules/core/Preloads.inc)
file_exists(/home/photomax/.panel/web/G2/modules/comment/Preloads.inc)
file_exists(/home/photomax/.panel/web/G2/modules/comment/Preloads.inc)
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/icons/classes/IconsImpl.class)
getParameter iconpack for icons plugin
file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/icons/0/0/0.inc)
getParameter default.orderBy for core plugin
getParameter default.orderDirection for core plugin
Array
(
[limit] => Array
(
[count] => 10
[offset] => 0
)

)

(mysql):
SELECT
g2_ChildEntity.g_id , g2_ItemAttributesMap.g_orderWeight
FROM
g2_ChildEntity, g2_Item, g2_AccessSubscriberMap, g2_ItemAttributesMap
WHERE
g2_ChildEntity.g_parentId = 7
AND
g2_ChildEntity.g_id = g2_Item.g_id

AND
g2_AccessSubscriberMap.g_itemId = g2_ChildEntity.g_id
AND
g2_AccessSubscriberMap.g_accessListId IN (9)
AND g2_ItemAttributesMap.g_itemId = g2_ChildEntity.g_id ORDER BY
g2_ItemAttributesMap.g_orderWeight, g2_ChildEntity.g_id LIMIT 10

Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok

(mysql):
SELECT
g2_ChildEntity.g_parentId,
COUNT(g2_ChildEntity.g_id)
FROM
g2_ChildEntity, g2_AccessSubscriberMap
WHERE
g2_ChildEntity.g_parentId IN (7)
AND
g2_AccessSubscriberMap.g_itemId = g2_ChildEntity.g_id
AND
g2_AccessSubscriberMap.g_accessListId IN (9)
GROUP BY
g2_ChildEntity.g_parentId

getParameter acceleration for core plugin
getParameter id.anonymousUser for core plugin
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok

(mysql):
SELECT
g2_ItemAttributesMap.g_parentSequence
FROM
g2_ItemAttributesMap
WHERE
g2_ItemAttributesMap.g_itemId = 7

file_exists(/home/photomax/.panel/web/G2/g2data/cache/entity/0/0/6.inc)

(mysql):
SELECT
g2_ItemAttributesMap.g_itemId, g2_ItemAttributesMap.g_viewCount
FROM
g2_ItemAttributesMap
WHERE
g2_ItemAttributesMap.g_itemId IN (7)

(mysql):
SELECT
g2_DescendentCountsMap.g_itemId,
g2_DescendentCountsMap.g_descendentCount
FROM
g2_DescendentCountsMap
WHERE
g2_DescendentCountsMap.g_userId = 5
AND
g2_DescendentCountsMap.g_itemId IN (7)

(mysql):
SELECT DISTINCT
g2_AccessMap.g_accessListId
FROM
g2_AccessMap
WHERE
g2_AccessMap.g_userOrGroupId IN (5,4)
AND
g2_AccessMap.g_permission & 1 = 1

(mysql):
SELECT
iam0.g_itemId,
COUNT(iam1.g_itemId)
FROM
g2_ItemAttributesMap AS iam0,
g2_ItemAttributesMap AS iam1,
g2_AccessSubscriberMap
WHERE
iam0.g_itemId IN (7)
AND
iam1.g_parentSequence LIKE CONCAT(iam0.g_parentSequence,
iam0.g_itemId, '/%')
AND
iam1.g_itemId = g2_AccessSubscriberMap.g_itemId
AND
g2_AccessSubscriberMap.g_accessListId IN (9)
GROUP BY
iam0.g_itemId

(mysql):
SELECT
g2_AccessSubscriberMap.g_itemId,
BIT_OR(g2_AccessMap.g_permission)
FROM
g2_AccessMap, g2_AccessSubscriberMap
WHERE
g2_AccessSubscriberMap.g_itemId IN (7)
AND
g2_AccessSubscriberMap.g_accessListId = g2_AccessMap.g_accessListId
AND
g2_AccessMap.g_userOrGroupId IN (5,4)
GROUP BY
g2_AccessSubscriberMap.g_itemId

Loading plugin checkout
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/checkout/module.inc)
checkout plugin successfully instantiated
Check the version of the checkout plugin
The version of the checkout plugin is ok
Loading plugin comment
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/comment/module.inc)
comment plugin successfully instantiated
Check the version of the comment plugin
The version of the comment plugin is ok
getParameter comments.latest for comment plugin
file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/comment/0/0/0.inc)
Loading plugin rearrange
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/rearrange/module.inc)
rearrange plugin successfully instantiated
Check the version of the rearrange plugin
The version of the rearrange plugin is ok

(mysql):
SELECT
g2_ChildEntity.g_parentId,
COUNT(g2_ChildEntity.g_id)
FROM
g2_ChildEntity, g2_AccessSubscriberMap
WHERE
g2_ChildEntity.g_parentId IN (7)
AND
g2_AccessSubscriberMap.g_itemId = g2_ChildEntity.g_id
AND
g2_AccessSubscriberMap.g_accessListId IN (9)
GROUP BY
g2_ChildEntity.g_parentId

Loading plugin register
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/register/module.inc)
register plugin successfully instantiated
Check the version of the register plugin
The version of the register plugin is ok
getParameter id.anonymousUser for core plugin
Loading plugin slideshow
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/slideshow/module.inc)
slideshow plugin successfully instantiated
Check the version of the slideshow plugin
The version of the slideshow plugin is ok
Loading plugin useralbum
Class not defined, trying to include it.
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/useralbum/module.inc)
useralbum plugin successfully instantiated
Check the version of the useralbum plugin
The version of the useralbum plugin is ok
file_exists(/home/photomax/.panel/web/G2/g2data/cache/module/useralbum/0/0/0.inc)
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok
getParameter id.adminGroup for core plugin
getParameter id.rootAlbum for core plugin

(mysql):
SELECT
g2_ChildEntity.g_parentId,
COUNT(g2_ChildEntity.g_id)
FROM
g2_ChildEntity, g2_AccessSubscriberMap
WHERE
g2_ChildEntity.g_parentId IN (7)
AND
g2_AccessSubscriberMap.g_itemId = g2_ChildEntity.g_id
AND
g2_AccessSubscriberMap.g_accessListId IN (9)
GROUP BY
g2_ChildEntity.g_parentId

(mysql):
SELECT
g2_Derivative.g_id, g2_ChildEntity.g_parentId
FROM
g2_Derivative, g2_ChildEntity
WHERE
g2_Derivative.g_id = g2_ChildEntity.g_id
AND
g2_ChildEntity.g_parentId IN (7)

AND
g2_Derivative.g_derivativeType IN (1)

file_exists(/home/photomax/.panel/web/G2/g2data/cache/entity/0/2/29.inc)

(mysql):
SELECT
g2_AccessSubscriberMap.g_itemId,
BIT_OR(g2_AccessMap.g_permission)
FROM
g2_AccessMap, g2_AccessSubscriberMap
WHERE
g2_AccessSubscriberMap.g_itemId IN (0)
AND
g2_AccessSubscriberMap.g_accessListId = g2_AccessMap.g_accessListId
AND
g2_AccessMap.g_userOrGroupId IN (5,4)
GROUP BY
g2_AccessSubscriberMap.g_itemId

Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok

(mysql):
SELECT
g2_AccessSubscriberMap.g_itemId,
BIT_OR(g2_AccessMap.g_permission)
FROM
g2_AccessMap, g2_AccessSubscriberMap
WHERE
g2_AccessSubscriberMap.g_itemId IN (7)
AND
g2_AccessSubscriberMap.g_accessListId = g2_AccessMap.g_accessListId
AND
g2_AccessMap.g_userOrGroupId IN (5,4)
GROUP BY
g2_AccessSubscriberMap.g_itemId

getParameter acceleration for core plugin
getParameter id.anonymousUser for core plugin
file_exists(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
is_dir(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
file_exists(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
is_writeable(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
getParameter default.theme for core plugin
Loading plugin matrix
matrix plugin successfully instantiated
Check the version of the matrix plugin
The version of the matrix plugin is ok
Loading plugin core
core plugin successfully instantiated
Check the version of the core plugin
The version of the core plugin is ok
file_exists(/home/photomax/.panel/web/G2/modules/core/classes/helpers/../../../../modules/core/ErrorPage.inc)
getParameter id.adminGroup for core plugin
realpath(/home/photomax/.panel/web/G2/modules/core/classes/../../../)
file_exists(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
is_dir(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
file_exists(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
is_writeable(/home/photomax/.panel/web/G2/g2data/smarty/templates_c/%%1263716729)
realpath(/home/photomax/.panel/web/G2/modules/core/classes/../../../)

 
bentr7040

Joined: 2004-08-02
Posts: 61
Posted: Thu, 2006-08-24 21:55

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
Posted: Tue, 2006-10-17 10:58

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
Posted: Thu, 2007-02-01 03:40

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

 
Zburatorul

Joined: 2007-05-31
Posts: 2
Posted: Thu, 2007-05-31 04:59

Here's another, very odd, reason why one could get (ERROR_PLATFORM_FAILURE)
http://gallery.menalto.com/node/38947#comment-237082

 
tom_poes

Joined: 2007-07-27
Posts: 2
Posted: Fri, 2007-07-27 15:13

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
filination's picture

Joined: 2008-05-14
Posts: 6
Posted: Tue, 2008-09-30 03:40

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
Posted: Tue, 2008-09-30 07:20

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.