[SOLVED] Migrating Gallery2-Albums doesn't work

Rince

Joined: 2005-12-02
Posts: 11
Posted: Tue, 2014-01-07 06:54

Hi,

I used gallery2 quite a long while and have some albums in it. Now I try gallery3 and the import-module, but it gets stuck.

When I start the import, the following error comes up:

Task Import from Gallery 2 started (task id 5)
Group 'Admin' does not exist in Gallery 3, skipping
User with id: 5 already imported, skipping
User with id: 6 already imported, skipping
User with id: 20 already imported, skipping
User with id: 45 already imported, skipping
User with id: 21317 already imported, skipping
User with id: 21342 already imported, skipping
User with id: 21633 already imported, skipping
User with id: 21745 already imported, skipping
User with id: 25073 already imported, skipping
User with id: 25709 already imported, skipping
User with id: 29801 already imported, skipping
User with id: 31509 already imported, skipping
User with id: 31517 already imported, skipping
User with id: 32404 already imported, skipping
User with id: 43875 already imported, skipping
User with id: 49525 already imported, skipping
User with id: 52799 already imported, skipping
exception 'G2_Import_Exception' with message 'Failed to import Gallery 2 album with id 41 and name admin.
ORM validation errors: Array
(
[slug] => reserved
)

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

(I changed the directory names).

now, as far as I can read it, apparently the album with the id 41 in gallery2 seems to have problems. But how can I find this album and how can I fix that problem? I can not see any "real" errormessage here I could understand.

Thanks in advance,

Rince

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 814
Posted: Tue, 2014-01-07 14:35

You have an album or picture that is named 'admin' in your gallery2. This is a reserved named in gallery3.

You'll need to locate the item in your gallery2 and rename it.

Failed to import Gallery 2 album with id 41 and name admin.
...
[slug] => reserved
 
Rince

Joined: 2005-12-02
Posts: 11
Posted: Tue, 2014-01-07 16:39

Thanks for the fast answer - that was the problem, thank you!