Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

undefined function: html_entity_decode() using php prior to version 4.3
Old 07-19-2005, 11:43 AM   #1
jperry1
Calendar User
 
jperry1 is offline
Join Date: Jul 2005
Posts: 3
Default undefined function: html_entity_decode() using php prior to version 4.3

Using PHP Version 4.2.1

When trying to add events to my MySQL database or the flatfile I get the following PHP error in my events\phperror.log file:

[19-Jul-2005 11:18:16] PHP Fatal error: Call to undefined function: html_entity_decode() in d:\inetpub\wwwroot\accomm\ezphpcal\functions\class .inputfilter_clean.php on line 151

Researched and found out that the above function was introduced in version 4.3, I found out how to emulate html_entity_decode for versions of php prior to 4.3:

function html_entity_decode($string)
{
$trans_tbl = get_html_translation_table(HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($string, $trans_tbl);
}

I added this to the config.inc.php file and everything works fine to post but then I could not get to my admin panel.

Is this a fix you can add easily or is there a better place to put this function?

>> I added this function to the top of functions\class.inputfilter_clean.php and it appears to work ok

Last edited by jperry1; 07-19-2005 at 11:51 AM. Reason: Possible solution
 

Old 07-19-2005, 11:54 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Do you have XSS protection enabled?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

XSS Protection enabled
Old 07-19-2005, 12:00 PM   #3
jperry1
Calendar User
 
jperry1 is offline
Join Date: Jul 2005
Posts: 3
Default XSS Protection enabled

Yes, XSS Protection is enabled
 

Old 07-19-2005, 12:08 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Try the attached file and see if it works for you.

[Admin removed attached file. It is included in version 6.2.9 and greater.]
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 07-19-2005, 12:23 PM   #5
jperry1
Calendar User
 
jperry1 is offline
Join Date: Jul 2005
Posts: 3
Default

Yes.. That works fine. Good idea to check if it exists or not for versions that have it. Thanks.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to undefined function: session_start() arnovdw General Support 4 02-17-2005 10:04 AM
PHP Errors anthony General Support 2 02-07-2005 01:10 PM
Not so easy... kenrayner2 General Support 3 09-03-2004 01:02 PM
Problem with installation in windows 2k server akkam General Support 3 01-11-2004 01:03 AM
{Fixed} Problem adding an event ucb General Support 23 11-19-2003 06:31 PM



All times are GMT -4. The time now is 02:55 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |