[SOLVED] Error - Platform Failure appeared, why??

Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Tue, 2006-11-07 12:00

I see, but anyway: Silverstorm_v1 is up on the place where is supposed to be again and I can't access anything still.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-07 12:48

did you successfully upgrade? or does it still report a problem with upgrading the multisites?

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Tue, 2006-11-07 22:40

Hey valiant, here the news:

Both multisites I upgraded now without problems to 2.1.2 and the codebase is also up to date now.

Problems now:
When I browse either
http://www.silverstorm.ch/pictures-gallery-personal/main.php
or the other one
http://www.silverstorm.ch/pictures-gallery-public/main.php

I am always getting redirected to the upgrade screen though I already did the upgrade successfully, do you know what might be wrong here?

Codebase
The codebase is how I said up to 2.1.2 now, but still the same platform failure appears.
I set the debug mode of the codebase and the 2 multisites to false again to try everything out, but the platform failure persists.

What further steps should I do?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-07 23:44

please enable buffered debug mode.

g2 redirects to the upgrade wizard if versions.dat in g2data of the multisite isn't showing the same version as the one in modules/core/module.inc of the codebase.
it also redirects to the upgrade wizard, if the default theme is not active / must be upgraded.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Wed, 2006-11-08 07:41
Quote:
please enable buffered debug mode.

Done

Quote:
it also redirects to the upgrade wizard, if the default theme is not active / must be upgraded.

That could be the problem of the silverstorm_v1 or silverstorm_v2 theme which I adapted from the collage effect theme. Anyway, how is it possible to select a default theme that "has to work" when I can't access the admin panel??

I attached the actual debug now of the 3 sites again, probably something changed through the upgrade process...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-11-08 11:17

> Anyway, how is it possible to select a default theme that "has to work" when I can't access the admin panel??

i think we solved that in g2.2.

> Check the version of the Silverstorm_v1 plugin

and then there's the error and redirect. please make your Silverstorm_v1 plugin compatible with g2.1.2 (just change the constructor in theme.inc updating the version number, core api and theme api to match the current core api / theme api.
then run the upgrade wizard. in the "upgrade other plugins" step, upgrade your theme and finish the upgrader.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Wed, 2006-11-08 19:50

I tried to follow your post but I guess my knowledge is insuffiecient to to what you wrote me ^^

As far as I understand, I ONLY need to change "something" in theme.inc

I don't know what I have to do there exactly, you said it's in the constructor, version number, etc, but I don^t get it.

Here are the lines of the constructor in theme.inc:

--------------------------------------------
/**
* Constructor
*/
function Silverstorm_v1Theme() {
global $gallery;

$this->setId('Silverstorm_v1');
$this->setName($gallery->i18n('Silverstorm_v1'));
$this->setDescription($gallery->i18n('Silverstorm_v1 --- First Final Version Theme of silverstorm.ch'));
$this->setVersion('1,0,0');
$this->setRequiredCoreApi(array(6, 0));
$this->setRequiredThemeApi(array(2, 0));
$this->setStandardSettings(
array('showImageOwner' => 0,
'perPage' => 9,
'albumBlocks' => serialize(array(
array('comment.ViewComments', array()))),
'photoBlocks' => serialize(array(
array('exif.ExifInfo', array()),
array('comment.ViewComments', array())))));
}
--------------------------------------------
Would be great to show me and post what I have to change to make this theme work. Still though I have no clue why always silverstorm_v1 when I was long using silverstorm_v2...?

Anyway, when trying to upgrade the theme it gives me following error:

Stack-Trace:
Error (ERROR_PLUGIN_VERSION_MISMATCH) : incompatible theme Silverstorm_v1
in modules/core/classes/GalleryTheme.class at line 554 (gallerycoreapi::error)
in upgrade/steps/UpgradeOtherModulesStep.class at line 118 (silverstorm_v1theme::installorupgrade)
in upgrade/index.php at line 221 (upgradeothermodulesstep::processrequest)
in /hsphere/local/home/fritzenw/silverstorm.ch/pictures-gallery-public/upgrade/index.php at line 3

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-11-08 20:45

replace
$this->setVersion('1,0,0');
$this->setRequiredCoreApi(array(6, 0));
$this->setRequiredThemeApi(array(2, 0));

with

$this->setVersion('1,0,1');
$this->setRequiredCoreApi(array(7, 0));
$this->setRequiredThemeApi(array(2, 1));

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Wed, 2006-11-08 22:38

Thx, this worked and the module is successfully upgraded...

.... nevertheless, the next error when I browse the multisites

http://silverstorm.ch/pictures-gallery-public/main.php
Notice: unserialize(): Argument is not a string in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class on line 800

Fatal error: Call to undefined function: success() in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/themes/Silverstorm_v1/theme.inc on line 150

http://silverstorm.ch/pictures-gallery-personal/main.php?g2_view=core.ShowItemError&g2_problem=missingTheme&g2_itemId=7& (After redirect)
Notice: unserialize(): Argument is not a string in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class on line 800

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class:800) in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/helpers/GalleryPluginHelper_simple.class on line 169

