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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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');
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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!
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
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