Errors after Upgrade (2.2.5 -> 2.3.1) [Missing object for xxxx]

bla.blub

Joined: 2010-08-30
Posts: 4
Posted: Mon, 2010-08-30 00:50

what i did:
Last week i upgraded my gallery2 2.2.5 -> 2.3.1:
maintance mode
uploaded files via ftp
opened gallery in browser -> no errors
deleted the suggested files which where named in the shell script
started all maintance actions
maintance mode deaktivated

Errors:


Error (ERROR_MISSING_OBJECT)in modules/core/DownloadItem.inc at line 76 (GalleryCoreApi::error)
in main.php at line 450 (DownloadItemView::renderImmediate)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[itemId] => 13
[serialNumber] => 28
[fileName] => Ausstellung
[view] => core.DownloadItem
)

and


Error (ERROR_BAD_PARAMETER) : malicious url in modules/core/DownloadItem.inc at line 98 (GalleryCoreApi::error)
in main.php at line 450 (DownloadItemView::renderImmediate)
in main.php at line 104
in main.php at line 88

Request variables: Array
(
[itemId] => 1704
[serialNumber] => 1
[fileName] => 07-Gute-Beute_r.jpg
[view] => core.DownloadItem
)

the gallery serves add picture server for many ebay and webshop products and since the upgrade i get some errors in the eventmanager

the pictures still exist as far as i can tell but the path (download) has changed.

Questions:

1. is this the normal error massage if an incorrect url was entered? {errors below}
2. can i change it download url back to its old destination (if its possible how?)
(because i don´t want to edit all the webshop and ebay products, change them all by hand + looking for the old addresse is also possible).

System:


Gallery-Version = 2.3.1 Kern 1.3.0.1
API = Core 7.54, Modul 3.9, Motiv 2.6, Eingebettet 1.5
PHP-Version = 5.2.14 cgi-fcgi
Webserver = Apache
Datenbank = mysqli 5.0.51a-24+lenny4, lock.system=flock
Werkzeuge = ArchiveUpload, ImageMagick, NetPBM, Gd
Beschleunigung = full/86400, full/86400
Betriebssystem = Linux {censored} 2.6.26-2-686 #1 SMP Wed May 12 21:56:10 UTC 2010 i686
Standard-Motiv = matrix
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41 Safari/534.3
Zeilen in der GalleryAccessMap Tabelle = 20
Zeilen in der GalleryAccessSubscriberMap Tabelle = 16389
Zeilen in der GalleryUser Tabelle = 2
Zeilen in der GalleryItem Tabelle = 16389
Zeilen in der GalleryAlbumItem Tabelle = 255
Zeilen in der GalleryCacheMap Tabelle = 2

thx in advance

i love your software, a glad gallery user :)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Mon, 2010-08-30 03:05

So you ran the upgrader?
yoursite.com/gallery2/upgrade/

do these errors persist? or was it a one time error?
can you visit these items?
yoursite.com/main.php?g2_itemId=13
yoursite.com/main.php?g2_itemId=1704

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bla.blub

Joined: 2010-08-30
Posts: 4
Posted: Mon, 2010-08-30 08:18

yes i ran the upgrade, and yes these items / links you posted work.

here an other example, which shows what i mean
****/gallery2/main.php/d/8395-1/21_Aufgehen_im_All.jpg (old one) -> **********/gallery2/main.php/d/8688-1/21_Aufgehen_im_All.jpg (new one)

maybe this one is more clear.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Mon, 2010-08-30 11:15
 
bla.blub

Joined: 2010-08-30
Posts: 4
Posted: Mon, 2010-08-30 11:49

new settings / rules are:
d/%itemId%-%serialNumber%/%fileName%

don´t know what the old setting where :/

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Mon, 2010-08-30 12:15

There was nothing in your upgrade that would have changed the itemId.
As you upload items to gallery, create users and build thumb/resizes gallery incrementally assigns them a unique id.
These ids are never repossessed or re-used.
So when you upload a photo and your settings indicate three resizes and a thumb, you'll have the parentId(the photo) and four usually consecutive ids for the derivatives.
If you rebuild your derivatives, gallery will only re-use the ids if the derivatives are the same, if you add a new resize, its id would not likely be consecutive to the rest of the parent's derivatives.

Quote:
****/gallery2/main.php/d/8395-1/21_Aufgehen_im_All.jpg (old one) -> **********/gallery2/main.php/d/8688-1/21_Aufgehen_im_All.jpg (new one)

