[Tickets #12103] Re: Blank page on browsing turba address books
noreply at bugs.horde.org
noreply at bugs.horde.org
Sat Mar 9 19:09:41 UTC 2013
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/12103
------------------------------------------------------------------------------
Ticket | 12103
Updated By | Michael Rubinsky <mrubinsk at horde.org>
Summary | Blank page on browsing turba address books
Queue | Turba
Version | 4.0.3
Type | Bug
State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners | Michael Rubinsky, Michael Slusarz
------------------------------------------------------------------------------
Michael Rubinsky <mrubinsk at horde.org> (2013-03-09 19:09) wrote:
>> Anyway... I can't reproduce with Turba's browse.php. So you need to
>> debug WHY the global injector value is empty (since according to the
>> code there appears to be no possible way this could happen).
>
> I'm seeing the same thing happening here too. If I change line 65 in
> /usr/share/php5/PEAR/Horde.php
>
> from
> if (Horde_Core_Factory_Logger::available()) {
> to
> if (isset($GLOBALS['injector']) &&
> Horde_Core_Factory_Logger::available()) {
>
> all is well again.
>
> This check was performed in Horde_Core-2.4.1, but was removed in
> Horde_Core-2.4.2. So apparently the global injector value can be
> empty. I'd love to provide a backtrace, but I lack the knowledge how
> to. What code needs to be inserted here to provide a backtrace?
Something along the lines of:
if (empty($GLOBALS['injector'])) {
Horde::debug('WTF???');
}
will log the backtrace in a horde_debug.txt file located in your tmp
directory. Though like MIchael S. said, the only way it can be empty
is if PHP is behaving badly.
More information about the bugs
mailing list