hi folks,
i am refering to this thread: http://gallery.menalto.com/node/62767
after trying to tweak thy database i get the following eror:
Error Detail -
Error (ERROR_MISSING_OBJECT) : Missing object for 113
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1887 (gallerycoreapi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 98 (gallerystorageextras::_identifyentities)
* in modules/core/classes/GalleryStorage.class at line 298 (gallerystorageextras::loadentities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (mysqlstorage::loadentities)
* in modules/core/classes/GalleryCoreApi.class at line 2251 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/watermark/WatermarkOption.inc at line 96 (gallerycoreapi::loadentitiesbyid)
* in modules/core/ItemAdd.inc at line 146 (watermarkoption::handlerequestafteradd)
* in main.php at line 231 (itemaddcontroller::handlerequest)
* in main.php at line 94
* in main.php at line 83
System Information
Gallery version 2.2.1
PHP version 4.4.6 apache
Webserver Apache
Database mysqlt 4.1.21-standard-log
Toolkits ImageMagick
Operating system Linux goofy.cirtexhosting.com 2.6.9-55.ELsmp #1 SMP Wed May 2 14:28:44 EDT 2007 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
obviously the only thing that happens, is that no watermarks are applied at all anymore. but i cannot interprete what the error code says. if anybody can, i would be very pleased if he or she lets me know how to get the watermarks back. also tell me if you need further information.
thanks!
Posts: 21
if this is the wrong place or I didn´t see an important faq entry i´m sorry but i really do not know how to solve it on my own without screwing up the db.
anne
Posts: 21
update: nothing new, just my resignation is rising. i don´t want to bother anyone but i dont get the error...
in the faq i found the thing about debug mode.
here´s the link to the text-file i created:
http://goofy.cirtexhosting.com/~qualsde/gallery2/debug_result.txt
Posts: 32509
Error (ERROR_MISSING_OBJECT) : Missing object for 113
canned response:
DATA INTEGRITY:
Error (ERROR_MISSING_OBJECT) : Missing object for ...
some part of your g2 database isn't 100% ok, the data integrity is a little corrupted.
reason: unknown. fix: it's not easy, but you can fix the database manually, someone else had the same problem and i gave a few instructions:
http://gallery.menalto.com/node/57319#comment-209935
http://gallery.menalto.com/node/32741
http://gallery.menalto.com/node/38916
Posts: 21
thanks for your answer, i already read in some of the threads and i´m about to work on it. the first thing i noticed was something in phpmyadmin internface:
in table
g2_AccessMap
Indexes: Documentation Keyname Type Cardinality Action Field
PRIMARY PRIMARY 60 Edit Drop g_accessListId
g_userOrGroupId
g2_AccessMap_83732 INDEX 30 Edit Drop g_accessListId
g2_AccessMap_48775 INDEX 4 Edit Drop g_userOrGroupId
g2_AccessMap_18058 INDEX 5 Edit Drop g_permission
PRIMARY and INDEX keys should not both be set for column `g_accessListId`
and then in table g2_FactoryMap
No index defined!
in table g2_NotificationSubscriptions
More than one INDEX key was created for column `g_eventClass`
in table g2_PluginParameterMap
UNIQUE and INDEX keys should not both be set for column `g_pluginType`
and
More than one INDEX key was created for column `g_pluginType`
in table g2_RatingMap
More than one INDEX key was created for column `g_itemId`
in table g2_SequenceId
No index defined!
in table g2_SequenceLock
No index defined!
in table g2_TkPropertyMap
No index defined!
and in table g2_WebDavLockMap also
No index defined!
i have the feeling it might be something with the indexes?! although i have no idea in which way...
because i have no items in my database. i´m trying to set up everything, so there´s only one photo with which i´m trying out everything.
it mus be something with the watermark table, because before i changed manually everthing worked out fine.
i´ve created another debug output file which was created when i tried to upload the pic, the watermark should have been created but wasn´t. the pic itself is intact.
http://goofy.cirtexhosting.com/~qualsde/gallery2/debug_result_upload.txt
Posts: 32509
> i have the feeling it might be something with the indexes?!
no.
(the warnings about missing and duplicate indexes by phpmyadmin can be ignored)
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 21
okay, this is good to know. i mean there can be no problem with derivates or items for i have none of them. where then shall i search for the mistake? the thumbnails are created but not the watermarks, so this is very strange.
after deleting the cache i get this:
[...]
readdir(Resource id #113)
is_dir(/home/qualsde/public_html/gallery2/g2data/cache/module/watermark)
recursiveRmdir(/home/qualsde/public_html/gallery2/g2data/cache/module/watermark)
opendir(/home/qualsde/public_html/gallery2/g2data/cache/module/watermark/)
[...]
systeminformation this:
integrity check this:
what does that mean no row? can insert something to fix it?
Posts: 32509
look in these tables for g_id = 113
g2_Entity
g2_ChildEntity
g2_WatermarkImage
g2_Derivative
g2_DerivativeImage
and also for derivativeSourceId 113 in
g2_Derivative
and parentId = 113 in
g2_ChildEntity
and ownerId = 113 in
g2_Item
i guess you'll find something in either g2_Entity or in WatermarkImage.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 21
ok and if i find, what do i do then?
also, i have another problem: only if you have time can you have a look at my page and tell me what this is:
http://goofy.cirtexhosting.com/~qualsde/gallery2/main.php
if i scroll down the page it seems endless and there are lines across the screen, wit FF and IE both the same or shall i make a new thread for this one?
Posts: 32509
> ok and if i find, what do i do then?
depends on what you find. repair the entity.
@endless page:
it's black text on black background, thus you don^t see it. but the debug output is there.
anyhow, please take a look at the above canned response / try to find where the entity with id 113 is coming from and what's wrong with it.
--------------
Documentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 21
i just wanted to say that i don´t have the problem anymore although i don´t know what it was about. i think i have to learn more about mysql because searching didn´t work the way i thought it would. thanks a lot anyway!!