[SOLVED] G2 redirects to the update page

oliverbo

Joined: 2005-05-02
Posts: 3
Posted: Mon, 2005-05-02 02:16

Hi,

G2 Beta 2.0 was just working fine for a while but today I hit the back button a couple of times and now I'm always redirected to the update page when I try to access G2.

Going through the update process fails on step 3.

I've seen some references to this problem but nowhere a solution. Do I have to re-install? Or is there a simpler solution?

Thank you for your help,
Oliver.

----

Gallery URL (optional):
Gallery version: Beta 2
Webserver (with version): Apache
Datatabase (with version): MySQL
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: Linux (FC3)
Web browser/version: Firefix 1.0
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-02 02:44

you'll have to reinstall.
(or give us more information than "fails on step 3"...)

 
oliverbo

Joined: 2005-05-02
Posts: 3
Posted: Mon, 2005-05-02 23:46
mindless wrote:
(or give us more information than "fails on step 3"...)

I can do that. Thank you!

 Error (ERROR_STORAGE_FAILURE)

    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1190 (gallerystatus::error)
    * in modules/core/classes/GalleryStorage.class at line 241 (mysqldatabasestorage::execute)
    * in modules/core/CoreModuleExtras.inc at line 309 (gallerystorage::execute)
    * in modules/core/module.inc at line 515 (coremoduleextras::upgrade)
    * in modules/core/classes/GalleryModule.class at line 137 (coremodule::upgrade)
    * in upgrade/steps/UpgradeCoreModuleStep.class at line 72 (coremodule::installorupgrade)
    * in upgrade/index.php at line 152 (upgradecoremodulestep::processrequest) 
(mysql): 
                  SELECT
                    g2_PluginParameterMap.g_parameterName, 
                    g2_PluginParameterMap.g_parameterValue
                  FROM
                    g2_PluginParameterMap
                  WHERE
                    g2_PluginParameterMap.g_pluginType = 'layout'
                    AND
                    g2_PluginParameterMap.g_pluginId = 'matrix'
                    AND
                    g2_PluginParameterMap.g_itemId = 0
                     


mysql error: [1051: Unknown table 'g2_ItemPropertiesMap'] in EXECUTE("DROP
TABLE g2_ItemPropertiesMap")


(mysql): DROP TABLE g2_ItemPropertiesMap   

1051: Unknown table 'g2_ItemPropertiesMap'

                  adodb_mysql._execute(DROP TABLE
g2_ItemPropertiesMap, false) % line 
833, file: adodb.inc.php
               adodb_mysql.execute(DROP TABLE g2_ItemPropertiesMap,
Array[0]) % line 1184, file: DatabaseStorage.class
            mysqldatabasestorage.execute(DROP TABLE
[GalleryItemPropertiesMap], Array[0]) %
line  241, file: GalleryStorage.class
         gallerystorage.execute(DROP TABLE
[GalleryItemPropertiesMap]) % line 
309, file: CoreModuleExtras.inc
      coremoduleextras.upgrade(Object:coremodule, null,
Object:statustemplate) % line  515,
file: module.inc


realpath(/var/www/html/gallery2/modules/core/classes/../../../)
 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-05-10 05:58

It's highly suspicious that G2 just stopped working. And even if you went to the upgrader randomly, it shouldn't harm your setup. The only reasons why I can think this might have happened is that somebody deleted the g2data/versions.dat file. Can you verify that it's still there, and if so, what's in it?

 
oliverbo

Joined: 2005-05-02
Posts: 3
Posted: Wed, 2005-05-11 00:02

Hi bharat,

I found the problem. I changed some symlinks and while the path to the data directory did not change, the symlinks were different. Apparently for some reason the temporary template directory could not be found anymore.

Thanks for your help,

Oliver.