Menu

Search for issues gives error

Help
2005-01-26
2013-03-22
  • Gary Oberbrunner

    Fatal error: Call to undefined function: html_entity_decode() in /var/www/html/projectbench/bugtracking/bugsearch.php on line 104

    I believe the above function was not introduced until php 4.3.0, I'm running PHP 4.2.2.  Could it fail more softly perhaps, or check php version before calling it?

    thx,

    -- Gary

     
    • Philip X

      Philip X - 2005-01-27

      Gary,

      I'm sorry for the error you have been experienced. I was not aware that function only came up in 4.3.0. I will try to provide a fix for it in the next version.

      Thanks.
      philip

       
    • Gary Oberbrunner

      I would not mind submitting a patch for this but I don't know enough PHP.  Should I just say if (php_version >= 4.3.0) ... and if so is there an API for getting the current php version?  Or does php have an exception mechanism so I can just put the html_entity_decode() in a try/except block?

      Thanks for any hints
      -- Gary

       
      • Philip X

        Philip X - 2005-02-14

        okay, here's what I found just googling around.

        1. modify config.inc to include the following line:
        require_once($CFG->path .'/workaround.inc.php');
        ...preferably right before:
        require_once($CFG->path .'/coreconfig.php');

        2. download the following file:
        http://savannah.gnu.org/cgi-bin/viewcvs/phpgroupware/api/Attic/workaround.inc.php?rev=1.1.2.1&content-type=text/vnd.viewcvs-markup
        (click on the download link)
        and put it into your projectbench folder. make sure you keep the same name: workaround.inc.php

        3. Let me know if it worked :))

        Thanks!

         
        • Philip X

          Philip X - 2005-03-03

          Thanks.
          Make sure you use the latest CVS if working on PHP5. It's got (some) PHP5 fixes that I haven't released yet.

          Thanks!
          philip

           
    • Gary Oberbrunner

      Thanks Philip -- we ended up replacing the ProjectBench machine with a new Fedora Core 3 one that has PHP5, so I don't need this anymore (so I'm sorry I didn't try the fix).

      -- Gary

       

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.