[SOLVED] Dang... Something went wrong!

muzzoshah

Joined: 2012-04-27
Posts: 4
Posted: Fri, 2012-04-27 01:27

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-04-27 03:37

See if this commit helps:
https://github.com/gallery/gallery3/commit/6b306cddc1f25ecfe054b0a1c9d0dc3536da51f6

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
muzzoshah

Joined: 2012-04-27
Posts: 4
Posted: Fri, 2012-04-27 04:25

Thank you for the response. I have try to replace with the suggested code but still the error occur.

muzzoshah

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-04-27 04:41
 
muzzoshah

Joined: 2012-04-27
Posts: 4
Posted: Fri, 2012-04-27 06:47

Thank you Dave. Those website solution make my day.....thank you very much.

muzzoshah

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-04-27 13:43

I bet it was this:

Quote:
I found that the way to fix the I18n.php issue is setting a timezone like this:

vi /etc/php5/apache2filter/php.ini

Search for “timezone”

Change the commented line to:
date.timezone = CET
(or whatever your local time zone is)

Restart Apache: service restart apache2

If it was in combination with the above commit let us know.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
muzzoshah

Joined: 2012-04-27
Posts: 4
Posted: Fri, 2012-04-27 17:18

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

 
gopu
gopu's picture

Joined: 2009-08-28
Posts: 137
Posted: Sun, 2012-06-03 07:33

This error also appeared for me with PHP 5.3
The problem in my case was wrong DB name.

 
pikono

Joined: 2010-04-13
Posts: 16
Posted: Fri, 2012-08-03 08:56

can somebody tell me where i can find this

"vi /etc/php5/apache2filter/php.ini"

thank you in advance

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-08-03 16:31
Quote:
"vi /etc/php5/apache2filter/php.ini"

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