seems endless here, one error after the other :( , but still, I think we are making progress :)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-11-09 02:00

use phpmyadmin to "truncate" the CacheMap table.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Thu, 2006-11-09 19:32

I don't really know what you mean by "truncate"??

-I tried to delete the entrys in those tables ---> no success
-I tried to drop the cachemap tables ---> no success

now I have the original files again.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-11-09 22:01

> now I have the original files again.

what files? files are unrelated to the CacheMap table.

what you need to do:
1. truncate the cachemap table (that means: delete all its rows).
how can that fail?

2. maybe disable page caching (site admin -> performance

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Mon, 2006-11-13 09:48

Hey valiant, I couldn't write back earlier because the "support team" of ixwebhosting is sloooow.

I deleted all the rows in both CacheMap tables except one, that I wasn't able to delete without dropping the whole table. So what I did is writing a trouble ticket that the supporters can do it for me.

--------------------------
Daniel, Fritzenwallner, Fri Nov 10 03:14:57 2006
Dear support team

I need to truncate 2 tables in my database:
fritzen_silvergallery

g2pers_CacheMap
g2publ_CacheMap

In both tables a managed to delete all rows but one thorugh phpMyAdmin, and I don't know why.

Could you please delete the last rows, which are called:

gpers_value
gpubl_value

thank you in advance

Daniel Fritzenwallner
Ravindra, Moolay, Fri Nov 10 14:21:19 2006
Ticket Status was changed from Open to On-Hold
Hello

We have forwarded your issue to our sys-admin team. We will respond you back once we are updated from them on the issue, till then I am keeping the ticket on hold.

We appreciate your patience.

Thank you,

Rating
Joel, Bell, Mon Nov 13 02:00:08 2006
Ticket Status was changed from On-Hold to Resolved
Hello Daniel,

I've checked both tables in your database and neither g2pers_CacheMap nor g2publ_CacheMap contain any rows.

Thank you for contacting us!

If you have any further questions, please do not hesitate to let us know.

Joel
-----------------------------------------------

Well, I don't know how you see it, but I think they don't get what I want to do.... I didn't ask if the rows contain errors or not, I just wanted them do delete it.

What should I write to them now??

Sorry, I'm really confused here.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-11-13 10:42

i think you're confusing the table header for a row. and the table is probably empty. but of course i could be wrong.

2 things now:
1. edit your v1 theme according to the g2.0 -> g2.1 API upgrades
http://codex.gallery2.org/index.php/Gallery2:API_Changes_From_2.0_To_2.1#6.10_.3D.3E_7.0 (mainly replacing GalleryStatus::success() with null)

2. open main.php in a texteditor
- find "if ($shouldCache) {" and replace it with "if (false) {"

i hope that helps you to get back into g2.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Mon, 2006-11-13 11:06
Quote:
2. open main.php in a texteditor
- find "if ($shouldCache) {" and replace it with "if (false) {"

i hope that helps you to get back into g2.

Before I get started here :) ... which main.php? Just the one from the gallery2 folder or also the ones from the multisites?

cheers

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-11-13 12:50

codebase.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Mon, 2006-11-13 20:16

ok, I did the steps you told me:

For step one I have following code now:
/* Add our header and styles */
return array(null, 'theme.tpl');
}

The new error messages :(

http://www.silverstorm.ch/pictures-gallery-public/main.php
---------------------------------------
Notice: unserialize(): Argument is not a string in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class on line 800

Fatal error: Call to undefined function: success() in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/themes/Silverstorm_v1/theme.inc on line 150
---------------------------------------

http://www.silverstorm.ch/pictures-gallery-personal/main.php
---------------------------------------
Notice: unserialize(): Argument is not a string in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class on line 800

Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class:800) in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/helpers/GalleryPluginHelper_simple.class on line 169
---------------------------------------

:(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-11-13 20:34

> Notice: unserialize(): Argument is not a string in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/modules/core/classes/GalleryDataCache.class on line 800

> Fatal error: Call to undefined function: success() in /hsphere/local/home/fritzenw/silverstorm.ch/gallery2/themes/Silverstorm_v1/theme.inc on line 150

that's what my previous post was about.
changing / updating the theme.inc of the v1 theme for g2.1's API should fix the 2nd error.

the first error should be fixed by editing main.php to ensure that it doesn't try to use page level caching anymore.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Tue, 2006-11-14 17:33

Oh god... I was trying for 2 hours now to adapt main.php and theme.inc somehow that it will work, but it doesn't.

1.) I can't follow the tutorial link of upgrading a theme which u posted, basically, I don't know what and where exactly I have to change anything to make it work. And still the riddle, why why why does the system want Silverstorm_v1 and not Silverstorm_v2??

