Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-13 17:43:59

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Plugin doesn't work in 1.0rc1

And I think I’m getting a cold, so I can’t even think clearly.

The plugin works in 4.0.3, but when I try to install the plugin into a website built using 1.0rc1, I get: Badly formed or empty plugin code.

Don’t know whether to upgrade to 4.0.3 or see if I can rework it to work in 1.0. The plugin is to display a given quantity of images drawn at random from all images in a given category.

Suggestions gratefully appreciated.

John Anderson
Soaring Penguin Ltd.

Offline

#2 2006-07-13 18:34:06

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Plugin doesn't work in 1.0rc1

4.0.3 has many improvements over the earlier versions. I’d recommend mirroring your live site on a local system and then walking through the upgrade process. This will let you figure out the gotchas without bringing down the site.

Also, which plugin are you having problems with?

Offline

#3 2006-07-13 19:01:50

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Re: Plugin doesn't work in 1.0rc1

If I understand you, I should install v1.0, get the site working as it currently is, then upgrade to 4.0.3 to see if there will be any problems.

The plugin is one I’ve developed myself. Seems to work acceptably in 4.0.3, producing the correct code, which should work with the existing CSS. Part of the issue is that I didn’t develop this website myself, so I’m trying to unravel the existing code – including the JavaScript, and the multiple CSS files.

Offline

#4 2006-07-13 19:07:46

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Plugin doesn't work in 1.0rc1

SPenguin wrote:

If I understand you, I should install v1.0, get the site working as it currently is, then upgrade to 4.0.3 to see if there will be any problems.

Correct.

The plugin is one I’ve developed myself. Seems to work acceptably in 4.0.3, producing the correct code, which should work with the existing CSS. Part of the issue is that I didn’t develop this website myself, so I’m trying to unravel the existing code – including the JavaScript, and the multiple CSS files.

If upgrading would be too much of a hassle, post the errors you are currently getting with your plugin. Another option for you is to modify the mem_randimg plugin I created back in the version 1 days. It will only show 1 random image, but it can be converted to show a list without too much trouble.

Offline

#5 2006-07-13 19:42:53

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Re: Plugin doesn't work in 1.0rc1

I actually modified Drew McLellan’s dru_random_image to get what I needed. The errors are:

- if I try to upload and install, I get Badly formed or empty plugin code;
-if I try to use the old-style plugin installer, I get a code dump;

Does this help?

Offline

#6 2006-07-13 23:57:54

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin doesn't work in 1.0rc1

Use the new plugin template.

Offline

#7 2006-07-14 06:40:11

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Re: Plugin doesn't work in 1.0rc1

Mary wrote:

Use the new plugin template.

Uh, that’s what I was using. And the resulting tag is what fails to install in 1.0. Interestingly(?), the plugin dru_random_image also fails to install properly in 1.0, so it ain’t just me.

I suppose the other option, pro tem, would be to install another template that does work, then overwrite the code in Edit. But I’m not entirely happy with that as a solution.

sigh This was supposed to be a 2-3 hour job. Now in my third day.

Offline

#8 2006-07-14 10:47:33

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Plugin doesn't work in 1.0rc1

1.0rc1 has several known security holes. It is always recommended to use the latest maintenance release of the stable version. You cannot expect the same support for way out of date non-production releases, that is available for stable releases.
We are very committed to support the stable release for the long term, but that requires your cooperation in the form of updating to the available maintenance releases.

Offline

#9 2006-07-14 13:18:03

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Re: Plugin doesn't work in 1.0rc1

Sencer wrote:

1.0rc1 has several known security holes. It is always recommended to use the latest maintenance release of the stable version. You cannot expect the same support for way out of date non-production releases, that is available for stable releases.
We are very committed to support the stable release for the long term, but that requires your cooperation in the form of updating to the available maintenance releases.

Thank you for those pearls.

I’ve inherited maintenance of the site from another developer. What was supposed to be a simple patch to a small niggle will now involved possibly taking the site offline while I upgrade Textpattern. And given the amount of Javascript and hacking involved, it may take a bit of time to reproduce the existing site, let alone make the changes they’ve requested.

I was hoping that someone might be able to give me a (reasonably) simple explanation/plan-of-action as to why my plugin doesn’t work in 1.0. I wasn’t asking for retroactive support – just some direction. Obviously not going to happen.

I will call the client, then, to explain that I’m going to have to rebuild their site over the weekend.

Thanks everyone.

John Anderson
Soaring Penguin Ltd.

Offline

#10 2006-07-14 18:45:28

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Plugin doesn't work in 1.0rc1

Wow.

Offline

#11 2006-07-14 19:55:13

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: Plugin doesn't work in 1.0rc1

I just tested mem_randimg with Textpattern 1.0 RC 5 and it installed without a problem. Feel free to modify that one so it supports multiple images.

Offline

#12 2006-07-14 21:32:40

SPenguin
Member
From: London, UK
Registered: 2006-07-13
Posts: 14
Website

Re: Plugin doesn't work in 1.0rc1

Thanks for this Manfre. I’ll take a look at your plugin. (Although, to be honest, it chagrins to think that the work I’ve done already will go for naught.)

In any event, I’ve talked to the client. Based on their needs, and Sencer noting that there are security issues with 1.0, and that there are a couple of other patches needed, etc, etc, they’ve agreed to let me take the site offline for the weekend while I rework things.

Hope it rains.

I really hated making the call. I felt like a cowboy builder, called in to make a little repair, and working it up into a major overhaul. (-sucks in teeth: “Well, luv, I could just do yer job, but wot you ‘ave there needs more work than that. I wouldn’t be doin’ me job to just let go, like.”) Fortunately, the client was pretty cool about it.

Offline

Board footer

Powered by FluxBB