Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-09 09:28:02

elliot100
Member
Registered: 2008-09-26
Posts: 13

4.2.0 upgrade problems

Hi there

Am trying to move to 4.2.0 on my local dev server (Uniform Server WAMP). Hit some issues, got a bit confused and decided to start from a clean 4.2.0 file install, while keeping my existing DB and config.php.

Not sure if that in itself is OK or likely to cause issues?

My homepage now gives “Unknown section” – page otherwise blank.
/textpattern/setup/index.php prompts for language then gives “Looks like Textpattern is already installed.”
/textpattern/ gives:

Warning: Unknown column 'user_name' in 'where clause' select name, val from txp_txp_prefs as txp_prefs where prefs_id=1 AND user_name='' in Z:\elliot\httpdocs\textpattern\lib\txplib_db.php on line 85
Notice: Undefined variable: language in Z:\elliot\httpdocs\textpattern\index.php on line 70
Warning: Cannot modify header information - headers already sent by (output started at Z:\elliot\httpdocs\textpattern\lib\txplib_db.php:85) in Z:\elliot\httpdocs\textpattern\include\txp_auth.php on line 169
Warning: Cannot modify header information - headers already sent by (output started at Z:\elliot\httpdocs\textpattern\lib\txplib_db.php:85) in Z:\elliot\httpdocs\textpattern\include\txp_auth.php on line 170

Then “Your login session has expired. Please login again”, and login fields. Attempting to login just refreshes the page.

I’ve been using one plugin, cnk_versioning, which I haven’t yet been able to reinstall.

I do have version control so can roll back if need be, but any advice at this point?

Many thanks.

Last edited by elliot100 (2009-09-09 09:29:59)

Offline

#2 2009-09-09 12:45:22

elliot100
Member
Registered: 2008-09-26
Posts: 13

Re: 4.2.0 upgrade problems

Just to note, rolled back to previous install and then did an upgrade intead, and although the site works (with some items missing, such as site name and headings; post content OK), I get the same result from /textpattern/.

Offline

#3 2009-09-09 22:11:22

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: 4.2.0 upgrade problems

I just upgraded an old (4.0.1) site to 4.2.0. Everything is working wonderfully except for one small thing:

I have a custom field where an externally hosted image tag/url can be inserted into an article. The client just cuts and pastes something like the following into the custom field* when composing her article in the Write tab:
<img src="http://www.anypopularphotosharingsite.com/imageparticulars.jpg" width="240" height="180" alt="alt text here" />

Now that I’ve upgraded to textpattern 4.2.0, the images do not show up on the site — instead, the image tag code is displayed where the image should be. [EDIT] I looked at the source and it is the exact same code (there are no character entities). oops… Firebug didn’t show the entities… but that is the problem… it is converting to character entities Is this supposed to happen for custom fields?

Last edited by photonomad (2009-09-09 22:22:28)

Offline

#4 2009-09-09 22:15:55

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

Re: 4.2.0 upgrade problems

photonomad wrote:

the image tag code is displayed where the image should be.

From 4.0.7 the custom field tag changed its default behaviour. Use the escape="" attribute to restore it to its former glory.


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

#5 2009-09-09 22:21:38

photonomad
Member
Registered: 2005-09-10
Posts: 290
Website

Re: 4.2.0 upgrade problems

muchas gracias Stef!! I forgot about that handy little detail.

Last edited by photonomad (2009-09-09 22:22:06)

Offline

#6 2009-09-09 23:08:27

elliot100
Member
Registered: 2008-09-26
Posts: 13

Re: 4.2.0 upgrade problems

Glad you got that fixed, but would appreciate any ideas with the issue for which I posted the thread?

Offline

#7 2009-09-10 15:35:15

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

Re: 4.2.0 upgrade problems

elliot100 wrote:

Just to note, rolled back to previous install and then did an upgrade intead, and although the site works (with some items missing, such as site name and headings; post content OK), I get the same result from /textpattern/.

Those warnings you see after logging in should disappear when you refresh the page. Though I’m not sure about the last one, I don’t see that one when I upgrade. You also need to go to the language preferences tab and update your language(s).
About the missing items: have a look at your tag trace, it’s possible that you’re using some deprecated tags.

Offline

#8 2009-09-10 19:45:32

elliot100
Member
Registered: 2008-09-26
Posts: 13

Re: 4.2.0 upgrade problems

As per my first post, the warnings they affect a clean install with my current db and appear on the login page, they don’t disappear with a refresh and I can’t log in…

Offline

#9 2009-10-06 03:55:16

zheaton
New Member
Registered: 2009-01-27
Posts: 3

Re: 4.2.0 upgrade problems

I just ran into the same issue and figured out what it was: zem_event was causing the login to crash. Since I couldn’t log in, my solution was to open the SQL database directly, enter the txp_prefs table, and delete the row containing zem_event. Crude, but effective. Note that just disabling zem_event doesn’t work – you actually have to delete the plugin.

Offline

#10 2009-10-06 05:40:09

elliot100
Member
Registered: 2008-09-26
Posts: 13

Re: 4.2.0 upgrade problems

Thanks, but as per my first post, I’m only using one plugin, cnk_versioning. I suspect this is where the issue lies. I’ll follow up with the author of that plugin and will not upgrade for now.

Offline

Board footer

Powered by FluxBB