2.) main.php ... There are lots of "$shouldCache" strings in the file. I tried to replace them all with "null" and didn't work, then I replace really only the statement you wrote me in the last post and it doesn't work, well I think the main problem is that I can't program php and every little mistake would result in another error.

QUESTION

- Do you think, valiant that it is still possible to save and get back my gallery through the way we're doing right now (considering my php knowledge).
- Is there any other way to make it work again?
- Do I still have to worry about the platform failure itself?

thank you for your great work and your will to help me valiant. sorry to annoy you with these troubles...

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-14 17:46

@questions:
- Yes, i definitely think this gallery instances can be restored.

Since this thread is annoying me a little as well, please post me your ftp username / password via PM and access to your cpanel (phpmyadmin) and i'll try to fix it for free.
I'll give the attempt 30 minutes. If it takes more I stop and you'll have to decide what to do.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Tue, 2006-11-14 20:42

@valiant

PM Message sent

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-14 22:31

i checked the public gallery, fixed the unserialize() issue.

but now it shows a storage error which is related to a unsuccessful upgrade.
your database tables have not been upgraded correctly.

you need to restore a backup of the public gallery and upgrade again.
or you give up, create a new gallery and import your current g2data/albums folder. see documentation -> howto -> restore from a backup.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Tue, 2006-11-14 23:02

thank you valiant

I'm gonna do that tomorrow evening

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Wed, 2006-11-15 20:38

1.) I dropped the Public gallery database tables
2.) Uploaded Backup
3.) Browsed to http://silverstorm.ch/pictures-gallery-public/upgrade/
4.) Ran Upgrade

5.) Get message:

Stack-Trace:
Error (ERROR_BAD_PLUGIN) : Unknown module version 1.1.0.2
in modules/core/CoreModuleExtras.inc at line 1917 (gallerycoreapi::error)
in modules/core/module.inc at line 487 (coremoduleextras::upgrade)
in modules/core/classes/GalleryModule.class at line 157 (coremodule::upgrade)
in upgrade/steps/UpgradeOtherModulesStep.class at line 74 (coremodule::installorupgrade)
in upgrade/index.php at line 221 (upgradeothermodulesstep::processrequest)
in /hsphere/local/home/fritzenw/silverstorm.ch/pictures-gallery-public/upgrade/index.php at line 3

6.) Got pissed
7.) Through the mouse away
8.) Decided to give up and safe as much as possible
9.) Questions: - What can I safe from my gallery installation when I'm gonna decide to make a new one?
10.) Thanks for your patience

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-11-16 03:19

> Error (ERROR_BAD_PLUGIN) : Unknown module version 1.1.0.2

i guess you didn't restore g2data/ since versions.dat had the 1.1.0.2 value still.

> 9.) Questions: - What can I safe from my gallery installation when I'm gonna decide to make a new one?

see:
http://codex.gallery2.org/index.php/Gallery2:How_To_Restore_From_Backup

so just installing a fresh g2 and using "add items from server" to add the albums from the old g2data/albums folder is easy.

anything else needs manual work.

related:
export/import module from http://codex.gallery2.org/index.php/Gallery2:User_Contributions .
but it might not work, no idea.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Sat, 2006-11-18 15:37

A new gallery installation is up and running now, so far with just 1 multisite to see if it'll work.

Quote:
so just installing a fresh g2 and using "add items from server" to add the albums from the old g2data/albums folder is easy.

I now would like to transfer all albums from the old location to the new one if that's possible, and I think that's what you adviced me here.
I did step 1 and 2 from http://codex.gallery2.org/index.php/Gallery2:How_to_Add_Items#How_to_Add_Items_from_the_Local_Server, but step 3 is strange, why should I upload anything which is already on the server??? Is it possible to just move the album folders from the old location to the new one?

thx
Silverstorm

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-11-18 15:59

> why should I upload anything which is already on the server???

of course you should skip that step. these instructions are for the complete "how to add items" process, not for restoring from a albums/ folder that is already on the server.

> Is it possible to just move the album folders from the old location to the new one?

no. how should the database know about the files in the albums folder? thus, no.

 
Silverstorm
Silverstorm's picture

Joined: 2006-01-20
Posts: 121
Posted: Sun, 2006-11-19 21:33

---> This Thread can be closed <---

Overall advice to people who will have the same problem:

First of all, read the other posts in the forum and the FAQ. Most of the time when a Platform Failure appears, it's a permission issue. Nevertheless, at my place it wasn't the case and I still don't know an answer to my initial question, WHY. I suppose there were many coincidents at once and most likely it had to do with ixwebhosting. What helped for me to fix the problem is:
- Create a new installation of gallery with a fresh database
- Import albums
- Sort and write infos to pictures manually (In case you have a backup of your old "probably corrupt" database, you can read out the text you've once written and copy/paste)

A word to valiant:

Thanks a lot for your patience and your hints to solve the problem. Lots of things worked and I learned a big deal of it (I guess *g*). You can close this thread now because the further questions I have are not related to the platform failure any more.

Silverstorm