PLATFORM_FAILURE

nickm3

Joined: 2004-07-31
Posts: 37
Posted: Sun, 2005-07-17 06:05

<Gallery2 was working fine. I changed the layout from matrix to Sirius. Now I get this error. How can I change it back. I am unable to get into the gallery admin section to change it back right now. I know I am missing some info on the bottom of this message. But I am behind a firewall right now. And cant get to my server to get the necessary info.

Error (ERROR_PLATFORM_FAILURE)
in modules/core/classes/FlockLockSystem.class at line 253 (gallerystatus::error) 
in modules/core/classes/FlockLockSystem.class at line 98 (flocklocksystem::_acquirelock) 
in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 183 (flocklocksystem::acquirewritelock) 
in modules/core/classes/GalleryCoreApi.class at line 2071 (gallerylockhelper_simple::acquirewritelock) 
in modules/randomhighlight/module.inc at line 182 (gallerycoreapi::acquirewritelock) 
in modules/core/classes/GalleryEntity.class at line 419 (randomhighlightmodule::onload) 
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 98 (galleryderivativeimage::onload) 
in modules/core/classes/GalleryCoreApi.class at line 2144 (galleryentityhelper_simple::loadentitiesbyid) 
in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 206 (gallerycoreapi::loadentitiesbyid) 
in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 56 (galleryderivativehelper_medium::_loadderivatives) 
in modules/core/classes/GalleryCoreApi.class at line 876 (galleryderivativehelper_medium::fetchthumbnailsbyitemids) 
in modules/core/module.inc at line 86 (gallerycoreapi::fetchthumbnailsbyitemids) 
in modules/core/classes/GalleryLayout.class at line 952 (coremodule::getitemlinks) 
in layouts/siriux/layout.inc at line 61 (siriuxlayout::loadcommontemplatedata) 
in modules/core/classes/GalleryLayout.class at line 503 (siriuxlayout::loadalbumtemplate) 
in modules/core/ShowItem.inc at line 206 (siriuxlayout::loadtemplate) 
in modules/core/classes/GalleryView.class at line 214 (showitemview::loadtemplate) 
in main.php at line 302 (showitemview::doloadtemplate) 
in main.php at line 86
in modules/core/classes/GalleryEmbed.class at line 140
in index.php at line 249 (galleryembed::handlerequest) 
in /home2/nickmus/public_html/modules.php at line 57
Smarty Error
Error (ERROR_PLATFORM_FAILURE)
in modules/core/classes/GalleryTemplate.class at line 268 (gallerystatus::error) 
in modules/core/classes/GalleryTemplate.class at line 220 (gallerytemplate::_initcompiledtemplatedir) 
in main.php at line 555 (gallerytemplate::display) 
in main.php at line 103
in modules/core/classes/GalleryEmbed.class at line 140
in index.php at line 249 (galleryembed::handlerequest) 
in /home2/nickmus/public_html/modules.php at line 57

>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL: http://www.txwheelers.com/modules.php?name=gallery2:
Gallery version:G2B3
Webserver (with version):
Datatabase :mysql
PHP version :phpnuke7.7
phpinfo URL (optional):
Graphics Toolkit(s): Imagemagic
Operating system:
Web browser/version:IE6.0.2800
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-17 12:45

the link to your website doesn't work for me, it times out.
first, you'll want to get G2 standalone up and running again, forget about phpnuke for a moment.

and just a hint: php != phpnuke. if we ask for the php version, this has nothing to do with phpnuke.

http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Sun, 2005-07-17 19:19

The gallery was working fine embedded. I just change the layout from matrix to siriux. What I am wondering, is there a way to get it back to matrix without going through the admin section. I cant get to admin section the way it is now.

I tried coping the entire matrix folder and changing all "matrix" to "siriux", but that didn't seem to work. Is there a way to force it to default?
I am trying to avoid doing a complete reinstall simply to change the layout.

I changed the link to my site. the gallery link is on the left

Gallery URL: http://www.txwheelers.com/
Gallery version:G2B3
Webserver (with version):
Datatabase :mysql 4.0.22
PHP version :4.3.10
phpinfo URL (optional):
Graphics Toolkit(s): Imagemagic
Operating system: linux
Web browser/version:IE6.0.2800
G1 version (for migration bugs): none

apache version 1.3.33 (unix)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-07-17 19:31

no, you can't just copy the matrix folder to siriux.
and your website times out for me, i can't visit your website.

siriux should work. i guess your filesystem permissions for the g2data folder (and its subdirectories, files) are off, the webserver needs there write permission.

you may want to manually change the locking mechanism from file to db in the database (pluginsparametermap table, core module).
then hit flushCache in yourgalleryurl/lib/tools/test

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Mon, 2005-07-18 00:17

my g2data directory is 777. I have already created 69 albums,when I was using the matrix layout. I was looking at changing the layout. I went through the first 2 or 3, then tried the siriux and got the error.

