Moving to new server - I18n.php error in log

jamie@jamiegord...

Joined: 2012-10-21
Posts: 2
Posted: Tue, 2012-10-30 15:19

Moving a Gallery 3 installation to a new host. Got the files transferred and changed the config to point to the new DB. This appears in the log when accessing the site.

2012-10-30 10:17:31 -05:00 --- error: Kohana_PHP_Exception [ 8 ]: Undefined offset: 1
/home/bjl/public_html/gallery3/system/libraries/I18n.php [ 60 ]
#0 /home/bjl/public_html/gallery3/system/libraries/I18n.php(60): Kohana_PHP_Exception_Core::error_handler(8, 'Undefined offse...', '/home/bjl/publi...', 60, Array)
#1 /home/bjl/public_html/gallery3/system/libraries/I18n.php(93): I18n_Core::get_text('#:errno: :error')
#2 /home/bjl/public_html/gallery3/system/core/Kohana_Exception.php(42): __('#:errno: :error', Array)
#3 /home/bjl/public_html/gallery3/system/libraries/Database_Mysql.php(50): Kohana_Exception_Core->__construct('#:errno: :error', Array)
#4 /home/bjl/public_html/gallery3/system/libraries/Database_Mysql.php(130): Database_Mysql_Core->connect()
#5 /home/bjl/public_html/gallery3/system/libraries/Database.php(429): Database_Mysql_Core->escape('var_cache')
#6 [internal function]: Database_Core->quote('var_cache')
#7 /home/bjl/public_html/gallery3/system/libraries/Database_Builder.php(764): array_map(Array, Array)
#8 /home/bjl/public_html/gallery3/system/libraries/Database_Builder.php(1021): Database_Builder_Core->compile_conditions(Array)
#9 /home/bjl/public_html/gallery3/modules/kohana23_compat/libraries/MY_Database_Builder.php(48): Database_Builder_Core->compile()
#10 /home/bjl/public_html/gallery3/system/libraries/Database_Builder.php(957): Database_Builder->compile()
#11 /home/bjl/public_html/gallery3/modules/gallery/libraries/drivers/Cache/Database.php(105): Database_Builder_Core->execute()
#12 /home/bjl/public_html/gallery3/system/libraries/Cache.php(141): Cache_Database_Driver->get(Array, true)
#13 /home/bjl/public_html/gallery3/modules/gallery/helpers/module.php(438): Cache_Core->get('var_cache')
#14 /home/bjl/public_html/gallery3/modules/gallery/config/locale.php(36): module_Core::get_var('gallery', 'timezone', 'America/Chicago')
#15 /home/bjl/public_html/gallery3/system/libraries/drivers/Config/Array.php(70): require('/home/bjl/publi...')
#16 /home/bjl/public_html/gallery3/system/libraries/drivers/Config.php(111): Config_Array_Driver->load('locale', false)
#17 /home/bjl/public_html/gallery3/system/core/Kohana_Config.php(121): Config_Driver->get('locale.language', false, false)
#18 /home/bjl/public_html/gallery3/system/core/Kohana.php(385): Kohana_Config_Core->get('locale.language', false, false)
#19 /home/bjl/public_html/gallery3/system/core/Kohana.php(150): Kohana_Core::config('locale.language')
#20 /home/bjl/public_html/gallery3/application/Bootstrap.php(49): Kohana_Core::setup()
#21 /home/bjl/public_html/gallery3/index.php(113): require('/home/bjl/publi...')

Here's the contents of the database.php
========================
<?php defined("SYSPATH") or die("No direct script access.");

/**
* @package Database
*
* Database connection settings, defined as arrays, or "groups". If no group
* name is used when loading the database library, the group named "default"
* will be used.
*
* Each group can be connected to independently, and multiple groups can be
* connected at once.
*
* Group Options:
* benchmark - Enable or disable database benchmarking
* persistent - Enable or disable a persistent connection
* connection - Array of connection specific parameters; alternatively,
* you can use a DSN though it is not as fast and certain
* characters could create problems (like an '@' character
* in a password):
* 'connection' => 'mysql://dbuser:secret@localhost/kohana'
* character_set - Database character set
* table_prefix - Database table prefix
* object - Enable or disable object results
* cache - Enable or disable query caching
* escape - Enable automatic query builder escaping
*/
$config['default'] = array(
'benchmark' => false,
'persistent' => false,
'connection' => array(
'type' => 'mysqli',
'user' => 'XXXXXX',
'pass' => 'XXXXXX',
'host' => 'XXXXXX',
'port' => 'XXXXXX',
'socket' => false,
'database' => 'XXXXXX',
'params' => null,
),
'character_set' => 'utf8',
'table_prefix' => 'g3',
'object' => true,
'cache' => false,
'escape' => true
);

System Information:
=========
Gallery version (not just "2"): 3.04
PHP version (e.g. 5.1.6): 5.2.17
PHPInfo Link (see FAQ): http://foresttheater.com/gallery3/phpinfo.php
Webserver (e.g. Apache 1.3.33): Apache ??? (server doesn't return version info)
Database (e.g. MySql 5.0.32): MYsql 5.5.23
Activated toolkits (e.g. NetPbm, GD): GD
Operating system (e.g. Linux): : Linux
Browser (e.g. Firefox 2.0): Any

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-10-31 02:38

http://gallery.menalto.com/node/106233

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jamie@jamiegord...

Joined: 2012-10-21
Posts: 2
Posted: Wed, 2012-10-31 19:32

I did see that post earlier and attempted the fix, to no avail. Actually, our PHP version is not > 5.4.x. That seems to be the main driver of the purpose of the git checkin. Also, our stack is different that the other posting.

Jamie

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-11-01 23:35

Did you upgrade to an experimental version?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team