Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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