Skip to content

Commit

Permalink
[#30054] Catchable fatal error: Object of class stdClass could not be…
Browse files Browse the repository at this point in the history
… converted to string in /plugins/system/debug/debug.php on line 303
  • Loading branch information
kartzke authored and Michael Babker committed Apr 7, 2013
1 parent 504711d commit f444a75
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions installation/CHANGELOG
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $ -> Language fix or change
# [#30489] *Regression: Menu Type UTF8 Alias prevents display in Menu Items Manager in J3 # [#30489] *Regression: Menu Type UTF8 Alias prevents display in Menu Items Manager in J3
^ [#30499] Duplicate "btn" class in login module button. Thanks Thomas Hunziker ^ [#30499] Duplicate "btn" class in login module button. Thanks Thomas Hunziker
# [#30041] Use of '/' not being handled well on Windows Servers. Thanks Parth Lawate # [#30041] Use of '/' not being handled well on Windows Servers. Thanks Parth Lawate
# [#30054] Catchable fatal error: Object of class stdClass could not be converted to string in /plugins/system/debug/debug.php on line 303. Thanks Ryan K.


07-Apr-2013 Jean-Marie Simonet 07-Apr-2013 Jean-Marie Simonet
# [#30226] *TAGS: Getting rid of all aspects concerning lang associations # [#30226] *TAGS: Getting rid of all aspects concerning lang associations
Expand Down
17 changes: 12 additions & 5 deletions plugins/system/debug/debug.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ public function __destruct()


// Capture output // Capture output
$contents = ob_get_contents(); $contents = ob_get_contents();
ob_end_clean();
if ($contents)
{
ob_end_clean();
}


// No debug for Safari and Chrome redirection // No debug for Safari and Chrome redirection
if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false
Expand Down Expand Up @@ -368,9 +372,12 @@ protected function displaySession($key = '', $session = null, $id = 0)
$entries = implode($entries); $entries = implode($entries);
} }


$html .= '<code>'; if (is_string($entries))
$html .= $sKey . ' &rArr; ' . $entries . '<br />'; {
$html .= '</code>'; $html .= '<code>';
$html .= $sKey . ' &rArr; ' . $entries . '<br />';
$html .= '</code>';
}
} }
} }


Expand Down Expand Up @@ -879,7 +886,7 @@ protected function formatLink($file, $line = '')


/** /**
* Store log messages so they can be displayed later. * Store log messages so they can be displayed later.
* This function is passed log entries by JLogLoggerCallback. * This function is passed log entries by JLogLoggerCallback.
* *
* @param JLogEntry $entry A log entry. * @param JLogEntry $entry A log entry.
* *
Expand Down

0 comments on commit f444a75

Please sign in to comment.