ORM Validation has failed for items model

Twilek
Twilek's picture

Joined: 2003-05-30
Posts: 73
Posted: Fri, 2010-01-29 20:32

Hi all,

when I last tried to access my gallery (latest git) most pictures wouldn´t show in Subfolders, the albums where still there. When clicking on pictures sometimes a 404 exception would be thrown, but in most another error would show "ORM_Validation_Exception [ Database Error ]: ORM Validation has failed for items model" (See attachment for full error)

I have tried to use the rescue module (latest git as well). The "Fixing internet adress" ends with the same error.
My gallery is virtually empty, does someone has an idea whats wrong???

Regards
Twilek

Update: I just noticed the other thread with the same error while importing G2 data. My install was fresh from a gallery3 beta version and has been updated via git since. I also ran the upgrader after every update

AttachmentSize
gallery.txt335.58 KB
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-01-29 23:03

I cannot even login after fresh install of last night's git

2010-01-29 14:43:54 -08:00 --- error: ORM_Validation_Exception [ 44 ]: ORM Validation has failed for users model
/usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/system/libraries/ORM_Validation_Exception.php [ 20 ]
#0 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('users', Object(Validation))
#1 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/modules/user/models/user.php(81): ORM_Core->validate(NULL)
#2 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/system/libraries/ORM.php(778): User_Model->validate()
#3 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/modules/user/models/user.php(103): ORM->save()
#5 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/modules/gallery/helpers/auth.php(36): User_Model->save()
#6 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/modules/gallery/controllers/login.php(75): auth_Core::login(Object(User_Model))
#7 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/modules/gallery/controllers/login.php(31): Login_Controller->_auth('login/auth_ajax')
#8 [internal function]: Login_Controller->auth_ajax()
#9 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Login_Controller), Array)
#10 [internal function]: Kohana_Core::instance(NULL)
#11 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#12 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#13 /usr/local/www/vhosts/mydomain.com/httpdocs/gallery3/index.php(90): require('/usr/local/www/...')
#14 {main}

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2010-01-30 14:30
 
Maerin

Joined: 2010-01-27
Posts: 29
Posted: Sat, 2010-01-30 15:39

For me still the same ORM Validation message at start of G2 import with git gallery3-a04d0d2 clean install.

 
Twilek
Twilek's picture

Joined: 2003-05-30
Posts: 73
Posted: Sat, 2010-01-30 16:20

After last git update things seem to be back to normal

Thanks

 
nkinkade

Joined: 2009-12-05
Posts: 37
Posted: Tue, 2010-02-02 05:01

I did a git pull from HEAD about an hour ago and now I'm seeing this too:

2010-02-01 20:54:44 -08:00 --- error: ORM Validation has failed for items model

 
nkinkade

Joined: 2009-12-05
Posts: 37
Posted: Wed, 2010-02-03 13:52

I just did a git pull from HEAD and the problem seems to have gone away. Looking over the commit log I can't see which commit may have fixed it. I just thought I'd post here to say that whatever was wrong *seems* to be fixed now.

 
harrymud

Joined: 2010-02-07
Posts: 6
Posted: Sun, 2010-02-07 14:14

i just did a fresh install from git and get the following error if i try to import from g2:

Quote:
2010-02-07 05:41:31 -08:00 --- error: exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /var/www/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /var/www/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /var/www/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /var/www/system/libraries/ORM.php(778): Item_Model->validate()
#3 /var/www/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /var/www/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /var/www/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /var/www/modules/g2_import/helpers/g2_import.php(391): Item_Model->save()
#7 /var/www/modules/g2_import/helpers/g2_import_task.php(133): g2_import_Core::import_album(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /var/www/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /var/www/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('7')
#11 [internal function]: Admin_Maintenance_Controller->run('7')
#12 /var/www/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /var/www/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /var/www/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /var/www/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /var/www/index.php(91): require('/var/www/applic...')
#19 {main}
2010-02-07 05:41:31 -08:00 --- error: Validation errors: Array
(
[sort_order] => invalid
)

 
leschek

Joined: 2006-07-29
Posts: 44
Posted: Mon, 2010-02-08 10:36

