[Resolved] Re-install failing at Step 8

almost

Joined: 2005-01-12
Posts: 103
Posted: Sat, 2005-01-29 02:53

Upgrading G2 from a couple of weeks ago with package dated 1-28-05, Step 8 gives File Not Found standard web notice instead of the expected Installer page. All I knowe to look for is there, where it should be.

I copied 1-28-05 over pre-existing version (about 1-14-05), then ran install/index.php. Kept original database in place, and that step appear to proceed ok.

Must I start all over, database and all?

Accessing gallery/main.php yields the following:
An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_MISSING_OBJECT) : RandomHighlightDerivativeImage
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1633 (gallerystatus::error)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 299 (mysqldatabasestorage::_describeentitymembers)
in modules/core/classes/GalleryStorage.class at line 113 (mysqldatabasestorage::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 89 (gallerystorage::loadentities)
in modules/core/classes/GalleryCoreApi.class at line 2101 (galleryentityhelper_simple::loadentitiesbyid)
in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 199 (gallerycoreapi::loadentitiesbyid)
in modules/core/classes/helpers/GalleryDerivativeHelper_medium.class at line 56 (galleryderivativehelper_medium::_loadderivatives)
in modules/core/classes/GalleryCoreApi.class at line 796 (galleryderivativehelper_medium::fetchthumbnailsbyitemids)
in modules/core/module.inc at line 84 (gallerycoreapi::fetchthumbnailsbyitemids)
in modules/core/classes/GalleryLayout.class at line 530 (coremodule::getitemlinks)
in layouts/matrix/layout.inc at line 273 (matrixlayout::loadlayouttemplate)
in layouts/matrix/layout.inc at line 150 (matrixlayout::_loadalbumtemplate)
in modules/core/ShowItem.inc at line 124 (matrixlayout::loadtemplate)
in modules/core/classes/GalleryView.class at line 246 (showitemview::loadtemplate)
in main.php at line 257 (showitemview::doloadtemplate)
in main.php at line 46
in main.php at line 39


Gallery URL (optional):yantisgetaway.com/gallery/main.php
Gallery version:2.0-alpha-4+ (dated 1-28-05)
Webserver (with version):Apache/2.0.48 (Fedora)
Datatabase (with version):mysql 3.23.58
PHP version (eg 4.2.1):4.3.4 cgi
phpinfo URL (optional):
Graphics Toolkit(s):GD, Imagemajick, NetPBM
Operating system:Linux
Web browser/version:MSIE 6.0

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-01-29 03:23

get tomorrow's snapshot and try again.. that bug was just fixed and maybe didn't make the jan28 snapshot.

 
almost

Joined: 2005-01-12
Posts: 103
Posted: Sun, 2005-01-30 00:44

Installed the Jan 29 snapshot and still getting the 404 at Step 8. Anything I can do in lieu of waiting for a future build?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-01-30 03:17

i was referring to the upgrading bug being fixed... don't know what 404 at Step 8 means.. you'll have to give more information.

 
almost

Joined: 2005-01-12
Posts: 103
Posted: Sun, 2005-01-30 13:28

When upgrading from a prior snapshot (about 1-14-05), install appears successful until Step 8. Executing step 8 I get "file not found" (404) instead of the expected Gallery install page. I got this after installing the 1-28 and 1-29 snapshots - my first attempts at refreshing the original install.

I followed the new-install path after first trying Upgrade, which appeared to run successfully, but gives me

Quote:
Fatal error: Call to undefined function: head() in /var/www/html/gallery/main.php on line 414

when trying to access the gallery. (Looks like I've given it an invalid password; would that not be caught during Upgrade?).

 
almost

Joined: 2005-01-12
Posts: 103
Posted: Sun, 2005-01-30 13:47

Immediate debug infor from accessing main.php after updating:

Quote:
file_exists(/var/www/html/gallery/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) Unimplemented: GalleryUrlGenerator file_exists(/var/www/html/gallery/g2data/sessions/a093a22396d4a6adb228a9ceee6ba6f2) clearstatcache() filesize(/var/www/html/gallery/g2data/sessions/a093a22396d4a6adb228a9ceee6ba6f2) fopen(/var/www/html/gallery/g2data/sessions/a093a22396d4a6adb228a9ceee6ba6f2, rb, 0) flock(Resource id #28, 6, ) fread(Resource id #28, 13463) flock(Resource id #28, 3, ) fclose(Resource id #28) file_exists(/var/www/html/gallery/g2data/cache/module/core/0/0/0.inc) Initializing navigation file_exists(/var/www/html/gallery/modules/core/classes/helpers/../../../../modules/core/module.inc) realpath(/var/www/html/gallery/modules/core/classes/../../..) Binding text domain: modules_core -> /var/www/html/gallery/modules/core/locale file_exists(/var/www/html/gallery/g2data//versions.dat) file(/var/www/html/gallery/g2data//versions.dat, ) [1107092570] can't guarantee 5 -- extending! file_exists(/var/www/html/gallery/g2data/cache/entity/0/0/5.inc) file_exists(/var/www/html/gallery/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) file_exists(/var/www/html/gallery/modules/core/classes/../../../modules/core/ShowItem.inc) file_exists(/var/www/html/gallery/modules/core/classes/../../../modules/core/ShowItem.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/0/6.inc) realpath(/var/www/html/gallery/modules/core/classes/../../..)
--------------------------------------------------------------------------------
(mysql): UPDATE g2_ItemAttributesMap SET g_viewCount = g2_ItemAttributesMap.g_viewCount + 1 WHERE g_itemId=6
--------------------------------------------------------------------------------
file_exists(/var/www/html/gallery/modules/core/classes/helpers/../../../../layouts/matrix/layout.inc) file_exists(/var/www/html/gallery/g2data/cache/layout/matrix/0/0/0.inc) file_exists(/var/www/html/gallery/g2data/cache/layout/matrix/0/0/6.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_PermissionSetMap.g_module, g2_PermissionSetMap.g_permission, g2_PermissionSetMap.g_description, g2_PermissionSetMap.g_bits, g2_PermissionSetMap.g_flags FROM g2_PermissionSetMap
--------------------------------------------------------------------------------
realpath(/var/www/html/gallery/modules/core/classes/../../..) Binding text domain: modules_comment -> /var/www/html/gallery/modules/comment/locale
--------------------------------------------------------------------------------
(mysql): SELECT g2_Group.g_id, g2_Group.g_groupName FROM g2_UserGroupMap, g2_Group WHERE g2_Group.g_id = g2_UserGroupMap.g_groupId AND g2_UserGroupMap.g_userId = 5 ORDER BY g2_Group.g_groupName LIMIT 18446744073709551615
--------------------------------------------------------------------------------
Array ( [limit] => Array ( [count] => 12 [offset] => 0 ) )
--------------------------------------------------------------------------------
(mysql): SELECT g2_ChildEntity.g_id , g2_ItemAttributesMap.g_orderWeight FROM g2_ChildEntity, g2_Item, g2_PermissionMap, g2_ItemAttributesMap WHERE g2_ChildEntity.g_parentId = 6 AND g2_ChildEntity.g_id = g2_Item.g_id AND (g2_PermissionMap.g_userId = 5 OR g2_PermissionMap.g_groupId IN (1, 3, 2)) AND g2_PermissionMap.g_permission & 1 = 1 AND g2_PermissionMap.g_itemId = g2_ChildEntity.g_id AND g2_ItemAttributesMap.g_itemId = g2_ChildEntity.g_id GROUP BY g2_ChildEntity.g_id , g2_ItemAttributesMap.g_orderWeight ORDER BY g2_ItemAttributesMap.g_orderWeight LIMIT 12
--------------------------------------------------------------------------------
file_exists(/var/www/html/gallery/g2data/cache/entity/0/2/29.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/3/30.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/8/83.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/1/7/171.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/1/8/184.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_PermissionMap.g_itemId, BIT_OR(g2_PermissionMap.g_permission) FROM g2_PermissionMap WHERE g2_PermissionMap.g_itemId IN (29, 30, 83, 171, 184) AND (g2_PermissionMap.g_userId = 5 OR g2_PermissionMap.g_groupId IN (1, 3, 2)) GROUP BY g2_PermissionMap.g_itemId
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_ItemAttributesMap.g_parentSequence FROM g2_ItemAttributesMap WHERE g2_ItemAttributesMap.g_itemId = 6
--------------------------------------------------------------------------------
file_exists(/var/www/html/gallery/g2data/cache/entity/0/0/8.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/2/28.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/0/9.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/1/7/172.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/1/8/183.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g2_ItemAttributesMap.g_itemId, g2_ItemAttributesMap.g_viewCount FROM g2_ItemAttributesMap WHERE g2_ItemAttributesMap.g_itemId IN (6, 29, 30, 83, 171, 184)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_ChildEntity.g_parentId, COUNT(DISTINCT g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_PermissionMap WHERE g2_ChildEntity.g_parentId IN (6, 29, 30, 83, 171, 184) AND g2_PermissionMap.g_itemId = g2_ChildEntity.g_id AND (g2_PermissionMap.g_userId = 5 OR g2_PermissionMap.g_groupId IN (1, 3, 2)) AND g2_PermissionMap.g_permission & 1 > 0 GROUP BY g2_ChildEntity.g_parentId
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_DescendentCountsMap.g_itemId, g2_DescendentCountsMap.g_descendentCount FROM g2_DescendentCountsMap WHERE g2_DescendentCountsMap.g_userId = 5 AND g2_DescendentCountsMap.g_itemId IN (6, 29, 30, 83, 171, 184)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_UserGroupMap.g_userId FROM g2_UserGroupMap WHERE g2_UserGroupMap.g_userId = 5 AND g2_UserGroupMap.g_groupId = '2' LIMIT 1
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
(mysql): SELECT g2_Derivative.g_id, g2_ChildEntity.g_parentId FROM g2_Derivative, g2_ChildEntity WHERE g2_Derivative.g_id = g2_ChildEntity.g_id AND g2_ChildEntity.g_parentId IN (6, 29, 30, 83, 171, 184) AND g2_Derivative.g_derivativeType IN (1) ORDER BY g2_Derivative.g_id ASC
--------------------------------------------------------------------------------
file_exists(/var/www/html/gallery/g2data/cache/entity/0/5/53.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/6/69.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/0/8/87.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/1/8/181.inc) file_exists(/var/www/html/gallery/g2data/cache/entity/1/8/187.inc)
--------------------------------------------------------------------------------
(mysql): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN ('53', '69', '87', '181', '187')
--------------------------------------------------------------------------------
Unimplemented: GalleryEntity, RandomHighlightDerivativeImage realpath(/var/www/html/gallery/modules/core/classes/../../..)
Fatal error: Call to undefined function: head() in /var/www/html/gallery/main.php on line 414

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-01-30 18:56

there is no step 8 in the upgrader, only in the installer.
if you have undefined function head() then perhaps you didn't upgrade all of the files.. function head() was recently added to modules/core/classes/GalleryTemplate.class

 
almost

Joined: 2005-01-12
Posts: 103
Posted: Mon, 2005-01-31 16:12

I must not have been clear. I have tried both Install and Upgrade, and have tried to show both results here - since both seem to hit the same stumbling block. Apparently you were correct that one (or more) modules had not been successfully uploaded. Last night I re-loaded using the 1-30 snapshot and my problem has disappeared.

Thanks for your help.