I'm assuming those are derivatives and not the original photo.
The only way that itemId would change is if you had destroyed the derivative and re-built a new one.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
bla.blub

Joined: 2010-08-30
Posts: 4
Posted: Mon, 2010-08-30 15:33

ok, thx for the clearification and your help maybe one of the maintance action did that.

one last question :)

can i change the id´s in the db back by hand to the old one (phpmyadmin) without messing everything up? (what table´s are affected?)

i would look everyday at the eventmanger on the gallery and change the url if an error accours.

edit:
8395(old one) does not exists in Table: g2_Item (g_id) if this is the right place to look
8688(new one)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Mon, 2010-08-30 18:26

these ids exist in many places.

A script I recently wrote checks the ids in these tables, some of which are id and some itemId:

$tables = array('AccessSubscriberMap'=>'itemId','AlbumItem'=>'id','AnimationItem'=>'id','ChildEntity'=>'id',
                'ChildEntity'=>'parentId','DataItem'=>'id','Derivative'=>'derivativeSourceId','DerivativePrefsMap'=>'itemId',
                'DescendentCountsMap'=>'itemId','Entity'=>'id','FileSystemEntity'=>'id','ImageBlockCacheMap'=>'itemId','Item'=>'id',
                'ItemAttributesMap'=>'itemId','LinkItem'=>'id','MovieItem'=>'id','PhotoItem'=>'id','UnknownItem'=>'id','User'=>'id');

so the short answer is no.

It would be easier to use rewrite to redirect if there are only a few.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
morethanthesky

Joined: 2009-03-30
Posts: 5
Posted: Mon, 2010-08-30 18:49

I upgraded from 2.2 to 2.3.1

At the upgrade step 6 I was getting a blank screen. On a whim, I changed mysqli in config.php to mysql and then I would at least get a parsed page, even though it was an error "page not found". I changed debug to buffered and it outputted the text below. I don't even know where to begin. I am currently on php5.3 / mysql 5.0.77 This is a single install within its own domain. (http://gallery.georgetown.org)

The upgrader had said that everything was working correctly with the exception of a "warning" in the "file integrity" section that the following files were altered: modules/gd/classes/GdToolkit.class, GdToolkitHelper.class and files within themes/x_treme

In advance, I would like to thank you for your help. Its really appreciated.

I'm getting the following errors and don't know where to start:

Error

Item not found.