I have the very same problem with last GIT (gallery-gallery3-f9d00aa). I did fresh install of Gallery.

Here is log:

Quote:
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/xxxxxxx/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/xxxxxxx/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/xxxxxxx/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/xxxxxxx/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/xxxxxxx/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/xxxxxxx/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/xxxxxxx/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/xxxxxxx/public_html/gallery3/modules/g2_import/helpers/g2_import.php(391): Item_Model->save()
#7 /home/xxxxxxx/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(130): g2_import_Core::import_album(Array)
#8 /home/xxxxxxx/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/xxxxxxx/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/xxxxxxx/public_html/gallery3/modules/gallery/controllers/admin.php(54): Admin_Maintenance_Controller->run('4')
#11 [internal function]: Admin_Controller->__call('4')
#12 /home/xxxxxxx/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/xxxxxxx/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/xxxxxxx/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/xxxxxxx/public_html/gallery3/index.php(91): require('/home/xxxxxxx/...')
#16 {main}

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2010-02-08 16:42

just checking whether you really have the latest version. what's in your modules/g2_import/helpers/g2_import_task.php line 124-130?
this is what it's supposed to be (in git):

      case "albums":
        if (empty($queue)) {
          $g2_root_id = g2(GalleryCoreApi::getDefaultAlbumId());
          $tree = g2(GalleryCoreApi::fetchAlbumTree());
          $task->set("queue", $queue = array($g2_root_id => $tree));
        }
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2010-02-08 16:43

oh, and don't try "resume" of the g2_import task after the upgrade. start a new task.

 
leschek

Joined: 2006-07-29
Posts: 44
Posted: Tue, 2010-02-09 00:32

Here are the lines:

case "albums":
        if (empty($queue)) {
          $g2_root_id = g2(GalleryCoreApi::getDefaultAlbumId());
          $tree = g2(GalleryCoreApi::fetchAlbumTree());
          $task->set("queue", $queue = array($g2_root_id => $tree));
        }
        $log_message = g2_import::import_album($queue);
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2010-02-09 00:48

yes, that should be working.

what does your g2_maps database table contain? any entries for resource_type "album"?

(your g2_maps will have different entries, but i'm interested whether there's 1+ album entry in there, or if it fails on the first (=root) album.)

+----+-------+-------+-------------------------------------------------+---------------+
| id | g2_id | g3_id | g2_url                                          | resource_type |
+----+-------+-------+-------------------------------------------------+---------------+
|  1 |     4 |     1 | NULL                                            | group         | 
|  2 |     2 |     2 | NULL                                            | group         | 
|  3 |    44 |     3 | NULL                                            | group         | 
|  4 |     6 |     2 | NULL                                            | user          | 
|  5 |     5 |     1 | NULL                                            | group         | 
|  6 |     7 |     1 | main.php                                        | album         | 
|  7 |    29 |     9 | main.php?g2_itemId=29                           | album         | 
...
 
rhatguy

Joined: 2008-10-25
Posts: 17
Posted: Tue, 2010-02-09 02:37

I have a similar issue trying to perform a g2import on a new install of g3 just cloned off of git tonight. Error log is as follows

