Permalink
Browse files

[#30054] Catchable fatal error: Object of class stdClass could not be…

… converted to string in /plugins/system/debug/debug.php on line 303
  • Loading branch information...
1 parent 504711d commit f444a7522d1b2ad845abca7e40d7d83c4485c342 @rhotog rhotog committed with mbabker Apr 7, 2013
Showing with 13 additions and 5 deletions.
  1. +1 −0 installation/CHANGELOG
  2. +12 −5 plugins/system/debug/debug.php
View
@@ -30,6 +30,7 @@ $ -> Language fix or change
# [#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
# [#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
# [#30226] *TAGS: Getting rid of all aspects concerning lang associations
@@ -134,7 +134,11 @@ public function __destruct()
// Capture output
$contents = ob_get_contents();
- ob_end_clean();
+
+ if ($contents)
+ {
+ ob_end_clean();
+ }
// No debug for Safari and Chrome redirection
if (strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'webkit') !== false
@@ -368,9 +372,12 @@ protected function displaySession($key = '', $session = null, $id = 0)
$entries = implode($entries);
}
- $html .= '<code>';
- $html .= $sKey . ' &rArr; ' . $entries . '<br />';
- $html .= '</code>';
+ if (is_string($entries))
+ {
+ $html .= '<code>';
+ $html .= $sKey . ' &rArr; ' . $entries . '<br />';
+ $html .= '</code>';
+ }
}
}
@@ -879,7 +886,7 @@ protected function formatLink($file, $line = '')
/**
* 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.
*

0 comments on commit f444a75

Please sign in to comment.