[SOLVED] G2 Beta install failure - report enclosed

samchad

Joined: 2005-01-10
Posts: 22
Posted: Mon, 2005-03-07 07:26

Install of G2Beta failed and said to post error message here.
If anyone has a moment to help, I'd be really grateful.

Sam

www.tigley.com/gallery2
PHP v5.03

===============

Stack Trace:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1162 (MySqlDatabaseStorage::error)
in modules/core/classes/GalleryStorage.class at line 241 (MySqlDatabaseStorage::execute)
in modules/core/CoreModuleExtras.inc at line 330 (GalleryStorage::execute)
in modules/core/module.inc at line 512 (CoreModule::upgrade)
in modules/core/classes/GalleryModule.class at line 137 (CoreModule::upgrade)
in upgrade/steps/UpgradeCoreModuleStep.class at line 68 (CoreModule::installOrUpgrade)
in upgrade/index.php at line 155 (UpgradeCoreModuleStep::loadTemplateData)

Debug Output:
--------------------------------------------------------------------------------
(mysql): SHOW TABLES
--------------------------------------------------------------------------------

file_exists(/home/samchadw/g2data//versions.dat)
file(/home/samchadw/g2data//versions.dat, )
file_exists(/home/samchadw/public_html/gallery2/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
opendir(/home/samchadw/public_html/gallery2/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
readdir(Resource id #41)
closedir(Resource id #41)
--------------------------------------------------------------------------------
(mysql): SHOW TABLES
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g_name, g_major, g_minor FROM g2_Schema

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginMap.g_pluginId,
g2_PluginMap.g_active
FROM
g2_PluginMap
WHERE
g2_PluginMap.g_pluginType = 'layout'

--------------------------------------------------------------------------------

opendir(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
is_dir(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/classic)
file_exists(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/classic/layout.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'classic'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'classic'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'classic'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'classic'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

readdir(Resource id #47)
is_dir(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/hybrid)
file_exists(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/hybrid/layout.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'hybrid'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'hybrid'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'hybrid'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'hybrid'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

readdir(Resource id #47)
is_dir(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/matrix)
file_exists(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/matrix/layout.inc)
--------------------------------------------------------------------------------
(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):
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):
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):
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

--------------------------------------------------------------------------------

readdir(Resource id #47)
is_dir(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/slider)
file_exists(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/slider/layout.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'slider'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'slider'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'slider'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'slider'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

readdir(Resource id #47)
is_dir(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/tile)
file_exists(/home/samchadw/public_html/gallery2/modules/core/classes/helpers/../../../../layouts/tile/layout.inc)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'tile'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'tile'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'tile'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginParameterMap.g_parameterName,
g2_PluginParameterMap.g_parameterValue
FROM
g2_PluginParameterMap
WHERE
g2_PluginParameterMap.g_pluginType = 'layout'
AND
g2_PluginParameterMap.g_pluginId = 'tile'
AND
g2_PluginParameterMap.g_itemId = 0

--------------------------------------------------------------------------------

readdir(Resource id #47)
closedir(Resource id #47)
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 1156, file: DatabaseStorage.class
MySqlDatabaseStorage.execute(
DROP TABLE [GalleryItemPropertiesMap]
, Array[0]) % line 241, file: GalleryStorage.class
GalleryStorage.execute(
DROP TABLE [GalleryItemPropertiesMap]
) % line 330, file: CoreModuleExtras.inc
CoreModule.upgrade(Object:CoreModule, null) % line 512, file: module.inc

realpath(/home/samchadw/public_html/gallery2/modules/core/classes/../../../)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_FactoryMap.g_classType,
g2_FactoryMap.g_className,
g2_FactoryMap.g_implId,
g2_FactoryMap.g_implPath,
g2_FactoryMap.g_hints
FROM
g2_FactoryMap
ORDER BY
g2_FactoryMap.g_orderWeight ASC

--------------------------------------------------------------------------------

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-07 16:37

try again and make sure the g2data storage directory you provide is completely empty.. above it ran some upgrade code it should not use for a new install, so perhaps there was an old versions.dat file sitting in the directory you provided.

 
samchad

Joined: 2005-01-10
Posts: 22
Posted: Sun, 2005-03-20 05:44

Just got round to looking at this again. You were right...well spotted!