"Maintenance: Build all thumbnails/resizes" fails at picture 3220

Ralf-Schlieper

Joined: 2005-09-25
Posts: 42
Posted: Sun, 2005-09-25 11:04

The maintenance-tool:: "Build all thumbnails/resizes" always fails at picture 3220:

-----------ERROR
Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 378 (gallerystatus::error)
* in modules/core/classes/GalleryStorage.class at line 118 (mysqldatabasestorage::loadentities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (gallerystorage::loadentities)
* in modules/core/classes/GalleryCoreApi.class at line 2186 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 673 (gallerycoreapi::loadentitiesbyid)
* in modules/core/classes/GalleryCoreApi.class at line 843 (galleryderivativehelper_advanced::rebuildcache)
* in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 66 (gallerycoreapi::rebuildderivativecache)
* in modules/core/classes/GalleryCoreApi.class at line 830 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
* in modules/core/classes/BuildDerivativesTask.class at line 92 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
* in modules/core/AdminMaintenance.inc at line 104 (buildderivativestask::run)
* in ??? at line 0 (adminmaintenancecontroller::runtask)
* in modules/core/classes/GalleryTemplateAdapter.class at line 758
* in /homepages/5/d11843629/htdocs/gallery2data/smarty/templates_c/%%4076479946/%%3A^3A8^3A818B59%%theme.tpl.php at line 94 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1251
* in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 228 (gallerysmarty::fetch)
* in main.php at line 321 (gallerytemplate::display)
* in main.php at line 87
* in main.php at line 80

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


Gallery-Version = 2.0 Kern 1.0.0
PHP-Version = 4.3.10 cgi
Webserver = Apache/1.3.33 (Unix)
Datenbank = mysql 4.0.20-standard
Werkzeuge = ArchiveUpload, Gd, Thumbnail, NetPBM, Exif, ImageMagick, SquareThumb
Betriebssystem = Linux infong 2.4 #1 SMP Mon Aug 9 10:21:08 CEST 2004 i686 unknown
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.7.11) Gecko/20050728

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-09-25 11:09

canned response...

Error (ERROR_MISSING_OBJECT) : Missing object for 3220

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/32741

another alternative is to ignore this small data corruption (this could lead to problems in the future though). you can ignore it by changing your current g2 version manually in versions.dat and the db table gf2_pluginparametermap row module core _version. then go to yourgalleryurl/lib/support/ and flush the db cache.

 
Ralf-Schlieper

Joined: 2005-09-25
Posts: 42
Posted: Mon, 2005-09-26 18:45
valiant wrote:
canned response...

Error (ERROR_MISSING_OBJECT) : Missing object for 3220

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/32741

Thanks, Valiant: I would like to follow your instructions, but I don´t know, how to integrate the Code in the class-File:

-----------Your instructions
activate buffered debug mode and edit modules/core/classes/GalleryStorage/DatabaseStorage.class
directly before the return statement on line 378 add:

$gallery->debug($query);
$gallery->debug('ids: ' . implode(', ', $targetIds));

and run the build task again. in the debug output, at the end, you should see the output we're looking for.
----------------------------------

Here is my code of "DatabaseStorage.class"

----------------
/* Execute the query */
$GLOBALS['ADODB_FETCH_MODE'] = ADODB_FETCH_NUM;

$this->_traceStart();
$recordSet = $this->_db->Execute($query, $targetIds);
$this->_traceStop();
if ($recordSet) {
if ($recordSet->RecordCount() != sizeof($targetIds)) {
return array(GalleryStatus::error(ERROR_MISSING_OBJECT, __FILE__, __LINE__),
null);
}

/* Process all the results */
----------------

Perhaps you could quote the right code with the debug-integration?

Thanks a lot.

Ralf

Please visit my gallery if you are interested in good B/W-photos:
http://www.fotogemeinschaft.de

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-09-26 19:24

please check the other topic again. i had to fix some html entity conversions that corrupted the message in our site migration to drupal.