I'm attempting to import my existing G2 to G3 beta 1, but after importing the groups, the import appears to stop. Looking at the log file, I see:
Quote:
2009-06-07 20:49:03 +10:00 --- error: Gallery2 call failed with: Error (ERROR_BAD_PARAMETER)<b>in</b> modules/core/classes/helpers/GalleryEntityHelper_simple.class <b>at line</b> 39 (GalleryCoreApi::error)
<b>in</b> modules/core/classes/GalleryCoreApi.class <b>at line</b> 2361 (GalleryEntityHelper_simple::loadEntitiesById)
<b>in</b> /var/www/gallery3/modules/g2_import/helpers/g2_import.php <b>at line</b> 249 (GalleryCoreApi::loadEntitiesById)
<b>in</b> /var/www/gallery3/modules/g2_import/helpers/g2_import_task.php <b>at line</b> 104 (g2_import_Core::import_user)
<b>in</b> ??? <b>at line</b> 0 (g2_import_task_Core::import)
<b>in</b> /var/www/gallery3/modules/gallery/helpers/task.php <b>at line</b> 78
<b>in</b> /var/www/gallery3/modules/gallery/controllers/admin_maintenance.php <b>at line</b> 140 (task_Core::run)
<b>in</b> ??? <b>at line</b> 0 (Admin_Maintenance_Controller::run)
<b>in</b> /var/www/gallery3/modules/gallery/controllers/admin.php <b>at line</b> 50
<b>in</b> ??? <b>at line</b> 0 (Admin_Controller::__call)
<b>in</b> /var/www/gallery3/system/core/Kohana.php <b>at line</b> 291 (ReflectionMethod::invokeArgs)
<b>in</b> ??? <b>at line</b> 0 (Kohana::instance)
<b>in</b> /var/www/gallery3/system/core/Event.php <b>at line</b> 209
<b>in</b> /var/www/gallery3/system/core/Bootstrap.php <b>at line</b> 55 (Event::run)
<b>in</b> /var/www/gallery3/index.php <b>at line</b> 72
2009-06-07 20:49:03 +10:00 --- error: @todo G2_FUNCTION_FAILED in /var/www/gallery3/modules/g2_import/helpers/g2_import.php at line 757:
#0 /var/www/gallery3/modules/g2_import/helpers/g2_import.php(249): g2(Array)
#1 /var/www/gallery3/modules/g2_import/helpers/g2_import_task.php(104): g2_import_Core::import_user(Array)
#2 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#3 /var/www/gallery3/modules/gallery/helpers/task.php(78): call_user_func_array('g2_import_task:...', Array)
#4 /var/www/gallery3/modules/gallery/controllers/admin_maintenance.php(140): task_Core::run('5')
#5 [internal function]: Admin_Maintenance_Controller->run('5')
#6 /var/www/gallery3/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#7 [internal function]: Admin_Controller->__call('maintenance', Array)
#8 /var/www/gallery3/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#9 [internal function]: Kohana::instance()
#10 /var/www/gallery3/system/core/Event.php(209): call_user_func(Array)
#11 /var/www/gallery3/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /var/www/gallery3/index.php(72): require('/var/www/galler...')
#13 {main}
2009-06-07 20:49:03 +10:00 --- error: Uncaught Exception: @todo G2_FUNCTION_FAILED in file modules/g2_import/helpers/g2_import.php on line 757
Any suggestions as to what might be wrong?
Also, my G2 install is fairly large at ~67k images. Is there any plans to implement a partial import?
Posts: 7994
Coding up a partial import is hard, haven't really prioritized that yet. Sorry!
Looks like you have a bad user id in your G2 database, causing G2 to fail to load the user id. Can you go to your G2 user admin page and see if you can click through the various users there? Do you get any crashes? Do you have a lot of users? If your G2 is corrupt in some weird way, G3 will have trouble in the import.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest zip: http://github.com/gallery/gallery3/zipball/master
Latest git: http://codex.gallery2.org/Gallery:Using_Git
Posts: 19
Thanks for the reply. There are only 14 users and I was able to view the details of each.
Now that you've given me a starting point, I'll dig a little further to see if I can get any further & will post back here with my progress.
As for the partial import, no probs, my alternate plan was to delete ~90% of the photos, import the remainder, restore from backup, import the next 10%, etc.
Posts: 37
After small difficulties with eaccelerator and vanishing innobase and then the whole DB I managed to get the import appear in the admin. However when I start it I only see a progress bar that stays at 0. Nothing happens even after pause/resume.
The log file shows the following:
#0 /opt/servers/site.com/galleria/modules/g2_import/helpers/g2_import.php(249): g2(Array)
#1 /opt/servers/site.com/galleria/modules/g2_import/helpers/g2_import_task.php(104): g2_import_Core::import_user(Array)
#2 [internal function]: g2_import_task_Core::import(Object(Task_Model))
#3 /opt/servers/site.com/galleria/modules/gallery/helpers/task.php(78): call_user_func_array('g2_import_task:...', Array)
#4 /opt/servers/site.com/galleria/modules/gallery/controllers/admin_maintenance.php(140): task_Core::run('3')
#5 [internal function]: Admin_Maintenance_Controller->run('3')
#6 /opt/servers/site.com/galleria/modules/gallery/controllers/admin.php(50): call_user_func_array(Array, Array)
#7 [internal function]: Admin_Controller->__call('maintenance', Array)
#8 /opt/servers/site.com/galleria/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#9 [internal function]: Kohana::instance(NULL)
#10 /opt/servers/site.com/galleria/system/core/Event.php(209): call_user_func_array(Array, Array)
#11 /opt/servers/site.com/galleria/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /opt/servers/site.com/galleria/index.php(72): require('/opt/servers/si...')
#13 {main}
2009-06-09 23:20:25 +03:00 --- error: Uncaught Exception: @todo G2_FUNCTION_FAILED in file modules/g2_import/helpers/g2_import.php on line 757
I checked all users and even removed some of them in G2 admin so as far as I know all users should be ok.
Posts: 47
I got the following error while trying to import my g2 photos.
-------------------------------------------------------
So here's the error:
@todo FORBIDDEN
File: modules/gallery/helpers/access.php, line: 176
And here's how we got there:
* modules/gallery/helpers/access.php [360]:
access_Core::forbidden( )
* modules/g2_import/controllers/admin_g2_import.php [42]:
access_Core::verify_csrf( )
* modules/gallery/controllers/admin.php [50]:
Admin_g2_import_Controller->save( )
*
Admin_Controller->__call( Array
(
[0] => Admin_g2_import_Controller Object
(
[theme:private] =>
[uri] => URI Object
(
)
[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)
)
[1] => save
)
)
* system/core/Kohana.php [291]:
ReflectionMethod->invokeArgs( g2_import, Array
(
[0] => save
)
)
* system/core/Event.php [209]:
Kohana::instance( Admin_Controller Object
(
[theme:private] =>
[uri] => URI Object
(
)
[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)
)
, Array
(
[0] => g2_import
[1] => Array
(
[0] => save
)
)
)
* system/core/Bootstrap.php [55]:
Event::run( )
* index.php [72]:
require( system/core/Bootstrap.php )
Posts: 7994
These are all different issues. Each of you please file a separate bug (below) and I'll investigate one at a time. If you can provide me with ssh access to your box I'll be inclined to help you sooner because it'll take a lot less time to figure out what's going wrong.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest zip: http://github.com/gallery/gallery3/zipball/master
Latest git: http://codex.gallery2.org/Gallery:Using_Git