When I create a wiki, I get this message:
lib/CachedMarkup.php:302: Notice: Object of class HtmlElement could not be converted to int
Logged In: YES user_id=1591520
Trying to help out a little. I change the code to this:
I changed the code to this:
diff -c lib/old-CachedMarkup.php lib/CachedMarkup.php lib/old-CachedMarkup.php Wed Sep 6 10:06:41 2006 --- lib/CachedMarkup.php Wed Sep 6 10:10:09 2006*** 299,305 **** $this->_page = $page; if ($anchor) $this->_anchor = $anchor; ! if ($label and $label != $page) $this->_label = $label; $this->_basepage = false; } --- 299,311 ---- $this->_page = $page; if ($anchor) $this->_anchor = $anchor; ! if (is_object($label)) { ! echo "\n"; ! } ! if (!is_object($label) and $label and $label != $page) $this->_label = $label; $this->_basepage = false; }
That got rid of the message. The backtrace (edited so it would fit) is this:
I hope this helps a little.
Closing very old bugs.
Log in to post a comment.
Logged In: YES
user_id=1591520
Trying to help out a little. I change the code to this:
I changed the code to this:
diff -c lib/old-CachedMarkup.php lib/CachedMarkup.php
lib/old-CachedMarkup.php Wed Sep 6 10:06:41 2006
--- lib/CachedMarkup.php Wed Sep 6 10:10:09 2006***
299,305 ****
$this->_page = $page;
if ($anchor)
$this->_anchor = $anchor;
! if ($label and $label != $page)
$this->_label = $label;
$this->_basepage = false;
}
--- 299,311 ----
$this->_page = $page;
if ($anchor)
$this->_anchor = $anchor;
! if (is_object($label)) {
! echo "\n";
! }
! if (!is_object($label) and $label and $label != $page)
$this->_label = $label;
$this->_basepage = false;
}
That got rid of the message. The backtrace (edited so it would fit) is this:
I hope this helps a little.
Closing very old bugs.