Do you think if I reinstalled the siriux directory it might work?

I dont know why it times out for you. might be you IP address may be blocked from my site at a server level.
you can try www.nickm.us also, its a parked domain and should work also.
Thanks for your suggestion

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-18 00:52

i'm not talking about g2data only, i'm talking about the whole directory tree in g2data, all subdirectories, subsubdirectories, ... need to be chmodded right.
usually they are.
but sometimes, you or an admin move things, change thing, or the filesystem gets corrupted and suddently it has changed.

i'd look into changing from file based locking to db based locking as i described.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Mon, 2005-07-18 05:25

how do I change the DB to reflect/setup a different layout

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-18 07:31

use e.g. phpmyadmin or any other interface / tool to interact with the database.
in the table g2_pluginsparametermap change the core module default theme row to matrix (value).
then go to yourgalleryurl/lib/tools/test/ and hit flushCache.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Mon, 2005-07-25 23:33

I changed it like you discribed.

I also, in g2_PluginMap, made sure that the "matrix" item is set to 1 in the g_active column.

Still doesnt work

on the flushcache, that file doesnt exsis,t in my foldser you suggested.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 05:49

not in the filesystem, browse to http://www.txwheelers.com/gallery2/lib/tools/test/ and there, click on the link "FlushCache".
the above link may be wrong, because i don't know where your g2 is installed.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 15:15

OK, I see what you mean now. But it says in not accessible. (406 error). I tried chmod777 all the folders all the way to the index file. Still wouldn't work. I am really not simple minded.

The link was very close, its embedded in the modules directory

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 15:25

then your server is misconfigured.
btw: i can't access any page on your server anyway.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 17:06

can you tell how to uninstall it completely, database tables included?

Then I can reinstall it.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 17:08

wait a moment...

instead of flushcache etc. you can also delete g2data/cache/ manually (e.g. with the ftp or ssh).

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 17:29

should I delete the entire folder content?

g2data/cache/*.*

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 17:36

yes (or preserve derivatives if you don't want to rebuild all thumb/resizes)

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 17:41

After reading everything you have suggested and the FAQ

http://codex.gallery2.org/index.php/Gallery2:faq#How_can_I_.22zap.22_my_G2_data.3F_How_do_I_easily_clear_out_.2Fg2data_and_the_DB.3F

, It seems to me there should be more files in my /gallery2/lib/tools/test/ folder.

All I see is the testcase class file. So I downloaded another copy, thinking I had lots some file some how. And I still only see the testcase file in that folder.

Question: Is that all thats supposed to be in there?

Also, my galleries have been down for several weeks. So I am not trying to make them work over night. If it takes several more weeks, that fine. Thanks for your time and patients

-Nick

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 17:42

Ill do a back up and give it a shot. Thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 17:48

no, there should be various stuff in there.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 19:01

Deleting the cache didnt work.

the entire content of the /modules/gallery2/lib/tools/test/ directory is:

Testcase/
templates/
testcase.class
index.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 19:18

ok, then i'd reinstall g2 if it's not too much work reuploading the photos.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-07-26 20:04

Ill just save the albums, then put them back after I get it all working. Ya think that will work?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-26 20:09

nope, wouldn't work.

what would work.
1. move your existin g2data/albums dir away, e.g. rename it to g2datold.
2. empty the database, create a new, empty g2data dir
3. run the installer, fresh install. system checks should be all green, complete the install process
4. go to site admin, add g2dataold/albums to your local upload dirs
5. go to main.php, item add -> from local server
6. pick g2dataold/albums and select all albums/items, click ok
-> it will add all your old albums and items, but you'll lose users, comments, descriptions etc.
7. delete your g2dataold directory

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Mon, 2005-08-01 02:58

4. go to site admin, add g2dataold/albums to your local upload dirs

OK I have a fresh install. This part have me stumped. I dont understand what you mean by "your local upload dirs".

5. go to main.php, item add -> from local server

By main.php, are you refering to the main file in the gallery2 folder?

6. pick g2dataold/albums and select all albums/items, click ok
-> it will add all your old albums and items, but you'll lose users, comments, descriptions etc.
7. delete your g2dataold directory

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-01 07:15

> 4.
i assumed you wanted to add the albums of your old G2 install with a few clicks.
that's why i asked you to move your old g2data dir which has all the albums to g2dataold.
now you have a fresh, empty G2 installed. if you add the path to your old g2dataold path to the local upload directories in site admin, then you can add the old albums with all the photos with a few clicks.

> 5.
by main.php i mean: browse to your top album / to your gallery. in site admin, click on gallery in the upper left corner.

 
nickm3

Joined: 2004-07-31
Posts: 37
Posted: Tue, 2005-08-02 00:28

OK your talking about adding the using the "from web domain" method, right? I am still trying to get the integration module to work. Dari says to try it in the morning.
Thanks Valiant, I really wished you could get to my site. Ill see if my host is blocking certain traffic.