Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-14 19:42:06

feytus
Member
Registered: 2009-06-02
Posts: 43

Deprecated: Function set_magic_quotes_runtime() is deprecated

‘Deprecated: Function set_magic_quotes_runtime() is deprecated’

I get this line on the top of my site all of a sudden, haven’t changed anything or done anything at all to the site for a long time, so have no idea why.

How do I fix it?

Here’s a link to the site;
http://www.marsmelons.com/

Any feedback appreciated!

Last edited by feytus (2009-12-14 19:42:54)

Offline

#2 2009-12-14 21:13:55

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Deprecated: Function set_magic_quotes_runtime() is deprecated

feytus wrote:

I get this line on the top of my site all of a sudden, haven’t changed anything or done anything at all to the site for a long time, so have no idea why.

You didn’t, but your host did. Probably they recently updated PHP to 5.3 or above, leading a situation where that function is deprecated.

How do I fix it?

  • Updating TXP doesn’t obviously work, because 4.2.0 and SVN both still use that function.
  • You could edit txplib_db.php to suppress errors. See below.

From (around line 15):

set_magic_quotes_runtime(0);

To:

@set_magic_quotes_runtime(0);

Offline

#3 2009-12-14 21:41:55

feytus
Member
Registered: 2009-06-02
Posts: 43

Re: Deprecated: Function set_magic_quotes_runtime() is deprecated

Ah, man, that worked a charm. Thanks a lot! :)

Offline

Board footer

Powered by FluxBB