I got the latest changes from git relating to G2 import but I still get the same error in log-files. I try to import my gallery install from other domain, does it have something to do with it?
<?php defined('SYSPATH') or die('No direct script access.'); ?>
2009-06-14 15:17:37 +03: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> /opt/servers/site.net/galleria/modules/g2_import/helpers/g2_import.php <b>at line</b> 262 (GalleryCoreApi::loadEntitiesById)
<b>in</b> /opt/servers/site.net/galleria/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> /opt/servers/site.net/galleria/modules/gallery/helpers/task.php <b>at line</b> 78
<b>in</b> /opt/servers/site.net/galleria/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> /opt/servers/site.net/galleria/modules/gallery/controllers/admin.php <b>at line</b> 50
<b>in</b> ??? <b>at line</b> 0 (Admin_Controller::__call)
<b>in</b> /opt/servers/site.net/galleria/system/core/Kohana.php <b>at line</b> 291 (ReflectionMethod::invokeArgs)
<b>in</b> ??? <b>at line</b> 0 (Kohana::instance)
<b>in</b> /opt/servers/site.net/galleria/system/core/Event.php <b>at line</b> 209
<b>in</b> /opt/servers/site.net/galleria/system/core/Bootstrap.php <b>at line</b> 55 (Event::run)
<b>in</b> /opt/servers/site.net/galleria/index.php <b>at line</b> 72
2009-06-14 15:17:37 +03:00 --- error: @todo G2_FUNCTION_FAILED in /opt/servers/site.net/galleria/modules/g2_import/helpers/g2_import.php at line 788:
#0 /opt/servers/site.net/galleria/modules/g2_import/helpers/g2_import.php(262): g2(Array)
#1 /opt/servers/site.net/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.net/galleria/modules/gallery/helpers/task.php(78): call_user_func_array('g2_import_task:...', Array)
#4 /opt/servers/site.net/galleria/modules/gallery/controllers/admin_maintenance.php(140): task_Core::run('9')
#5 [internal function]: Admin_Maintenance_Controller->run('9')
#6 /opt/servers/site.net/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.net/galleria/system/core/Kohana.php(291): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#9 [internal function]: Kohana::instance(NULL)
#10 /opt/servers/site.net/galleria/system/core/Event.php(209): call_user_func_array(Array, Array)
#11 /opt/servers/site.net/galleria/system/core/Bootstrap.php(55): Event::run('system.execute')
#12 /opt/servers/site.net/galleria/index.php(72): require('/opt/servers/ar...')
#13 {main}
2009-06-14 15:17:37 +03:00 --- error: Uncaught Exception: @todo G2_FUNCTION_FAILED in file modules/g2_import/helpers/g2_import.php on line 788
Posts: 7994
It's failing to load one of your users. Are you using Gallery 2 embedded? If so, what is it embedded into?
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git
Posts: 37
No it's standalone G2. I already even removed couple of my users (as I saw a problem with corrupted users mentioned as a possible reason) and I only have 2-3 left. I also clicked through those users in g2 admin and they all load properly.
Posts: 7994
Please try with the latest code, I've added some diagnostic output in the error logs.
---
Problems? Check gallery3/var/logs before you post! and file bugs here!
Latest code/upgrading: http://codex.gallery2.org/Gallery3:Upgrading
Latest git: http://codex.gallery2.org/Gallery:Using_Git
Posts: 37
Hmm, I'm not sure if I updated all needed files last time or if there was something else that was updated too because the update works now. Only "error" I got was after the import G3 told that "could not import g2 user id: " (4 times, for all my G2 users, no id was given on the notification line though) I seem to be able to modify the albums and see the photos inside fully so they have been imported properly.
Do you want to have look at the log files anyway or is this case closed. And thank you for your help, the support is top notch as always!
Posts: 7994
So it's unclear to me why Gallery3 can't get your user list from Gallery 2. It seems like one of our queries failed. What version of G2 are you using? Create a file called "test.php" in your gallery2 dir and put this in it:
Then open that in your browser. What do you see?
---
Problems: Check gallery3/var/logs first!
file a bug or feature request | upgrade to the latest code | use git
Posts: 37
output: Array ( [0] => [1] => Array ( ) )
Posts: 19
my gallery is embedded into joomla.
maybe is this the problem?
massimo