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.
Posts: 29
Also, "What's left in the logs?" You might ask?:
I guess this might be to be expected, log subsystem not up yet? Again not my speciality.
Posts: 7994
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!
Posts: 29
Thanks, as usual.