Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-02-21 16:17:33

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Tales from the front line: an very-old-to-new Textpattern upgrade

Occasionally I undertake old Textpattern to new Textpattern upgrades. I’m actively working on one today. Sadly it’s a somewhat familiar story of a web developer installing old Textpattern (4.3-era), installing MANY plugins to achieve what they want, and then losing interest and wandering away. For the most part, I switch on Debug reporting on a test server, navigate around and pick the plugins to update first from the debug text. In this case, there are around 30 plugins, and I’m not even convinced a third of them are actually used in the code. I’ve upgraded and enabled about 6 so far and things are mostly working OK. More work to do, clearly, but dang.

This site has 45k comments over 1k articles. I estimate 90% of the comments are spam, because an old plugin seems to have bypassed the Textpattern spam check and bots have taken over. That’s a tedious job to remove comments from the database in batches.

Also, it’s interesting how much 2010-era web stuff has as good as gone: I was reminded of FeedBurner today. Nostalgia, huh?

The worst best part — and this is the take away I will offer anyone listening, in lieu of payment for listening to this venting — if you’re going from a very old Textpattern that’s been compromised by the spam bots, and each of the many-thousand spam comments has an IP address in it, your initial login to the 4.7 or newer Textpattern will take a very long time because each of the comments has to be processed to strip out the IP address (privacy issues). I had to extend to the PHP processing time to unlimited on my server because it kept bombing out with ugly timeout messages. It took 25 minutes to process the comments overall. Ouch.

End of vent. Thanks for reading.

Offline

#2 2020-02-21 16:46:32

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

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

Ah the old upgrade heave-ho. I’ve done it too, though not as often as you by the sounds of things.

The slowdown as it processes the IPs is a concern. I wonder if there’s anything we can do in 4.8.1 to address that? I know it’s a corner case, but anything we can do to improve the upgrade experience is a plus. I’m sure there are many instances of Txp out there still running 4.4- or 4.5-era code because it just works. Until a PHP upgrade means it doesn’t.


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

#3 2020-02-21 17:20:06

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

Bloke wrote #321838:

The slowdown as it processes the IPs is a concern.

I’ve got a corpus of ~48k comments in a SQL query if you want to have some real fun…

Offline

#4 2020-02-21 17:32:17

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

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

gaekwad wrote #321839:

I’ve got a corpus of ~48k comments in a SQL query if you want to have some real fun…

That was my next question: did you capture it so we can run some benchmarks if we get a chance to do this in a more batch-friendly way? Thanks!


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

#5 2020-02-21 17:41:44

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

Bloke wrote #321840:

did you capture it so we can run some benchmarks if we get a chance to do this in a more batch-friendly way?

Yep – I’ll drop you a line directly.

Offline

#6 2020-02-22 01:20:08

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

does anyone allow comments on their website these days?


…. texted postive

Offline

#7 2020-02-22 05:50:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

bici wrote #321847:

does anyone allow comments on their website these days?

I saw sites that do. I guess that it depends.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2020-02-22 05:57:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

bici wrote #321847:

does anyone allow comments on their website these days?

I saw sites that do. I guess that it depends.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2020-02-22 06:34:54

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

@gaekwad

48k ? ouch… I am no candidate to take over on that one.

bici wrote #321847:

does anyone allow comments on their website these days?

I do on a personal site, and do it for some friends site. Multiple sites I visit do.

It is possible that you don’t see the comments, though. Many content-blockers/ad-blockers have a section about blocking comments, and a number of widely used platforms have their comments hidden when enabled – *.blogspot, Typepad and many WP sites for example, or Disqus (that is an absolute blessing).


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#10 2020-02-23 19:42:08

WebmistressM
Member
Registered: 2011-08-12
Posts: 61

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

Oh boy…totally have been here and done that with some old sites I created in version 4.3. I have actually wanted to do more projects of bringing TextPattern sites that are pre 4.5 into 4.7.x or the upcoming version 4.8. I do think that with TextPattern, it is common to find abandoned pages and projects. I would like to think with some of the improvements (including the display of resources and docs) would help with retention.

Offline

#11 2020-02-23 20:03:11

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

WebmistressM wrote #321855:

I do think that with TextPattern, it is common to find abandoned pages and projects.

I’ve been around Textpattern since 2005, and I’ve seen personnel and policy changes along the way as the project has evolved. The biggest single difference now compared to 5, 10 and 15 years ago is the balance between features in core and plugins. It was commonplace to deploy Textpattern with a lot of plugins to achieve certain functions. Now, the plugin ecosystem appears to be much quieter…whether this is a side effect of developers moving on, giving up or stopping caring…I don’t know.

I hope a key factor is the evolutionary changes made in core that have brought things along so there’s a much lower requirement for plugins.

The web has changed over the last 5, 10 and 15 years, too. Sometimes I miss the old web. Sometimes I wonder if I use Textpattern because it reminds me of the old web…the effort people put in, the care that went into design, and content that was worth spending time on (writing and reading). The old web might be pushed into the shadows these days, but I’m still a cheerleader for it.

(I still don’t make enough of my own damn websites with Textpattern.)

Offline

#12 2020-02-23 21:06:18

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

Re: Tales from the front line: an very-old-to-new Textpattern upgrade

I hope a key factor is the evolutionary changes made in core that have brought things along so there’s a much lower requirement for plugins.

I’d agree with you there: I’ve also updated a lot of older sites and the core can really do a lot of the things for which many smaller plugins were needed in the (distant) past. That really is evolutionary improvement. It perhaps also has to do with the level at which Textpattern’s tags work.

And then, as you say, people have moved on. It’s the larger plugins that added whole new functionality that are lacking most. We also have some real champion plugin authors here who over the years have quite large collections of plugins. The flip side of being so prolific is the effort required to maintain them to keep them up to date. GitHub makes it a bit easier for others to chip in with improvements/issues but not everyone is on that.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB