Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-29 00:50:38

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

plugin help links are br0ken

Or at least, non-functional: clicking/tapping the link does nothing.

From the Admin > Plugins pane, click a ‘help’ link, expect a help page to appear… Instead the Plugins pane reloads.

The generated link: http://example.com/textpattern/index.php?event=plugin&step=plugin_help&name=plugin_name_here

The URL contains & entity (ampersand), where a real ampersand is expected.
(as copied from Safari’s location bar)

Textpattern 4.6dev @ svn r4846, not sure when this broke.


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

Offline

#2 2012-11-29 02:09:45

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: plugin help links are br0ken

It’s due to double encoding. These same issues could potentially appear all around the place since there is HTML encoding where there weren’t before. These issue are caused by the mega-functionality changes done in r4833 and r4836.

Lemme go drown in this shallow pool now.

Last edited by Gocom (2012-11-29 02:10:38)

Offline

#3 2012-11-29 02:17:26

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

Re: plugin help links are br0ken

Gocom wrote:

It’s due to double encoding. These same issues could potentially appear all around the place since there is HTML encoding where there weren’t before. These issue are caused by the mega-functionality changes done in r4833 and r4836.

Yeah, after further investigation, the issue now shows up in various places (e.g. Content > Files or Contents > Images, the name column)

Lemme go drown in this shallow pool now.

Don’t… water is cold and wet. Thanks for investigating.


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

Offline

#4 2012-11-29 04:59:22

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

Re: plugin help links are br0ken

For those playing at home, r4847 fixed the issue in the Plugins pane. Thanks Jukka.

Other panes affected are Images, Files and Links (the links in the name column), Comments (links in the ID column), Sections (name, page and style columns). I think that is all.


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

Offline

#5 2012-11-29 06:34:37

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: plugin help links are br0ken

I appreciate the efforts on checking links, but, well, more of so you can’t see the errors by looking the output.

Unfortunately, there way more improperly encoded URLs than just those. Basically almost all lines changed in those two commits have broken a link given few rules. The double encoding affects every URL that has any extra attributes (classes, titles). Phil seemingly changed attributes from string presentations to arrays. There just is that little thing that in the array list mode attributes are sanitized automatically which Phil might have overlooked. Since these URLs are already encoded (and encoding weren’t removed), this is basically causing the issue.

Those two commits are quite huge and potentially contain some other changes and of course valid alterations too. As such, I will avoid blatantly reverting, and instead will let Phil and us do manual handpicking and sorting out the changes that need to be removed and those that do not.

Last edited by Gocom (2012-11-29 06:36:29)

Offline

#6 2012-11-29 13:03:18

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

Re: plugin help links are br0ken

Gocom wrote:

Unfortunately, there way more improperly encoded URLs than just those.

Was it? Hadn’t noticed with Sandspaces (from the subsequent checkins – r4850-4851 – I see indeed more affected links).

Those two commits are quite huge and potentially contain some other changes and of course valid alterations too. As such, I will avoid blatantly reverting, and instead will let Phil and us do manual handpicking and sorting out the changes that need to be removed and those that do not.

Right I did’t mean to push you or Phil to hurry hurry to fix this…
Anyway, the issue is fixed now, as far as I can see.


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

Offline

#7 2012-12-12 05:35:00

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

Re: plugin help links are br0ken

I still see this issue on the Images and Files panes (@rev5005) – afaict only for the ID column on those panes.

Or did something regressed on those two panes ?

Last edited by phiw13 (2012-12-12 05:35:30)


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

Offline

#8 2012-12-12 06:40:52

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: plugin help links are br0ken

Never were reverted, I suppose. There still can be encoding errors. Tracing back at the commits at least the following have committed to HTML encoding errors:

  • r4826 breaks edit links.
  • r4829 files panel’s tooltips are encoded twice.

Offline

#9 2012-12-12 07:59:37

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: plugin help links are br0ken

The last 8 commits starting from r5009 should cover most of the double encoding errors, at least those that I could find.

Offline

#10 2012-12-12 13:18:00

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

Re: plugin help links are br0ken

It is getting much better now. I couldn’t find any problem links anymore, so far.

As for tooltips, dunno, it is something I’m much less likely to see (I don’t have the patience to wait for the tooltip to pop up…)


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

Offline

#11 2012-12-12 13:31:27

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: plugin help links are br0ken

Yay, looks like I broke something again!

I’ve learnt over the last month I should stick to what I actually know, which is not PHP.

Offline

Board footer

Powered by FluxBB