I got this error on my gallery 3.0.3, since version 3.0.2 it get this error.
Notice: Undefined offset: 1 in /var/www/html/gallery3/system/libraries/I18n.php on line 63 Fatal error: Uncaught exception 'Kohana_PHP_Exception' with message 'Undefined offset: 1' in /var/www/html/gallery3/system/libraries/I18n.php:63 Stack trace: #0 /var/www/html/gallery3/system/libraries/I18n.php(63): Kohana_PHP_Exception_Core::error_handler(8, 'Undefined offse...', '/var/www/html/g...', 63, Array) #1 /var/www/html/gallery3/system/libraries/I18n.php(96): I18n_Core::get_text('Undefined offse...') #2 /var/www/html/gallery3/system/core/Kohana_Exception.php(42): __('Undefined offse...', NULL) #3 /var/www/html/gallery3/system/libraries/Kohana_PHP_Exception.php(60): Kohana_Exception_Core->__construct('Undefined offse...') #4 /var/www/html/gallery3/system/libraries/Kohana_PHP_Exception.php(95): Kohana_PHP_Exception_Core->__construct(8, 'Undefined offse...', '/var/www/html/g...', 63) #5 [internal function]: Kohana_PHP_Exception_Core::shutdown_handler(NULL) #6 /var/www/html/gallery3/system/core/Event.php(208): call_user_func_array(Array, Array) #7 /var/www/html/gallery3/system/core/Kohana.php(551): Event_Core::run('s in /var/www/html/gallery3/system/libraries/I18n.php on line 63
I have upgrade my PHP to PHP 5.4 since last month. Then it comes this error. Can anyone help me.. Does Gallery cannot accept PHP 5.4?
muzzoshah
Posts: 27300
See if this commit helps:
https://github.com/gallery/gallery3/commit/6b306cddc1f25ecfe054b0a1c9d0dc3536da51f6
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Thank you for the response. I have try to replace with the suggested code but still the error occur.
muzzoshah
Posts: 27300
http://www.christopher-kunz.de/archives/276-Upgrade-woes-I-Gallery3-and-PHP-5.4.0.html
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Thank you Dave. Those website solution make my day.....thank you very much.
muzzoshah
Posts: 27300
I bet it was this:
If it was in combination with the above commit let us know.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
Thanx dave,
It was both of the solution..
For timezone, it will make the error msg invisible..but still blank display
However the comment of ob_..... Wil make it appear back to normal..
muzzoshah
Posts: 137
This error also appeared for me with PHP 5.3
The problem in my case was wrong DB name.
Posts: 16
can somebody tell me where i can find this
"vi /etc/php5/apache2filter/php.ini"
thank you in advance
Posts: 27300
vi is a unix/linux command line editor. http://en.wikipedia.org/wiki/Vi
/etc/php5/apache2filter/php.ini is the path to a file. might be different in your setup.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team