#555 Virgin wiki page

PHP_error
closed
nobody
Flat file (22)
5
2014-07-29
2006-09-06
Perry Smith
No

When I create a wiki, I get this message:

lib/CachedMarkup.php:302: Notice: Object of class HtmlElement could
not be converted to int

Discussion

  • Perry Smith

    Perry Smith - 2006-09-06

    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.

     
  • Marc-Etienne Vargenau

    • status: open --> closed
     
  • Marc-Etienne Vargenau

    Closing very old bugs.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks