2nd G2 Import: @todo G2_FUNCTION_FAILED (1st import was OK!)

DamienA
DamienA's picture

Joined: 2003-05-25
Posts: 203
Posted: Sun, 2013-03-31 05:59

I upgraded from Gallery 2 to 3 without a problem.

I then imported all my G2 data also without a problem!

I have a two language site, and wanted to get the captions for the second language (Japanese) as well. I found a module (Multi language support) that supposedly can do what I wanted. I installed it and tried running the Gallery 2 Import again (the author says it will only import the captions!).

Anyway, I got this error: @todo G2_FUNCTION_FAILED

I tried several fixes including:
http://galleryproject.org/node/105347
http://galleryproject.org/node/66393

In the end I gave up, deleted version 3 completely, and installed version 3 from scratch.

Even doing so, I get the same error!

It is amazing I could import everything the first time without a problem but nothing after that.

Here is the error log from Gallery:

Task Import from Gallery 2 started (task id 21)
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: 14 already imported, skipping
User with id: 15 already imported, skipping
User with id: 16 already imported, skipping
exception 'Exception' with message '@todo G2_FUNCTION_FAILED' in /home/cambodia/public_html/gallery3/modules/g2_import/helpers/g2_import.php:1368
Stack trace:
#0 /home/cambodia/public_html/gallery3/modules/multilang3/helpers/MY_g2_import.php(57): g2(Array)
#1 /home/cambodia/public_html/gallery3/modules/multilang3/helpers/MY_g2_import.php(47): g2_import::g2_multilang_import(7, '1')
#2 /home/cambodia/public_html/gallery3/modules/g2_import/helpers/g2_import_task.php(137): g2_import::import_album(Array)
#3 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#4 /home/cambodia/public_html/gallery3/modules/gallery/helpers/task.php(90): call_user_func_array('g2_import_task:...', Array)
#5 /home/cambodia/public_html/gallery3/modules/gallery/controllers/admin_maintenance.php(195): task_Core::run('21')
#6 [internal function]: Admin_Maintenance_Controller->run('21')
#7 /home/cambodia/public_html/gallery3/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#8 [internal function]: Admin_Controller->__call('maintenance', Array)
#9 /home/cambodia/public_html/gallery3/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#10 [internal function]: Kohana_Core::instance(NULL)
#11 /home/cambodia/public_html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array)
#12 /home/cambodia/public_html/gallery3/application/Bootstrap.php(67): Event_Core::run('system.execute')
#13 /home/cambodia/public_html/gallery3/index.php(116): require('/home/cambodia/...')
#14 {main}

 
DamienA
DamienA's picture

Joined: 2003-05-25
Posts: 203
Posted: Sun, 2013-04-14 05:25

Any recommendations anyone? I would like to get my gallery back online!!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2013-04-14 17:19

I have never used the module but looking at the stack trace of the error

Quote:
#0 /home/cambodia/public_html/gallery3/modules/multilang3/helpers/MY_g2_import.php(57): g2(Array)
#1 /home/cambodia/public_html/gallery3/modules/multilang3/helpers/MY_g2_import.php(47): g2_import::g2_multilang_import(7, '1')

Note the name of the folder mulitlang3 should it be multilang without the 3?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team