[SOLVED] Undefined offset: 1 in /gallery/system/libraries/I18n.php on line 60
jakobbg
Joined: 2003-09-30
Posts: 11 |
Posted: Mon, 2014-08-25 11:14 |
Hi, Just recently upgraded from php5.4 to 5.5 and suddenly noticed this on http://tertnesidrettsskole.no/gallery/ Tried following the tips about buffers and timezone in earlier posts, but error persists no matter what I do. Errors on page: Notice: Undefined offset: 1 in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 Notice: Undefined offset: 1 in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 We tried really hard, but it's broken. Talk to your Gallery administrator for help fixing this! Notice: Undefined offset: 1 in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 Fatal error: Uncaught exception 'Kohana_PHP_Exception' with message 'Undefined offset: 1' in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php:60 Stack trace: #0 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php(60): Kohana_PHP_Exception_Core::error_handler(8, 'Undefined offse...', '/data/www/docs/...', 60, Array) #1 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php(93): I18n_Core::get_text('Undefined offse...') #2 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/core/Kohana_Exception.php(42): __('Undefined offse...', NULL) #3 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/Kohana_PHP_Exception.php(60): Kohana_Exception_Core->__construct('Undefined offse...') #4 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/Kohana_PHP_Exception.php(95): Kohana_PHP_Exception_Core->__construct(8, 'Undefined offse...', '/data/www/docs/...', 60) #5 [internal function]: Kohana_PHP_Exception_Core::shutdown_handler(NULL) in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 Notice: Undefined offset: 1 in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 Notice: Undefined offset: 1 in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 Fatal error: Uncaught exception 'Kohana_PHP_Exception' with message 'Undefined offset: 1' in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php:60 Stack trace: #0 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php(60): Kohana_PHP_Exception_Core::error_handler(8, 'Undefined offse...', '/data/www/docs/...', 60, Array) #1 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php(93): I18n_Core::get_text('#:errno: :error') #2 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/core/Kohana_Exception.php(42): __('#:errno: :error', Array) #3 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/Database_Mysql.php(50): Kohana_Exception_Core->__construct('#:errno: :error', Array) #4 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/Database_Mysql.php(130): Database_Mysql_Core->connect() #5 /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/Database.php(429): Database_Mysql_Core->escape('3ijr9nfs4mer8dk...') #6 [in in /data/www/docs/www.tertnesidrettsskole.no/gallery/system/libraries/I18n.php on line 60 System info: $ uname -a :/usr/obj/usr/src/sys/CORE2 amd64 $ php -v $ pkg info|grep -e php -e apache All and any help appreciated! |
|
Posts: 120
The error is something to do with languages and translations. The offending line is:
Unfortunately I'm not familiar with such things but I suspect it means that your host system is using an unexpected locale (or at least its name/description is in an unexpected format).
Read this forum post, which looks like it is the same sort of problem.
http://galleryproject.org/node/109467
Posts: 11
Yeah, I've seen those posts earlier. I've tried setting both timezone to "Europe/Oslo", CET, "America/New_York" and similar, but nothing helps. I've also tried commenting out the ob_ stuff, but no change in behaviour, unfortunately.
Posts: 120
Hmm you've probably done more searching/reading than me, so I assume you also restarted Apache as well... those posts hinting at modifying the timezone in the php.ini file require the restart to pick up the change.
Are you running the latest git version of G3? I noticed floridave referred to some patches in some of those other posts.
It would be great to see what value is in $locale - it might put some light on the situation.
Posts: 11
Yup. My Apache has seldom been restarted more often than the latest few days . I'm not running latest GIT, was not aware of that being a recipe for success. Well, I guess it can't hurt to try. Albeit it seems like that some SQL queries and file copying is imminent for a migration over to SmugMug/Google+ Photos, since Gallery3 seems dead anyhoo. Sad.
Posts: 11
Upgrading to GIT version fixed my problem. Either by effectively having removed bad customizations on my host, or due to new and improved code in GIT. Anyhoo; works gr8! Yay! Thank you for the tip, spags!