Task Import from Gallery 2 started (task id 1)
Group 'Everybody' was converted to 'Everybody'
Group 'Registered' was converted to 'Registered Users'
Group 'Admin' does not exist in Gallery 3, skipping
Loaded existing user: 'admin'.
Added user to group 'Everybody'.
Added user to group 'Registered Users'.
Added 'admin' flag to user
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for users model' in /storage/g3test/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /storage/g3test/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('users', Object(Validation))
#1 /storage/g3test/modules/user/models/user.php(81): ORM_Core->validate(NULL)
#2 /storage/g3test/system/libraries/ORM.php(778): User_Model->validate()
#3 /storage/g3test/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /storage/g3test/modules/user/models/user.php(98): ORM->save()
#5 /storage/g3test/modules/user/libraries/drivers/IdentityProvider/Gallery.php(47): User_Model->save()
#6 /storage/g3test/modules/gallery/libraries/IdentityProvider.php(178): IdentityProvider_Gallery_Driver->create_user('barefootbetsycu...', 'Kathy', '', NULL)
#7 /storage/g3test/modules/gallery/helpers/identity.php(157): IdentityProvider_Core->create_user('barefootbetsycu...', 'Kathy', '', NULL)
#8 /storage/g3test/modules/g2_import/helpers/g2_import.php(307): identity_Core::create_user('barefootbetsycu...', 'Kathy', '')
#9 /storage/g3test/modules/g2_import/helpers/g2_import_task.php(115): g2_import_Core::import_user(Array)
#10 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#11 /storage/g3test/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#12 /storage/g3test/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('1')
#13 [internal function]: Admin_Maintenance_Controller->run('1')
#14 /storage/g3test/modules/gallery/controllers/admin.php(54): call_user_func_array(Array, Array)
#15 [internal function]: Admin_Controller->__call('maintenance', Array)
#16 /storage/g3test/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#17 [internal function]: Kohana_Core::instance(NULL)
#18 /storage/g3test/system/core/Event.php(208): call_user_func_array(Array, Array)
#19 /storage/g3test/application/Bootstrap.php(67): Event_Core::run('system.execute')
#20 /storage/g3test/index.php(91): require('/storage/g3test...')
#21 {main}

mysql> select * from g2_maps;
+----+-------+-------+--------+---------------+
| id | g2_id | g3_id | g2_url | resource_type |
+----+-------+-------+--------+---------------+
| 1 | 4 | 1 | NULL | group |
| 2 | 2 | 2 | NULL | group |
| 3 | 6 | 2 | NULL | user |
+----+-------+-------+--------+---------------+
3 rows in set (0.00 sec)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2010-02-09 08:47

fixed some g2_import bugs related to validation:
http://github.com/gallery/gallery3/commit/42bc1279257268e2c68b5f4b06e62e95ca8228d4

please try again.

 
leschek

Joined: 2006-07-29
Posts: 44
Posted: Tue, 2010-02-09 09:00

Thank you Valiant. I got last GIT and import is working now.

 
harrymud

Joined: 2010-02-07
Posts: 6
Posted: Tue, 2010-02-09 11:56

i changed the sort order of all albums from "manual" to "creation date" and now the import works

is there a way to find out which album is causing troubles

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2010-02-09 18:20

manual sort order should import fine. maybe you had a 2 level sort order (sort with pre-sort)? those weren't handled correctly yet. i've just added a fix to handle those (although we throw away the 2nd leve sort order since G3 doesn't support that).

 
rhatguy

Joined: 2008-10-25
Posts: 17
Posted: Wed, 2010-02-10 15:26

valiant: I updated to the newest git yesterday and my issues with importing have been corrected. I was able to import my 8000+ pic (with over 8000 tags) g2 install into g3. Thanks!

 
harrymud

Joined: 2010-02-07
Posts: 6
Posted: Wed, 2010-02-10 20:15

i have these sort order types (g2_AlbumItem)

orderWeight
originationTimestamp
NULL

pathComponent
creationTimestamp
albumsFirst|creationTimestamp
albumsFirst|originationTimestamp

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2010-02-10 21:14

@harrymud:

i see. you're using 2 level sorting. and the first level sorting is "albumsFirst" which isn't supported in Gallery 3.

the import process should success. but it won't import the sort order in your case, since it's not supported. you shouldn't see any errors, assuming you're using the latest development version of Gallery 3.

 
harrymud

Joined: 2010-02-07
Posts: 6
Posted: Thu, 2010-02-11 07:52

The import in working now, but after 300 - 400 photos the import gets stalled. Which is not amusing if you want to import 36.000 photos :-)

the client and the gallery server are on the same subnet/switch so i don't think its due to an instable connection.
the exif and search modules are disabled

maybe some timing in apache or php ?
can you give me a hint where i should start to look ?
in the gallery var/logs there is no entry

thx

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2010-02-11 17:59

if you resume the task, does it stall immediately again, or how long does it take until it stalls again?

 
harrymud

Joined: 2010-02-07
Posts: 6
Posted: Thu, 2010-02-11 22:10

the import stalls exactly every 20 minutes

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2010-02-12 00:50

OK, that's expected :) (and not so great)

if you installed g3 anew, it would stall every 90 minutes. a bit nicer, but still... it's a security timeout thing, which we need to improve.

you can temporarily increase the timeout in admin -> settings -> advanced: admin area timeout. the value is the number of seconds. e.g. 86400 for 24 hours.

 
harrymud

Joined: 2010-02-07
Posts: 6
Posted: Fri, 2010-02-12 11:34

yippee, the import is currently running for 2h without any interruption

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Tue, 2010-02-23 14:14

I still have the issue with immediate dropping, using the current GIT taken today:

Task Import from Gallery 2 started (task id 6)
Group 'Admin' does not exist in Gallery 3, skipping
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for users model' in /path/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 path/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('users', Object(Validation))
#1 path/gallery3/modules/user/models/user.php(81): ORM_Core->validate(NULL)
#2 path/gallery3/system/libraries/ORM.php(778): User_Model->validate()
#3 path/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 path/gallery3/modules/user/models/user.php(98): ORM->save()
#5 path/gallery3/modules/user/libraries/drivers/IdentityProvider/Gallery.php(47): User_Model->save()
#6 path/gallery3/modules/gallery/libraries/IdentityProvider.php(183): IdentityProvider_Gallery_Driver->create_user('', '', NULL, 'unknown@unknown...')
#7 path/gallery3/modules/gallery/helpers/identity.php(157): IdentityProvider_Core->create_user('', '', NULL, 'unknown@unknown...')
#8 path/gallery3/modules/g2_import/helpers/g2_import.php(315): identity_Core::create_user('', '', NULL, 'unknown@unknown...')
#9 path/gallery3/modules/g2_import/helpers/g2_import_task.php(115): g2_import_Core::import_user(Array)
#10 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#11 path/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#12 path/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('6')
#13 [internal function]: Admin_Maintenance_Controller->run('6')
#14 path/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#15 [internal function]: Admin_Controller->__call('maintenance', Array)
#16 path/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#17 [internal function]: Kohana_Core::instance(NULL)
#18 path/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#19 path/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#20 path/gallery3/index.php(91): require('/path...')
#21 {main}

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2010-02-23 19:22

@davert:
do your g2 users have an email address? G3 users require an email address. i guess Bharat fixed something related in the import code last night.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Wed, 2010-02-24 14:13

valiant, I'll check. I just used the RC1 code and it didn't work. ... yes, they all have email addresses. validation's required.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Wed, 2010-02-24 14:14

D'oh! The very first user was completely blank! I filled in bogus data and WE'RE MOVING!!! Thanks!

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Thu, 2010-02-25 14:24

I'm getting this one now. I resumed the script after deleting a couple of troublesome (unsupported format) images and movies. Now it just zooms forward to:

User with id: 37 already imported, skipping
User with id: 12033 already imported, skipping
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /path/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /path/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /path/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /path/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /path/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /path/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /path/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /path/gallery3/modules/g2_import/helpers/g2_import.php(567): Item_Model->save()
#7 /path/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /path/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /path/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('15')
#11 [internal function]: Admin_Maintenance_Controller->run('15')
#12 /path/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /path/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /path/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /path/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /path/gallery3/index.php(91): require('/path...')
#19 {main}

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Thu, 2010-02-25 20:06

Does anyone have any ideas on what I can possibly do next? I already ran whatever maintenance I could on the gallery2 install. This stalls at the 4,000th photo or something like that, out of 5,000. If it told me what album the problem was in, it'd help. ... I checked logs and nothing helpful is there. I can't even figure out the order in which albums or photos are pulled in. Nor can I search for, say, .mov files in the gallyer2.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2010-02-25 20:44

@davert: I should have some time to look into this tonight. But without your data, it's going to be guesswork as to what's going wrong. We'll see...

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Fri, 2010-02-26 17:40

Thanks, valiant. If there is antyhing I can do, any sort of debugger I can enable, etc., just let me know. I wish I knew what it was failing on; that would help but it's not saying.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Fri, 2010-02-26 18:02

Update: I turned on debug mode in G2 and rebuild thumbnails, I get some errors - 83 of them ... one error is "realpath(/home/dave/public_html/gallery/modules/core/classes/../../../)
realpath(/home/dave/public_html/gallery/)

