Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-09-06 13:46:26

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

What to do/think of these messages?

Deprecated: Function split() is deprecated in /home/users/rottpftp/rottpod.nl/textpattern/include/txp_auth.php on line 77

Deprecated: Function split() is deprecated in /home/users/rottpftp/rottpod.nl/textpattern/include/txp_auth.php on line 144

Can I put comment tags around the code in include.php, without damaging the site or database?

Last edited by RedFox (2010-09-06 13:47:02)

Offline

#2 2010-09-06 13:59:16

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

Re: What to do/think of these messages?

RedFox wrote:

*Deprecated: Function split() is deprecated

Probably best not to comment them out! If you’re finding these warnings the quickest solution is usually to replace any split() function with explode(). As long as the first argument is a string you’re cookin’! If the first argument is a regular expression you can usually get away with using preg_split() instead. Either way, check the PHP docs first for any syntax variations.

BTW, this was fixed in r3250 prior to TXP 4.2.0 so are you running an older version?

Last edited by Bloke (2010-09-06 14:00:07)


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 2010-09-06 14:30:20

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Re: What to do/think of these messages?

Bloke wrote:

BTW, this was fixed in r3250 prior to TXP 4.2.0 so are you running an older version?

Thanks Bloke! I’m using Textpattern · 4.0.8 … so I guess I better update TXP to 4.2.0!

Last edited by RedFox (2010-09-06 14:31:07)

Offline

Board footer

Powered by FluxBB