Back to the Gallery
Error Detail +
Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 167 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage.class at line 314 (GalleryStorageExtras::loadEntities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
* in modules/core/classes/GalleryCoreApi.class at line 2361 (GalleryEntityHelper_simple::loadEntitiesById)
* in init.inc at line 208 (GalleryCoreApi::loadEntitiesById)
* in main.php at line 197
* in main.php at line 104
* in main.php at line 88

Debug Output
file_exists(/var/www/html/gallery/g2data_eem2008/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) file_exists(/var/www/html/gallery/htdocs/modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class) getParameter modrewrite.galleryLocation for rewrite plugin file_exists(/var/www/html/gallery/g2data_eem2008/cache/module/rewrite/0/0/0.inc) getParameter shortUrls for rewrite plugin getParameter session.lifetime for core plugin file_exists(/var/www/html/gallery/g2data_eem2008/cache/module/core/0/0/0.inc) getParameter session.inactivityTimeout for core plugin (mysql): SET NAMES "utf8" (mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId AND g2_Schema.g_type = 'map' AND g2_PluginMap.g_active = 1 (mysql): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp, g_modificationTimestamp, g_data FROM g2_SessionMap WHERE g_id='3b15d6a2d640ad5e6a3001b2aaccc8d4' controller , view Loading plugin core Class not defined, trying to include it. file_exists(/var/www/html/gallery/htdocs/modules/core/module.inc) core plugin successfully instantiated file_exists(/var/www/html/gallery/g2data_eem2008/versions.dat) file(/var/www/html/gallery/g2data_eem2008/versions.dat, ) [1283193143] can't guarantee 5 -- extending! file_exists(/var/www/html/gallery/g2data_eem2008/cache/entity/0/0/5.inc) (mysql): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (5) (mysql): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId AND g2_Schema.g_type = 'entity' AND g2_PluginMap.g_active = 1 (mysql): SELECT g2_User.g_userName, g2_User.g_fullName, g2_User.g_hashedPassword, g2_User.g_email, g2_User.g_language, g2_User.g_locked, g2_Entity.g_id, g2_Entity.g_creationTimestamp, g2_Entity.g_isLinkable, g2_Entity.g_linkId, g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber, g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers FROM g2_User, g2_Entity WHERE g2_User.g_id IN (5) AND g2_Entity.g_id=g2_User.g_id file_exists(/var/www/html/gallery/htdocs/modules/httpauth/classes/HttpAuthPlugin.class) file_exists(/var/www/html/gallery/g2data_eem2008/cache/module/httpauth/0/0/0.inc) getParameter id.anonymousUser for core plugin file_exists(/var/www/html/gallery/g2data_eem2008/cache/entity/0/0/5.inc) (mysql): SELECT g2_User.g_userName, g2_User.g_fullName, g2_User.g_hashedPassword, g2_User.g_email, g2_User.g_language, g2_User.g_locked, g2_Entity.g_id, g2_Entity.g_creationTimestamp, g2_Entity.g_isLinkable, g2_Entity.g_linkId, g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber, g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers FROM g2_User, g2_Entity WHERE g2_User.g_id IN (5) AND g2_Entity.g_id=g2_User.g_id file_exists(/var/www/html/gallery/htdocs/modules/httpauth/module.inc) file_exists(/var/www/html/gallery/g2data_eem2008/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) getParameter default.theme for core plugin Loading plugin x_treme Class not defined, trying to include it. file_exists(/var/www/html/gallery/htdocs/themes/x_treme/theme.inc) x_treme plugin successfully instantiated Check the version of the x_treme plugin file_exists(/var/www/html/gallery/g2data_eem2008/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the x_treme plugin is ok Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok getParameter smarty.compile_check for core plugin getParameter id.adminGroup for core plugin (mysql): SELECT g_userId FROM g2_UserGroupMap WHERE g_userId=5 AND g_groupId=3 LIMIT 1 realpath(/var/www/html/gallery/htdocs/modules/core/classes/../../../) realpath(/var/www/html/gallery/htdocs/) getParameter id.rootAlbum for core plugin file_exists(/var/www/html/gallery/g2data_eem2008/cache/entity/0/0/7.inc) Loading plugin x_treme x_treme plugin successfully instantiated Check the version of the x_treme plugin The version of the x_treme plugin is ok file_exists(/var/www/html/gallery/g2data_eem2008/smarty/templates_c/%%3709062750/x_treme) is_dir(/var/www/html/gallery/g2data_eem2008/smarty/templates_c/%%3709062750/x_treme) file_exists(/var/www/html/gallery/g2data_eem2008/smarty/templates_c/%%3709062750/x_treme) is_writeable(/var/www/html/gallery/g2data_eem2008/smarty/templates_c/%%3709062750/x_treme) file_exists(/var/www/html/gallery/g2data_eem2008/smarty/templates_c/%%3709062750/x_treme/v_14) file_exists(/var/www/html/gallery/g2data_eem2008/cache/theme/_all/localUrlMap.txt) file_exists(/var/www/html/gallery/htdocs/lib/javascript/local/BlockToggle.js) file_exists(/var/www/html/gallery/htdocs/modules/core/../../themes/x_treme/local/theme.css) file_exists(/var/www/html/gallery/htdocs/themes/x_treme/local/theme.css)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Mon, 2010-08-30 20:15

@morethanthesky looks like you'll need to re-setup rewrite.
if you cannot get to your gallery admin use phpMyAdmin or similar and execute:

UPDATE g2_PluginMap SET g_active=0 WHERE g_pluginId='rewrite';
DELETE FROM g2_FactoryMap WHERE g_implModuleId='rewrite';

delete gallery.georgetown.org/.htaccess

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
morethanthesky

Joined: 2009-03-30
Posts: 5
Posted: Tue, 2010-08-31 13:17

Thank you suprsidr for taking time to help me. I can't tell you how appreciative I am for that.

Unfortunately, it didn't work, but I still want to thank you for your help.

-erin

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Tue, 2010-08-31 13:26

can you get to gallery.georgetown.org/lib/support and clear the caches

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6128
Posted: Tue, 2010-08-31 13:29

After you try that, you will have to enable debug in /config.php line ~135 change to $gallery->setDebug('buffered');
and paste the results into a txt file and attach to this forum - Please don't paste hundreds of lines of debug into any forum.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2