[SOLVED] Upgrading Error: Unknown module version 0.8 in prepareConfigUpgrade()

MadClikr

Joined: 2010-06-18
Posts: 2
Posted: Fri, 2010-06-18 13:46

Sometime around last August, I attempted to upgrade my ancient version of Gallery to a newer version. The upgrade failed, and I didn't have time to troubleshoot right then. This is where I am today:

I get through the Welcome, Authenticate, and System Check screens. The System Check warns that exec() is disabled (I'm on a shared hosting environment), and that I have a couple of modified template files.

Continuing to Step 3, I see:

Currently installed Core Module version: 0.8 (Gallery 2.0-alpha-3)
New version Core Module version: 1.1.26 (Gallery 2.2-rc-1)

And then, beginning upgrade:

 Stack Trace:
Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage.class at line 480 (GalleryCoreApi::error)
    * in modules/core/classes/Gallery.class at line 202 (GalleryStorage::search)
    * in modules/core/CoreModuleExtras.inc at line 579 (Gallery::search)
    * in modules/core/module.inc at line 433 (CoreModuleExtras::upgrade)
    * in modules/core/classes/GalleryModule.class at line 155 (CoreModule::upgrade)
    * in upgrade/steps/UpgradeCoreModuleStep.class at line 83 (GalleryModule::installOrUpgrade)
    * in upgrade/index.php at line 185 (UpgradeCoreModuleStep::processRequest) 

Debug Output:

      [1276868166] can't guarantee 300 -- extending!

(mysql): SET NAMES "utf8"   

(mysql): SHOW TABLES   

file_exists(/[FILE PATH REMOVED]/g2data/versions.dat)
file(/[FILE PATH REMOVED]/g2data/versions.dat, )
Unknown module version 0.8 in prepareConfigUpgrade()
is_writeable(/[FILE PATH REMOVED]/public_html/config.php)
getParameter id.adminGroup for core plugin

I checked the versions.dat file - while it does exist, the file is empty. I am not sure of the site's actual version, however the README file which is dated 12/30/2006 8:43 PM says Gallery 2.2. I tried simply writing "2.2" in the versions.dat file, but this didn't do the trick.

Any suggestions?

 
MadClikr

Joined: 2010-06-18
Posts: 2
Posted: Fri, 2010-06-18 18:47

Using: Select g_parameterValue from g2_PluginParameterMap where g_pluginId='core' and g_parameterName='_version';

I was able to find that g_parameterValue = 1.1.26

I then entered two lines into my versions.dat file:

1.1.26
2.2.6

and after hitting refresh in my browser, the site miraculously works again.