Error (ERROR_TOOLKIT_FAILURE) : Can't convert to unknown mime type:
image/jpeg in modules/imagemagick/classes/ImageMagickToolkit.class
at line 628 (GalleryCoreApi::error)
in modules/imagemagick/classes/ImageMagickToolkit.class at
line 363 (ImageMagickToolkit::_transformImage)
in modules/core/classes/GalleryDerivative.class at line 452
(ImageMagickToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274
(GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line
153 (GalleryDerivative::rebuildCache)
in ... (it goes on for a long time)"

I am trying again using GD intead of ImageMagick in case the issue has to do with the thumbnails and downsized versions. When that's done in an hour or two, I'll try once more... I did look at one of the photos that debugging indicated to be a problem and there was nothing wrong with it.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Fri, 2010-02-26 20:03

Valiant, I feel like a dang fool. I found the Integrity module for G2 and ran it. It says:

Failed to load entity ids: 4347, 4348, 4349, 4350, 4351, 4352, 4353, 4354, 4355, 4356, 4357, 4358, 4359, 4360, 4361, 4362, 4363, 4364, 4365, 4366, 4367, 4368, 4369, 4370, 4371, 4372, 4373, 4374, 4375, 4376, 4377, 4378, 4379, 4380, 4381, 4382, 4383, 4384, 4385, 4386, 4387, 4388, 4389, 4390, 4391, 4392, 4393, 4394, 4395, 4396, 4397, 4398, 4399, 4400, 4401, 4402, 4403, 4404, 4405, 4406, 4407, 4408, 4409, 4410, 4411, 4412, 4413, 4414, 4415, 4416, 4417, 4418, 4419, 4420, 4421
Orphaned data in table AccessMap with no row in AccessSubscriberMap table; ids: 19316, 23144, 23145, 23146, 23147, 23158, 23159, 23160, 23161, 23173, 23174, 23175, 23176, 23209, 23210, 23211, 23212, 23271, 23272, 23273, 23274, 23288, 23289, 23290, 23291, 23303, 23304, 23305, 23306, 23352, 23353, 23354, 23355, 23356, 23367, 23368, 23369, 23370, 23389, 23390, 23391, 23392, 23455, 23456, 23457, 23458, 23463, 23464, 23465, 23466, 23474, 23475, 23476, 23477, 23512, 23513, 23514, 23515, 23576, 23577, 23578, 23579, 23580, 23582, 23587, 23588, 23589, 23590, 23627, 23628, 23629, 23630, 23635, 23636, 23637, 23638, 23678, 23679, 23680, 23681, 23696, 23697, 23698, 23699, 23762, 23763, 23764, 23765, 23781, 23782, 23783, 23784, 23793, 23794, 23795, 23796, 23814, 23815, 23816, 23817, 23833, 23834, 23835, 23836, 23869, 23875, 23876, 23877, 23878, 23894, 23895, 23896, 23897, 23909, 23910, 23911, 23912, 23922, 23923, 23924, 23925, 23931, 23932, 23933, 23934, 24076, 24077, 24078, 24079, 24118, 24119, 24120, 24121, 24135, 24136, 24137, 24138, 24244, 24245, 24246, 24247, 24252, 24253, 24254, 24255, 24263, 24264, 24265, 24266, 24271, 24272, 24273, 24274, 24439, 24440, 24441, 24442, 24466, 24467, 24468, 24469, 24527, 24528, 24529, 24530, 24554, 24555, 24556, 24557, 24586, 24587, 24588, 24589, 24615, 24616, 24617, 24618, 24692, 24693, 24694, 24695, 24780, 24781, 24782, 24783, 24810, 24811, 24812, 24813, 24845, 24846, 24847, 24848, 24898, 24899, 24900, 24901, 25106, 25107, 25108, 25109, 25114, 25115, 25116, 25117, 25253, 25254, 25255, 25256

and then tells me a bunch of missing images.

Egads!

So I have my work cut out for me.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Fri, 2010-02-26 21:37

I wonder if the import module could be programmed to allow errors like missing images, paths with no connection, etc., and all these other database imperfections... I could spend six solid days trying to clean up the database...

 
giorgos
giorgos's picture

Joined: 2002-08-19
Posts: 115
Posted: Sun, 2010-02-28 14:51

Yesterday downloaded the RC1 in order to start the migration of my site. After imported all the users it stopped immediately with "ORM Validation has failed for items model" error. See below.
Any idea how to solve this?
Gallery3 is currently pointing to www.dailyalbum.net


Quote:
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /htdocs/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /htdocs/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /htdocs/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /htdocs/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /htdocs/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /htdocs/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /htdocs/gallery3/modules/g2_import/helpers/g2_import.php(412): Item_Model->save()
#7 /htdocs/gallery3/modules/g2_import/helpers/g2_import_task.php(130): g2_import_Core::import_album(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /htdocs/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /htdocs/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('6')
#11 [internal function]: Admin_Maintenance_Controller->run('6')
#12 /htdocs/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /htdocs/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /htdocs/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /htdocs/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /htdocs/gallery3/index.php(91): require('/...')
#19 {main}

http://www.dailyalbum.com

 
Armani2

Joined: 2007-05-09
Posts: 263
Posted: Sun, 2010-02-28 19:49

Im having the same error but not the exact same reasons, worked fine In all the beta3 version??
I did try removing the offending .jpgs I did not get the ORM Error but still only the last album was imported??
I deleted the offending jpgs listed and It just stalled..
With the last version of beta3 no problem, with the exception of java error with the slideshow...
Thanks..

ORM Validation has failed for items model

Task Import from Gallery 2 started (task id 18)
Group 'Admin' does not exist in Gallery 3, skipping
User with id: 5 already imported, skipping
User with id: 5839 already imported, skipping
User with id: 6 already imported, skipping
User with id: 5171 already imported, skipping
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/NW/IMG_2678.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/NW/IMG_2678.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_2233_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_2233_001.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_3321_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_3321_001.jpg.html"></a> from Gallery 2 could not be processed
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(455): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(188): g2_import_Core::set_album_highlight(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Sun, 2010-02-28 20:05

FWIW, I tried starting over, deleting my gallery3 install and reimporting g2 ... first it stalled on a bmp, which I removed, then it went right back to the explanation-free "items model" failure.

PS> Is it really copying every photo, instead of just leaving the photos where they are and creating a new database based on the old photos and thumbnails?

PPS> Could part of the problem be that I am using the same database for G2 and G3? Should I use a different db for G3?

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Sun, 2010-02-28 23:17

Here's the current error.

2010-02-28 11:06:23 -08:00 --- error: exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home//public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home//public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home//public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home//public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home//public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home//public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home//public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home//public_html/gallery3/modules/g2_import/helpers/g2_import.php(567): Item_Model->save()
#7 /home//public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /home//public_html/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /home//public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('2')
#11 [internal function]: Admin_Maintenance_Controller->run('2')
#12 /home//public_html/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /home//public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /home//public_html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /home//public_html/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /home//public_html/gallery3/index.php(91): require('/home//publ...')
#19 {main}
2010-02-28 11:06:23 -08:00 --- error: Validation errors: Array
(
[type] => invalid
)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2010-03-01 03:35

Please git pull the latest fixes, and report the new error / log messages:
http://github.com/gallery/gallery3/commit/1077477a9032d5a4855e19e2dd4ce923472b711c

It will probably still fail, but it should report why so we can identify the issue.

And no, using the same DB for G2 and G3 is fine (as long as the table names have a different prefix, e.g. g2_ for G2 and no table prefix for G3 is fine).

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Mon, 2010-03-01 16:15

Thanks, doing so now. ... you won't believe this, but it seems to be importing properly this time... up to 4,003 of 4,799 now. Will report in later. ... ha ha, 4,253 now, going around 1-2 per second... your importer really seems to have done wonders!

For debugging purposes, the log recorded this before the program moved on:

2010-03-01 06:10:57 -08:00 --- error: exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home//public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home//public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home//public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home//public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home//public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home//public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home//public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home//public_html/gallery3/modules/g2_import/helpers/g2_import.php(567): Item_Model->save()
#7 /home//public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#9 /home//public_html/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#10 /home//public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('6')
#11 [internal function]: Admin_Maintenance_Controller->run('6')
#12 /home//public_html/gallery3/modules/gallery/controllers/admin.php(57): call_user_func_array(Array, Array)
#13 [internal function]: Admin_Controller->__call('maintenance', Array)
#14 /home//public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#15 [internal function]: Kohana_Core::instance(NULL)
#16 /home//public_html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#17 /home//public_html/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#18 /home//public_html/gallery3/index.php(91): require('/home//publ...')
#19 {main}
2010-03-01 06:10:57 -08:00 --- error: Validation errors: Array
(
[type] => invalid
)

Seems to have stalled on "Importing photos (4798 of 4799)" but I'll give it some time... be funny if the very last photo clobbered it. No additional error messages in the log though. I sure wish I knew what had whacked it.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Mon, 2010-03-01 16:22

... so I let it run for 15 minutes on the last photo and then hit Pause. The status of the task showed as "Stalled" in the Maintenance screen. Now, when I try "Import from Gallery 2," it stalls on "Starting up..."

The "rebuild photos" thing says I have one old photo but that's even if I rebuild it, I get stalled on "Starting up..."

Nothing new has been added to the log.

Any ideas? I sure am further along than I was before. I wonder if I should try shutting off "comments" and seeing if that does anything?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2010-03-01 18:15

@davert:
there should be more information. the exception from above, is that from the var/log/? in the lines just above this message, there should be more about the error.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Mon, 2010-03-01 18:18

That was from /var/log and that's all there was aside from the usual intro: <?php defined('SYSPATH') or die('No direct script access.'); ?>

moving on, I did enable debugging via local.php and got: @todo G2_FUNCTION_FAILED

Wait a second, apparently this was in the log too and for some reason I wasn't seeing it... which is odd! But helpful to see.

2010-03-01 09:57:40 -08:00 --- error: Gallery 2 call failed with: Error (ERROR_MISSING_OBJECT) : Missing object for 11702 <b>in</b> modules/core/classes/GalleryStorage/GalleryStorageExtras.class <b>at line</b> 2054 (GalleryCoreApi::error)
<b>in</b> modules/core/classes/GalleryStorage/GalleryStorageExtras.class <b>at line</b> 98 (GalleryStorageExtras::_identifyEntities)
<b>in</b> modules/core/classes/GalleryStorage.class <b>at line</b> 314 (GalleryStorageExtras::loadEntities)
<b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 71 (GalleryStorage::loadEntities)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2361 (GalleryEntityHelper_simple::loadEntitiesById)
<b>in</b> /home//public_html/gallery3/modules/g2_import/helpers/g2_import.php <b>at line</b> 485 (GalleryCoreApi::loadEntitiesById)
<b>in</b> /home//public_html/gallery3/modules/g2_import/helpers/g2_import_task.php <b>at line</b> 188 (g2_import_Core::set_album_highlight)
<b>in</b> ??? <b>at line</b> 0 (g2_import_task_Core::import)
<b>in</b> /home//public_html/gallery3/modules/gallery/helpers/task.php <b>at line</b> 90
<b>in</b> /home//public_html/gallery3/modules/gallery/controllers/admin_maintenance.php <b>at line</b> 186 (task_Core::run)
<b>in</b> ??? <b>at line</b> 0 (Admin_Maintenance_Controller::run)
<b>in</b> /home//public_html/gallery3/modules/gallery/controllers/admin.php <b>at line</b> 57
<b>in</b> ??? <b>at line</b> 0 (Admin_Controller::__call)
<b>in</b> /home//public_html/gallery3/system/core/Kohana.php <b>at line</b> 330 (ReflectionMethod::invokeArgs)
<b>in</b> ??? <b>at line</b> 0 (Kohana_Core::instance)
<b>in</b> /home//public_html/gallery3/system/core/Event.php <b>at line</b> 208
<b>in</b> /home//public_html/gallery3/application/Bootstrap.php <b>at line</b> 67 (Event_Core::run)
<b>in</b> /home//public_html/gallery3/index.php <b>at line</b> 91

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Mon, 2010-03-01 18:54

... so I deleted all references to item 11702 after seeing that indication in the log, and the process started moving again! Now in the middle of "album highlights." Will keep you updated. Thanks.

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Mon, 2010-03-01 19:20

It works! Will deal with the EXIF problems later.

 
Armani2

Joined: 2007-05-09
Posts: 263
Posted: Wed, 2010-03-03 08:05

How do you download this file? I cant even copy and paste it as I get one long line????

By the way here is my import error, Cant someone guide me in any direction?????

Im having below error, import worked fine In all the beta3 version??
I did try removing the offending .jpgs I did not get the ORM Error but still only the last album was imported??
I deleted the offending jpgs listed and It just stalled..
With the last version of beta3 no problem, with the exception of java error with the slideshow...
Thanks..

ORM Validation has failed for items model

Task Import from Gallery 2 started (task id 18)
Group 'Admin' does not exist in Gallery 3, skipping
User with id: 5 already imported, skipping
User with id: 5839 already imported, skipping
User with id: 6 already imported, skipping
User with id: 5171 already imported, skipping
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/NW/IMG_2678.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/NW/IMG_2678.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_2233_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_2233_001.jpg.html"></a> from Gallery 2 could not be processed
Corrupt image '/home/birdznfl/public_html/gallery/g2data/albums/Scapes/IMG_3321_001.jpg'
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(518): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(145): g2_import_Core::import_item(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}
<a href="v/Scapes/IMG_3321_001.jpg.html"></a> from Gallery 2 could not be processed
exception 'ORM_Validation_Exception' with message 'ORM Validation has failed for items model' in /home/birdznfl/public_html/gallery3/system/libraries/ORM_Validation_Exception.php:20
Stack trace:
#0 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
#1 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(755): ORM_Core->validate(NULL)
#2 /home/birdznfl/public_html/gallery3/system/libraries/ORM.php(778): Item_Model->validate()
#3 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/MY_ORM.php(23): ORM_Core->save()
#4 /home/birdznfl/public_html/gallery3/modules/gallery/libraries/ORM_MPTT.php(76): ORM->save()
#5 /home/birdznfl/public_html/gallery3/modules/gallery/models/item.php(386): ORM_MPTT_Core->save()
#6 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import.php(455): Item_Model->save()
#7 /home/birdznfl/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(188): g2_import_Core::set_album_highlight(Array)
#8 /home/birdznfl/public_html/gallery3/modules/gallery/helpers/task.php(90): g2_import_task_Core::import(Object(Task_Model))
#9 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(186): task_Core::run('g2_import_task:...', Array)
#10 /home/birdznfl/public_html/gallery3/modules/gallery/controllers/admin.php(57): Admin_Maintenance_Controller->run('18')
#11 [internal function]: Admin_Controller->__call('18')
#12 /home/birdznfl/public_html/gallery3/system/core/Kohana.php(330): ReflectionMethod->invokeArgs(Array, Array)
#13 /home/birdznfl/public_html/gallery3/system/core/Event.php(208): Kohana_Core::instance('maintenance', Array)
#14 /home/birdznfl/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run(Object(Admin_Controller), Array)
#15 /home/birdznfl/public_html/gallery3/index.php(91): require('/home/birdznfl/...')
#16 {main}

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Wed, 2010-03-03 13:40

The comment is pretty clear on this one. The file /home/birdznfl/public_html/gallery/g2data/albums/NW/IMG_2678.jpg is corrupted and needs to be replaced. You can either go into G2 and simply delete it, or download it and do something to it in a photo editor, then re-upload it.

You wrote, "How do you download this file? I cant even copy and paste it as I get one long line????" -- which file?

 
davert

Joined: 2009-01-22
Posts: 81
Posted: Wed, 2010-03-03 13:42

PS> Regarding the EXIF problems, I seem to have a LOT of images that EXIF stalls on. I got past around a dozen of them by putting in fake blank-exif records in the G3 exif table, but that can take forever, because it moves on for anywhere from zero to 20 files and then hits another "bad" image. I wonder if there's a simple way to adjust the EXIF code to simply put in blank data when it encounters a problem image?