3.0.[2,3] and 04/22/12 git not working after update to Debian Testing

AvutonOlrich
AvutonOlrich's picture

Joined: 2005-03-10
Posts: 29
Posted: Mon, 2012-04-23 00:48

Hello,

My gallery stopped working after I upgraded from Debian Stable to Debian Testing (the only thing that broke! My luck). Then I noticed: "hey! A new release (3.0.3)", so I tried that. No bones. Tried the newest git. Same old problem.

This problem appears to be somewhat related to: [url]gallery.menalto.com/node/102474[/url].

This is the results of a local.php as is detailed in that post:

Notice: Undefined offset: 1 in /var/www/gallery/system/libraries/I18n.php on line 60

Fatal error: Uncaught exception 'Kohana_PHP_Exception' with message 'Undefined offset: 1' in /var/www/gallery/system/libraries/I18n.php:60 Stack trace: #0 /var/www/gallery/system/libraries/I18n.php(60): Kohana_PHP_Exception_Core::error_handler(8, 'Undefined offse...', '/var/www/galler...', 60, Array) #1 /var/www/gallery/system/libraries/I18n.php(93): I18n_Core::get_text('Undefined offse...') #2 /var/www/gallery/system/core/Kohana_Exception.php(42): __('Undefined offse...', NULL) #3 /var/www/gallery/system/libraries/Kohana_PHP_Exception.php(60): Kohana_Exception_Core->__construct('Undefined offse...') #4 /var/www/gallery/system/libraries/Kohana_PHP_Exception.php(95): Kohana_PHP_Exception_Core->__construct(8, 'Undefined offse...', '/var/www/galler...', 60) #5 [internal function]: Kohana_PHP_Exception_Core::shutdown_handler(NULL) #6 /var/www/gallery/system/core/Event.php(208): call_user_func_array(Array, Array) #7 /var/www/gallery/system/core/Kohana.php(549): Event_Core::run('system.shutdown') #8 [internal function]: Kohana_ in /var/www/gallery/system/libraries/I18n.php on line 60

Reading through that post I figured this might be a locale problem, if it is, I'm not sure /what/ it is:

root@sulu:/var/www# su -c locale www-data
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF8"
LC_NUMERIC="en_US.UTF8"
LC_TIME="en_US.UTF8"
LC_COLLATE="en_US.UTF8"
LC_MONETARY="en_US.UTF8"
LC_MESSAGES="en_US.UTF8"
LC_PAPER="en_US.UTF8"
LC_NAME="en_US.UTF8"
LC_ADDRESS="en_US.UTF8"
LC_TELEPHONE="en_US.UTF8"
LC_MEASUREMENT="en_US.UTF8"
LC_IDENTIFICATION="en_US.UTF8"
LC_ALL=en_US.UTF8

Well, at this point, not sure where I should go. I've got no problem helping myself here, but this stuff is not exactly my speciality, pointers/help?

Thanks in advance, folks.

 
AvutonOlrich
AvutonOlrich's picture

Joined: 2005-03-10
Posts: 29
Posted: Mon, 2012-04-23 00:54

Also, "What's left in the logs?" You might ask?:

<?php defined('SYSPATH') or die('No direct script access.'); ?>

I guess this might be to be expected, log subsystem not up yet? Again not my speciality.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2012-04-24 03:56

Ok, the I18n issue was a red herring - your system is misconfigured, but it wasn't causing the real problem. The real problem is that there was a change in PHP 5.4 that messes with the output buffering code under certain circumstances. Christopher Kunz figured it out here: http://www.christopher-kunz.de/archives/276-Upgrade-woes-I-Gallery3-and-PHP-5.4.0.html

I applied this fix, checked it in and updated your Gallery (thanks for the access!) so you're back in action.

The I18n issue stems from a misconfiguration of your default timezone. For reference, I updated http://codex.gallery2.org/Gallery3:FAQ#How_do_I_see_debug_information.3F to reflect the problem and provide info for a fix.
---
Problems? Check gallery3/var/logs
file a bug/feature ticket | upgrade to the latest code! | hacking G3? join us on IRC!

 
AvutonOlrich
AvutonOlrich's picture

Joined: 2005-03-10
Posts: 29
Posted: Tue, 2012-04-24 08:45

Thanks, as usual.