Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-05-02 23:00:14

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Another experience upgrading TXP 4.6

This morning I upgraded my local 4.6 installation to the latest GIT master zip.

At the risk of looking a complete wassak, I’m now presented with a blank screen after login. And PHP throws an error:

[Tue May 03 08:51:22.857592 2016] [:error] [pid 6473] [client fe80::b618:d1ff:feed:2453:49860] PHP Fatal error: Call to a member function start() on a non-object in /Users/adi/Sites/textpattern-git/textpattern/lib/txplib_db.php on line 395, referer: http://imac.local/~adi/textpattern-git/textpattern/index.php

Usual upgrade method – replaced the old files/folders with the new, then got the “Remora is dead, long live the new default” message, after that was blankety blank.

Any useful antidotes or even amusing anecdotes?

Offline

#2 2016-05-03 09:08:31

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Another experience upgrading TXP 4.6

Hi Adi,

it looks like the global $trace is undefined or overwritten at some stage. Try to disable plugins by setting to 0 use_plugins and admin_side_plugins in txp_prefs.

Offline

#3 2016-05-03 12:29:47

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Another experience upgrading TXP 4.6

Thanks Oleg, much obliged. It was one of my plugins causing the problem – not anything to do with $trace, I don’t think, but have yet to find out what.

Offline

#4 2016-05-03 13:31:15

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Another experience upgrading TXP 4.6

I’d suspect an unfortunate extract() that rewrites the global $trace. We should give it a less common name.

Offline

#5 2016-05-03 15:05:43

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

Re: Another experience upgrading TXP 4.6

etc wrote #298934:

We should give it a less common name.

$txp_trace?


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 2016-05-03 18:48:09

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: Another experience upgrading TXP 4.6

Bloke wrote #298942:

$txp_trace?

Txp::get('\Textpattern\Trace') ? ;)

(I know this would require some refactoring)

Offline

#7 2016-05-03 21:44:45

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: Another experience upgrading TXP 4.6

wet wrote #298949:

Txp::get('\Textpattern\Trace') ? ;)

+1, as long as it’s not called in live mode (or not at all)

Offline

#8 2016-05-04 08:51:27

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

Re: Another experience upgrading TXP 4.6

wet wrote #298949:

Txp::get('\Textpattern\Trace') ? ;)

Even better. Any takers?


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

Board footer

Powered by FluxBB