@todo G2_FUNCTION_FAILED

baDibere

Joined: 2012-11-18
Posts: 1
Posted: Sun, 2012-11-18 11:17

Hi,

I've a problem related to "@todo G2_FUNCTION_FAILED"

When I try to open http://sitename/admin/maintenance or admin/g2_import, I get following error:

 Exception [ 0 ]: @todo G2_FUNCTION_FAILED

    MODPATH/g2_import/helpers/g2_import.php[ 1255 ]
    1250function g2() { 1251 $args = func_get_arg(0); 1252 $ret = is_array($args) ? array_shift($args) : $args; 1253 if ($ret) { 1254 Kohana_Log::add("error", "Gallery 2 call failed with: " . $ret->getAsText()); 1255 throw new Exception("@todo G2_FUNCTION_FAILED"); 1256 } 1257 if (count($args) == 1) { 1258 return $args[0]; 1259 } else { 1260 return $args;

    MODPATH/g2_import/helpers/g2_import.php[ 165 ] » g2( arguments )

    MODPATH/g2_import/helpers/g2_import.php[ 47 ] » g2_import_Core::init_embed( arguments )

    MODPATH/g2_import/helpers/g2_import_task.php[ 25 ] » g2_import_Core::init()

    {PHP internal call} » g2_import_task_Core::available_tasks()

    MODPATH/gallery/helpers/task.php[ 29 ] » call_user_func( arguments )

    MODPATH/gallery/controllers/admin_maintenance.php[ 45 ] » task_Core::get_definitions()

    {PHP internal call} » Admin_Maintenance_Controller->index()

    MODPATH/gallery/controllers/admin.php[ 62 ] » call_user_func_array( arguments )

    {PHP internal call} » Admin_Controller->__call( arguments )

    SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( arguments )

    {PHP internal call} » Kohana_Core::instance( arguments )

    SYSPATH/core/Event.php[ 208 ] » call_user_func_array( arguments )

    APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( arguments )

    DOCROOT/index.php[ 99 ] » require( arguments ) 

My platform information and gallery stats are like following:

Operating system: Linux 2.6.18-274.17.1.el5xen
Apache: Apache/2.2.3 (CentOS)
PHP: 5.2.10
MySQL: 5.0.95-log
Server load: 0,51 0,36 0,34
Graphics toolkit: imagemagick

Version: 3.0.x branch (git)
Albums: 77
Photos: 7028

And here is latest file from var/logs:

2012-11-18 13:09:40 +02:00 --- error: Exception [ 0 ]: @todo G2_FUNCTION_FAILED
/var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/g2_import/helpers/g2_import.php [ 1255 ]
#0 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/g2_import/helpers/g2_import.php(165): g2(Array)
#1 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/g2_import/helpers/g2_import.php(47): g2_import_Core::init_embed('/var/www/vhosts...')
#2 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/g2_import/helpers/g2_import_task.php(25): g2_import_Core::init()
#3 [internal function]: g2_import_task_Core::available_tasks()
#4 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/gallery/helpers/task.php(29): call_user_func(Array)
#5 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/gallery/controllers/admin_maintenance.php(45): task_Core::get_definitions()
#6 [internal function]: Admin_Maintenance_Controller->index()
#7 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/modules/gallery/controllers/admin.php(62): call_user_func_array(Array, Array)
#8 [internal function]: Admin_Controller->__call('maintenance', Array)
#9 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/system/core/Kohana.php(331): ReflectionMethod->invokeArgs(Object(Admin_Controller), Array)
#10 [internal function]: Kohana_Core::instance(NULL)
#11 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/system/core/Event.php(208): call_user_func_array(Array, Array)
#12 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/application/Bootstrap.php(67): Event_Core::run('system.execute')
#13 /var/www/vhosts/sitename/domains/gallery.sitename/public_html/index.php(99): require('/var/www/vhosts...')
#14 {main}

So, what's the problem and what's the solution?

By the way, I'm not sure but the site might be upgraded from Gallery 2.x.

Thanks.