Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-11-24 21:27:33

korpulente
Member
Registered: 2009-01-29
Posts: 36

Help, my host upgraded to PHP 5.3

Since my web host upgraded to PHP 5.3, I’ve had error messages all over my site (Textpattern 4.2.0).

Deprecated: Function set_magic_quotes_runtime() is deprecated in /something/httpd.www/site/textpattern/lib/txplib_db.php on line 14

Deprecated: Function split() is deprecated in /something/httpd.www/site/textpattern/include/txp_auth.php on line 77

Is there a workaround?

Offline

#2 2009-11-24 21:40:54

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Help, my host upgraded to PHP 5.3

Do these still display when in Live Mode?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#3 2009-11-24 21:42:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help, my host upgraded to PHP 5.3

Try disabling your plugins one at a time, it may be one or more of these causing it.

Offline

#4 2009-11-24 21:51:37

korpulente
Member
Registered: 2009-01-29
Posts: 36

Re: Help, my host upgraded to PHP 5.3

The site is of course in live mode, so yes, apparently.

I cannot deactivate plugins, as the back-end doesn’t function properpy anymore:

When I login, something forces the login prompt upon me every time I click a link in the UI. You can then choose to identify, and you’ll get to the destination of the link you clicked, ie. the plugin page. But I cannot disable plugins – the change isnt committed.

Offline

#5 2009-11-24 22:03:06

korpulente
Member
Registered: 2009-01-29
Posts: 36

Re: Help, my host upgraded to PHP 5.3

Seems like Mary addressed the issue with split() earlier this year, but I have no idea what to do with this information.
http://groups.google.com/group/txp-svn/browse_thread/thread/6b503423dbf7150a

Last edited by korpulente (2009-11-24 22:11:45)

Offline

#6 2009-11-24 22:13:04

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

Re: Help, my host upgraded to PHP 5.3

korpulente wrote:

Is there a workaround?

If you’ve upgraded to TXP 4.2.0 already then something’s wrong with your TXP files because the PHP 5.3.0 stuff was squashed (as you found) in 4.2.0. You could try FTPing the 4.2.0 files up again — if nothing else, specifically the four mentioned. Perhaps it missed a few during the upgrade. Your diagnostics would of course tell the full story… if you could see the admin side!


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

Online

#7 2009-11-24 22:21:21

korpulente
Member
Registered: 2009-01-29
Posts: 36

Re: Help, my host upgraded to PHP 5.3

I just disabled all the plugins via PhpMyAdmin.
Nothing happens (except they don’t work anymore). :-/

Offline

#8 2009-11-24 22:28:52

korpulente
Member
Registered: 2009-01-29
Posts: 36

Re: Help, my host upgraded to PHP 5.3

Bloke wrote:

If you’ve upgraded to TXP 4.2.0 already then something’s wrong with your TXP files because the PHP 5.3.0 stuff was squashed (as you found) in 4.2.0. You could try FTPing the 4.2.0 files up again — if nothing else, specifically the four mentioned. Perhaps it missed a few during the upgrade. Your diagnostics would of course tell the full story… if you could see the admin side!

I doubt that some files were missed. The site was “born” with Textpattern 4.2.0 a few months ago, and has been working nicely right until now.

I get these warnings, in addition to the mentioned errors, when I login to the back-end (note that my plugins are still disabled):

Warning: Cannot modify header information - headers already sent by (output started at /yourmom/httpd.www/site/textpattern/lib/txplib_db.php:14) in /yourmom/httpd.www/site/textpattern/include/txp_auth.php on line 196

Warning: Cannot modify header information - headers already sent by (output started at /yourmom/httpd.www/site/textpattern/lib/txplib_db.php:14) in /yourmom/httpd.www/site/textpattern/include/txp_auth.php on line 203

Notice: Undefined index: JPG Support in /yourmom/httpd.www/site/textpattern/include/txp_diag.php on line 398

Last edited by korpulente (2009-11-24 22:29:46)

Offline

#9 2009-11-24 22:40:13

korpulente
Member
Registered: 2009-01-29
Posts: 36

Re: Help, my host upgraded to PHP 5.3

korpulente wrote:

Deprecated: Function set_magic_quotes_runtime() is deprecated in /something/httpd.www/site/textpattern/lib/txplib_db.php on line 14

Snippet from txplib_db.php

if (get_magic_quotes_runtime())
{
        set_magic_quotes_runtime(0);
}

There isn’t going to be any easy workaround for this, like turning plugins off. It seems to me that PHP 5.3.1 is complaining about something in Textpattern.

NOTE: The upgrade on my host was to PHP 5.3.1, in case it makes any difference (I falsely wrote 5.3 before).

Last edited by korpulente (2009-11-24 22:41:46)

Offline

#10 2009-11-24 22:51:48

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

Re: Help, my host upgraded to PHP 5.3

korpulente wrote:

I doubt that some files were missed. The site was “born” with Textpattern 4.2.0 a few months ago, and has been working nicely right until now.

That’s very odd then. Because the message Function split() is deprecated in ....../include/txp_auth.php on line 77 implies that the split() function is being used in your txp_auth.php, yet the function doesn’t exist on that line (in fact, anywhere) in TXP 4.2.0 :-S

If you’re sure your files are the 4.2.0 ones and your server is reading the right ones from the location you expect (no weird symlinks or multi-sites or a mangled entry in config.php or something) then I’m afraid you’ve reached the end of my knowledge here, sorry.

Last edited by Bloke (2009-11-24 22:55:17)


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

Online

#11 2009-11-24 23:27:45

korpulente
Member
Registered: 2009-01-29
Posts: 36

Re: Help, my host upgraded to PHP 5.3

Good point, Bloke. And no, this is just a single site using one db etc.

I will try to re-upload the files via FTP and see what happens. This sounds very weird to me.

Offline

#12 2009-11-24 23:39:19

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Help, my host upgraded to PHP 5.3

Bloke wrote:

Because the message Function split() is deprecated in ....../include/txp_auth.php on line 77 implies that the split() function is being used in your txp_auth.php, yet the function doesn’t exist on that line (in fact, anywhere) in TXP 4.2.0 :-S

But it is in line 77 of txp_auth.php in 4.0.8…

Offline

Board footer

Powered by FluxBB