Quote:
Op dit moment geïnstalleerd Core Module version: 0.8 (Gallery 2.0-alpha-3)
Nieuwe versie Core Module version: 1.2.0.4 (Gallery 2.2.2)
wtf? I had 2.2.1 prior upgrading?!
Stack Trace:
Quote:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage.class at line 480 (gallerycoreapi::error)
in modules/core/classes/Gallery.class at line 202 (mysqlstorage::search)
in modules/core/CoreModuleExtras.inc at line 581 (gallery::search)
in modules/core/module.inc at line 433 (coremoduleextras::upgrade)
in modules/core/classes/GalleryModule.class at line 160 (coremodule::upgrade)
in upgrade/steps/UpgradeCoreModuleStep.class at line 85 (coremodule::installorupgrade)
in upgrade/index.php at line 185 (upgradecoremodulestep::processrequest)
Debug: http://nije-faam.nl/gallery2/debug.txt
All system checks are ok. Any thoughts?
Posts: 32509
- i hope you have a database backup
- please check your g2data/versions.dat file. it should exist and have 2 lines. what are the contents of this file?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 6
- Yes i do have a database backup.
- versions.dat exists but has a size of zero bytes, ie no content.
Posts: 32509
> - versions.dat exists but has a size of zero bytes, ie no content.
that's weird. how did you originally install g2? with fantastico or another 1-click / auto-installer?
or with the normal installation process / wizard?
FYI:
you can create your own versions.dat easily.
If you're 100% sure you had G2.2.1, then versions.dat should have the following contents (2 lines):
you can check your version by looking at the PluginParameterMap table of your restored database. SELECT g_parameterValue from g2_PluginParameterMap where g_parameterName = '_version' AND g_pluginId = 'core';
steps to recover your gallery:
1. drop your database
2. import your database backup
3. check your current g2 core version as explained above
4. restore your versions.dat as explained above
5. run the upgrader again
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 6
gives: 1.2.0.1
Guess that makes it gallery 2.2.1, right?
Posts: 32509
correct. please also answer the other question i had (how did you install g2.2.1).
Posts: 6
I started long time ago with gallery 1.x with the normal installation process / wizard. Upgrading went succesful until now.
[coce]1.2.0.1
2.2.1[/code]
typo? [code]
Posts: 32509
correct, that was a typo (fixed). it should just be:
1.2.0.1
2.2.1
> I started long time ago with gallery 1.x with the normal installation process / wizard. Upgrading went succesful until now.
maybe check your database tables. does any of them have a fulltext index? e.g. the g2_AlbumItem table, does it have a "Fulltext" index?
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 6
Ok i added the two lines to versions.dat
without the code /code!!
Updating went fine.
Guess this one is solved. Thanks very much valiant, keep up the great work
Posts: 32509
Excellent.
Note: This was just that easy because you are using an older database driver. If your database connection was transactional, it would have been very, very difficult if not impossible to fix your Gallery.
-> Please backup your gallery database from time to time, and especially before upgrades.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 6
Backup are made every month by me and daily by the hoster.
Any clue on how versions.dat got empty?
Posts: 32509
> Any clue on how versions.dat got empty?
No. That's why I asked how you intially installed your Gallery.
Posts: 32509
@note about upgrades:
sorry, confused this topic with another forum topic.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage