[SOLVED] Unable to install the core module

orangemozzie

Joined: 2004-06-23
Posts: 8
Posted: Thu, 2005-01-13 01:50

Hi there

I am repeatedly getting this error when I get to step 7 installing the gallery core

Stack Trace:
Error (ERROR_STORAGE_FAILURE):
in file modules/core/classes/GalleryStorage/DatabaseStorage.class at line 782 (gallerystatus::error)
in file modules/core/classes/GalleryStorage.class at line 261 (mysqldatabasestorage::addmapentry)
in file modules/core/classes/interfaces/GalleryPluginParameterMap.inc at line 124 (gallerystorage::addmapentry)
in file modules/core/classes/helpers/GalleryPluginHelper_medium.class at line 386 (gallerypluginparametermap::addmapentry)
in file modules/core/classes/helpers/GalleryPluginHelper_medium.class at line 336 (gallerypluginhelper_medium::_addparameter)
in file modules/core/classes/GalleryCoreApi.class at line 309 (gallerypluginhelper_medium::setparameter)
in file modules/core/classes/GalleryModule.class at line 400 (gallerycoreapi::setpluginparameter)
in file modules/core/CoreModuleExtras.inc at line 97 (coremodule::setmoduleparameter)
in file modules/core/module.inc at line 635 (coremoduleextras::install)
in file install/steps/InstallCoreModuleStep.class at line 49 (coremodule::install)
in file install/index.php at line 148 (installcoremodulestep::loadtemplatedata)

Debug Output:
file_exists(/home/jasonwar/public_html/_gallery/g2data/sessions/cf54e629aa0b974a64c83e93db015e8e)
file_exists(/home/jasonwar/public_html/_gallery/g2data/cache/module/core/0/0/0.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/core/module.inc)
Trying to load core version. If you see an error like table Xxx doesn't
exist here, that's OK.
Can't load core version -- assuming that the core needs installation
opendir(/home/jasonwar/public_html/_gallery/modules/core/classes/GalleryStorage/../../../../modules/core/classes/GalleryStorage/DatabaseStorage/schema/platform/mysql)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
readdir(Resource id #47)
closedir(Resource id #47)
--------------------------------------------------------------------------------
(mysql): SHOW TABLES
--------------------------------------------------------------------------------

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

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

Table GalleryAlbumItem: missing entry in Schema table
Table GalleryAnimationItem: missing entry in Schema table
Table GalleryChildEntity: missing entry in Schema table
Table GalleryDataItem: missing entry in Schema table
Table GalleryDerivative: missing entry in Schema table
Table GalleryDerivativeImage: missing entry in Schema table
Table GalleryDerivativePreferencesMap: missing entry in Schema table
Table GalleryDescendentCountsMap: missing entry in Schema table
Table GalleryEntity: missing entry in Schema table
Table GalleryFileSystemEntity: missing entry in Schema table
Table GalleryGroup: missing entry in Schema table
Table GalleryItem: missing entry in Schema table
Table GalleryMovieItem: missing entry in Schema table
Table GalleryItemAttributesMap: missing entry in Schema table
Table GalleryItemPropertiesMap: missing entry in Schema table
Table GalleryPermissionMap: missing entry in Schema table
Table GalleryPermissionSetMap: missing entry in Schema table
Table GalleryPhotoItem: missing entry in Schema table
Table GalleryPluginMap: missing entry in Schema table
Table GalleryPluginParameterMap: missing entry in Schema table
Table GalleryToolkitOperationMap: missing entry in Schema table
Table GalleryToolkitOperationMimeTypeMap: missing entry in Schema table
Table GalleryToolkitOperationParameterMap: missing entry in Schema table
Table GalleryToolkitPropertyMap: missing entry in Schema table
Table GalleryToolkitPropertyMimeTypeMap: missing entry in Schema table
Table GalleryUnknownItem: missing entry in Schema table
Table GalleryUser: missing entry in Schema table
Table GalleryUserGroupMap: missing entry in Schema table
mysql error: [1062: Duplicate entry 'module-core-0-permissions.directory'
for key 1] in EXECUTE("INSERT INTO g2_PluginParameterMap (g_pluginType,
g_pluginId, g_itemId, g_parameterName, g_parameterValue) VALUES ('module',
'core', 0, 'permissions.directory', '0755')")

--------------------------------------------------------------------------------
(mysql): INSERT INTO g2_PluginParameterMap (g_pluginType, g_pluginId,
g_itemId, g_parameterName, g_parameterValue) VALUES ('module', 'core',
0, 'permissions.directory', '0755')
--------------------------------------------------------------------------------
1062: Duplicate entry 'module-core-0-permissions.directory' for key 1

adodb_mysql._execute(INSERT INTO g2_PluginParameterMap
(g_pluginType, g_pluginId, g_i...) %
line 810, file: adodb.inc.php

adodb_mysql.execute(INSERT INTO
g2_PluginParameterMap (g_pluginType, g_pluginId, g_i...,
Array[5]) % line 779, file: DatabaseStorage.class
mysqldatabasestorage.addmapentry(GalleryPluginParameterMap,
Array[5]) % line 261, file: GalleryStorage.class
gallerystorage.addmapentry(GalleryPluginParameterMap,
Array[5]) % line 124, file: GalleryPluginParameterMap.inc
gallerypluginparametermap.addmapentry(Array[5]) % line 386, file: GalleryPluginHelper_medium.class

realpath(/home/jasonwar/public_html/_gallery/modules/core/classes/../../../)
--------------------------------------------------------------------------------
(mysql):
SELECT
g2_PluginMap.g_pluginId,
g2_PluginMap.g_active
FROM
g2_PluginMap
WHERE
g2_PluginMap.g_pluginType = 'module'

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

opendir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/)
readdir(Resource id #56)
readdir(Resource id #56)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/cart)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/cart/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/comment)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/comment/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/core)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/core/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/customfield)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/customfield/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/debug)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/debug/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/exif)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/exif/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/ffmpeg)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/ffmpeg/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/gd)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/gd/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imageblock)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imageblock/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imageframe)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imageframe/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imagemagick)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imagemagick/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/members)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/members/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/migrate)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/migrate/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/netpbm)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/netpbm/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/nokiaupload)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/nokiaupload/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/panorama)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/panorama/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/photoaccess)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/photoaccess/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/register)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/register/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/remote)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/remote/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/search)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/search/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/slideshow)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/slideshow/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/squarethumb)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/squarethumb/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/thumbnail)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/thumbnail/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/uploadapplet)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/uploadapplet/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/useralbum)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/useralbum/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/watermark)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/watermark/module.inc)
readdir(Resource id #56)
is_dir(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/zipcart)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/zipcart/module.inc)
readdir(Resource id #56)
closedir(Resource id #56)
Plugin newitems no longer installed
Plugin randomhighlight no longer installed
Plugin thumbpage no longer installed
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/customfield/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/debug/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/exif/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/gd/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imageframe/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/imagemagick/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/migrate/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/panorama/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/remote/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/search/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/slideshow/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/uploadapplet/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/core/classes/helpers/../../../../modules/watermark/module.inc)
file_exists(/home/jasonwar/public_html/_gallery/modules/debug/classes/DebugStatusFormatter.class)
file_exists(/home/jasonwar/public_html/_gallery/g2data/smarty/templates_c/%%345163252)
is_dir(/home/jasonwar/public_html/_gallery/g2data/smarty/templates_c/%%345163252)
file_exists(/home/jasonwar/public_html/_gallery/g2data/smarty/templates_c/%%345163252)
is_writeable(/home/jasonwar/public_html/_gallery/g2data/smarty/templates_c/%%345163252)
file_exists(/home/jasonwar/public_html/_gallery/g2data/smarty/templates_c/%%345163252/v_2)
file_exists(/home/jasonwar/public_html/_gallery/modules/debug/classes/../templates/DebugStatusFormatter.tpl.local)
stat(/home/jasonwar/public_html/_gallery/modules/debug/classes/../templates/DebugStatusFormatter.tpl)
realpath(/home/jasonwar/public_html/_gallery/modules/core/classes/../../..)
Binding text domain: modules_debug ->
/home/jasonwar/public_html/_gallery/modules/debug/locale

----

Gallery URL (optional):www.jasonwardphotography.com/_gallery
Gallery version:alpha 4
Webserver (with version):Apache 1.3.33 (Unix)
Datatabase (with version):PHP 4.3.9
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:xp
Web browser/version:ie 6

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-13 02:02

you need to clear or recreate your database to do a clean install..

 
orangemozzie

Joined: 2004-06-23
Posts: 8
Posted: Thu, 2005-01-13 06:30

I have done that. Now i get this error on gallery/main.php

Error (ERROR_BAD_PARAMETER)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 51 (gallerystatus::error)
in modules/core/classes/GalleryCoreApi.class at line 1934 (galleryentityhelper_simple::loadentitiesbyid)
in init.php at line 143 (gallerycoreapi::loadentitiesbyid)
in main.php at line 124
in main.php at line 47
in main.php at line 40

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-13 06:51

i suggest retrying with a recent nightly snapshot

 
orangemozzie

Joined: 2004-06-23
Posts: 8
Posted: Thu, 2005-01-13 07:17

it works now

thank you