I get this error when I get done migrating my database from gallery1. I got a good idea on where the missing part is. but there is not way to just delete that area of the gallery to reget the images. and Also when I try to use Gallery Remote it can't connect even though I have the module for remote activated.
Error (ERROR_MISSING_OBJECT): Missing object for 6
in file modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1674 (gallerystatus::error)
in file modules/core/classes/GalleryStorage/DatabaseStorage.class at line 306 (mysqldatabasestorage::_identifyentities)
in file modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 77 (mysqldatabasestorage::loadentities)
in file modules/core/classes/GalleryCoreApi.class at line 1883 (galleryentityhelper_simple::loadentitiesbyid)
in file layouts/matrix/layout.inc at line 422 (gallerycoreapi::loadentitiesbyid)
in file layouts/matrix/layout.inc at line 122 (matrixlayout::_loadalbumtemplate)
in file modules/core/ShowItem.inc at line 98 (matrixlayout::loadtemplate)
in file modules/core/classes/GalleryView.class at line 213 (showitemview::loadtemplate)
in file main.php at line 260 (showitemview::doloadtemplate)
in file main.php at line 24
Posts: 974
Can you give me a description of what happened when you were actually attempting your migration? Did you get any errors during that process?
Posts: 5
I don't remember seeing any errors when I was running the migration utility. but I just got a feeling that it didn't copy all of the pictures over to the new album directory when I did that. is there a way I can just delete the one directory out of gallery and see if that is where it is?
Posts: 974
I think that I found this answer to this, but I'm not sure. I fixed a big bug that was causing a bunch of strange behaviors - including possibly this one.
Would you mind trying the import again? Would you mind sharing the url of the results with me?
Thank you for your help!
Posts: 5
do you want me to whip the slate clean and start fresh? and then try the import again?
Posts: 974
Yep, that's the basic idea.
I update the code but keep my config.php, then delete my gallery data, drop the G2 database, add a new G2 database, and then visit the setup page again. I sometimes do this a few times a night.
Until we go beta, or at least alpha, you might have to do this from time to time. Probably not more than once in a while.
Posts: 5
ok, well.. I deleted everything in the gallery dir and redownloaded it with cvs and did the migration and it worked fine. I was just wondering where I can get a compatible gallery remote with the g2?
Posts: 8601
I think you can go to gallery2/setup/test/index.php and execute the ReInitializeGallery test to do the same more easily..
Posts: 974
I'm pretty sure that you can, but I have an update script that does it for me (I just have to enter passwords) and then I know that it will work no matter what.
Posts: 11
Actually, I have the same error, but only on one single page on a sub-album ...
I suspect the cause is a corrupted image, but I'm not sure.
I'll try the latest build and see it is goes away.
Posts: 7985
Your error is actually completely different (though it's also a MISSING_OBJECT error). If you put gallery into buffered debug mode (edit your config.php to do this) you will get a more detailed error about what's going wrong in the database layer. If you can grab that and post it here, we can probably sort out what's going on.
Posts: 11
Sure, cheers...
With debug true the error message for line 391 appears on every page.
With the default setting, the only problems visible are in album 8, page 12.
Anyway, here you go:
Posts: 8601
Malachim, probably bharat was asking for the debug output for album 8, page 12.. but just from your error message it looks like you have a resized derivative that is missing in the db. Try doing Edit Album for that album and rebuilding the resized images (there's a checkbox for that).
Posts: 11
The error seens to lie with the option to ' Recreate resized images '
It includes this section to the top of the errors:
The actual page, with debug, offers this lot:
The main error appears to be in this line:
file_exists(/home/shellrick/public_html/gallery/modules/core/classes/../../../modules/core/ShowItem.inc)
[1095687231] can't guarantee 5 -- extending!
Posts: 7985
I'm suspicious about this bit:
I'm confused as to why the _linkedEntity property would be empty. Since this happened pretty early on, it's an indicator that perhaps you have an incompatible database schema. Did you upgrade your code without reinstalling your data from scratch? That might cause both of the problems that you're seeing now.
The "can't guarantee 5 -- extending" message is fine. It just means that Gallery was taking too long and realized that it needed to reset the time limit. (When the time limit expires, PHP kills your script so you have to let it know that you're still alive and kicking).
Can you verify that this happens with a clean build with that same image? From your original stack trace it appeared to be from a panorama related operation...
Posts: 8601
Panorama module was trying to load the derivatives for the item (while checking the image width to see if it should add the "view panorama" item link)..
Posts: 11
Hi Bharat,
No, straight build from (a late August) Alpha.
I was going to update with the nightly rebuilds but never got round to it.
For panorama, I have no idea if he's tried this.
Personally I'd have wiped and reinstalled but what's the point in playing with Alpha software if you don't chase all these bugs, eh
I'll try a rebuilt and see what happens.
~ Paul
Posts: 7985
Any word?
Posts: 11
I've reinstalled the lasted builds, tried deleting the album, everything I can thing of.
Something has good ugly pear shaped and I can't even delete the (sub) album.
I keep getting this message:
:o The section in question did have 150 pictures, 'deleting' the album removed all the ones that were working fine and left what I assume are the troublesome photos.
Posts: 7985
Malachim, your new stack trace is different from your last one so it would appear that you're having a different problem now. So now I'm not sure what you problem is at all. Can we start over again? Can you install the latest snapshot and see if you can reproduce this problem at all, and if so tell us the exact steps and which version of the code to reproduce it with? If so, that will help greatly. Thanks!
Posts: 48
Hello,
I seem to have this problem when entering the galery for the first time after configuration.
Error (ERROR_MISSING_OBJECT)
in F:\wwwroot\actionphotos\gallery2\modules\core\classes\GalleryUrlGenerator.class at line 278 (gallerystatus::error)
in F:\wwwroot\actionphotos\gallery2\main.php at line 95 (galleryurlgenerator::parsecurrenturl)
in F:\wwwroot\actionphotos\gallery2\main.php at line 47
in F:\wwwroot\actionphotos\gallery2\main.php at line 40
file_exists(F:\g2data\sessions\bfa94c92e7357b4011bfe5b73df9c8a7)
file_exists(F:\g2data\cache\module/core/0/0/0.inc)
realpath(F:\wwwroot\actionphotos\gallery2\modules\core\classes/../../../)
file_exists(F:\g2data\cache\module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc)
file_exists(F:\wwwroot\actionphotos\gallery2\modules\core\classes\helpers/../../../../modules/core/module.inc)
Posts: 8601
jashby, there's already a topic about your error, here