Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Getting error with Textpattern version: 4.0.8 (r3255)
I’m testing out: Textpattern version: 4.0.8 (r3255)
and I’m getting the following error: Fatal error: Call to undefined function escape_output() in /nfs/c03/h02/mnt/52704/domains/driz.co.uk/html/textpattern/lib/txplib_misc.php(584) : eval()'d code on line 84
~ Cameron
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
driz wrote:
I’m testing out: Textpattern version: 4.0.8 (r3255)
and I’m getting the following error:Fatal error: Call to undefined function escape_output() in /nfs/c03/h02/mnt/52704/domains/driz.co.uk/html/textpattern/lib/txplib_misc.php(584) : eval()'d code on line 84
Crap, that’s one of the ancient, ancient functions I removed from the core recently. It’s been deprecated for, like, years. Could you switch debugging mode on please, and let us know which plugin (if it is a plugin) is still using it? If it’s a well-known one that is orphaned I might have to reinstate the function. Thanks.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
rvm_privileged is the culprit it seems
~ Cameron
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
Easy to fix, edit the plugin, replace this line (near the bottom). I’ll update the plugin later this weekend:
return escape_output($out);
with:
return htmlspecialchars($out);
@Stef: isn’t it possible to first do a release that gives a proper deprecation warning in debug (and testing) mode. That’s what was done in previous TXP releases before removing anything.
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
driz wrote:
rvm_privileged is the culprit it seems
Double crap! Can’t afford to piss Ruud off with my very first commit :-o
I’ll post on his plugin thread and see if he thinks I should reinstate the deprecated function(s) — it might be more hassle than it’s worth to remove them. I had intended to post a thread about the changes as well to give some warning. That won’t help very old plugins though. Hmmmmm.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
ruud wrote:
@Stef: isn’t it possible to first do a release that gives a proper deprecation warning in debug (and testing) mode. That’s what was done in previous TXP releases before removing anything.
Sure, that makes more sense. I’ll reinstate the ones that didn’t already have that in place. Good catch, sorry.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
Addressed in r3256. Warnings are issued in debugging and testing mode but everything will continue as normal.
Last edited by Bloke (2009-07-26 11:58:14)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Getting error with Textpattern version: 4.0.8 (r3255)
And also fixed in my plugins.
Offline