SourceForge has been redesigned. Learn more.
Close

UserPreferences issue

Help
2007-12-20
2012-10-11
  • Jason Sears

    Jason Sears - 2007-12-20

    I have deployed PHPWiki and I am encountering the following error whenever I attempt to Update Preferences in the UserPreferences page:

    Fatal error: Call to a member function asXML() on a non-object in /opt/app/oracle/product/phpwiki-1.3.14/lib/Theme.php on line 1150

    Any ideas would be much appreciated.

    Regards,
    Jason

     
    • Jason Sears

      Jason Sears - 2007-12-20

      I'm not 100% on this fix, but I've added the following to further check if an object exists. Can anyone confirm this to be a valid work around?

          if (!empty($this->_headers_printed) and $this->_headers_printed and ($element instanceof JavaScript)) {
              trigger_error(_("Some action(page) wanted to add more headers, but they were already printed.")
                            ."\n". $element->asXML(),
                             E_USER_NOTICE);
          }
      

      Regards,
      Jason

       

Log in to post a comment.