Menu

Disable PHP Warnings in the phpwiki?

Help
2005-09-06
2012-10-11
  • Chris Patrick

    Chris Patrick - 2005-09-06

    Hi all-

    I am in the process of upgrading our wiki, since the gdbm database has been giving us daily errors where the server needs to be restart.

    In any case, we upgraded our version of PHP so we can utilize Berkeley DB last week, which resulted in a slew of PHP Warnings. I know that these warnings should be removed once the wiki version is upgraded, but is there any way to disable these warnings from being displayed?

    We don't want to upgrade the wiki quite yet, since I have found on my test server, that our templates will not work on the new wiki version, and have to be recoded...any help would be great!

    Thanks and talk to you soon.
    Chris

     
    • stargate3216

      stargate3216 - 2006-01-01

      Hey I have this problem too, thing it, I don't know any PHP at all, just html...where do I go to delete the
      <!--
      <?= $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?>
      <?php if (defined('DEBUG') and DEBUG) { ?><?= Template('debug') ?><?php } ?>
      -->

      thing?

       
    • Chris Patrick

      Chris Patrick - 2005-09-08

      Hi all-

      I just found the answer to my own question...actually discovered through playing with my home grown phpwiki templates....

      To disable any Warning messages that you may see, simply edit the bottom.tmpl template (or wherever may have the below function calls), and edit out:

      <!--
      <?= $GLOBALS['ErrorManager']->getPostponedErrorsAsHTML() ?>
      <?php if (defined('DEBUG') and DEBUG) { ?><?= Template('debug') ?><?php } ?>
      -->

      This completely hid all random warning messages which appeared post the php upgrade.

      Talk soon
      Chris

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.