Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-07-24 19:46:19

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#2 2009-07-25 11:53:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,821
Website GitHub

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

#3 2009-07-25 12:49:38

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

Re: Getting error with Textpattern version: 4.0.8 (r3255)

rvm_privileged is the culprit it seems


~ Cameron

Offline

#4 2009-07-25 13:41:36

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#5 2009-07-25 13:47:33

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,821
Website GitHub

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

#6 2009-07-25 13:48:52

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,821
Website GitHub

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

#7 2009-07-26 11:57:52

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,821
Website GitHub

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

#8 2009-07-27 13:11:30

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Getting error with Textpattern version: 4.0.8 (r3255)

And also fixed in my plugins.

Offline

Board footer

Powered by FluxBB