terungwa Posted September 24, 2014 Share Posted September 24, 2014 I am using tidy_repair_string() function as part of a string filter, the except is below. /* Tell Tidy to produce XHTML */ $xhtml = tidy_repair_string($html, array('output-xhtml' => true)); I am getting a fatal error thrown up as below. I thought tidy_repair_string() is an inbuilt PHP function or is it not? Fatal error: Call to undefined function tidy_repair_string() in C:\wamp\www\APPLICATION-FOLDER\contituency-manager\filter.php on line 14 Quote Link to comment https://forums.phpfreaks.com/topic/291248-fatal-error-call-to-undefined-function-tidy_repair_string/ Share on other sites More sharing options...
Solution requinix Posted September 24, 2014 Solution Share Posted September 24, 2014 It is not. Not really. You have to have the tidy extension installed on your server. 1 Quote Link to comment https://forums.phpfreaks.com/topic/291248-fatal-error-call-to-undefined-function-tidy_repair_string/#findComment-1491935 Share on other sites More sharing options...
terungwa Posted September 24, 2014 Author Share Posted September 24, 2014 It is not. Not really. You have to have the tidy extension installed on your server. In my PHP.ini file the function is installed and I had to enable it. the fatal error has disappeared thanks requinix extension=php_tidy.dll Quote Link to comment https://forums.phpfreaks.com/topic/291248-fatal-error-call-to-undefined-function-tidy_repair_string/#findComment-1491937 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.