Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-05-21 05:43:57

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

Plugins help oddity when editing a plugin (bug?)

TXP 4.9-dev latest, PHP 8.2 & 8.3

  • Install a (recent) plugin
  • Verify that its help panel displays correctly
  • Edit the plugin, e.g add some comment (/* … */) at the beginning. Save
  • try to view the help file again.

Actual result: all you see is a blob of raw Textile markup & help text. Screenshot of a fragment of that blob: dev.l-c-n.com/_b/pat_speeder_help.png.

Example plugin used: pat_speeder or kuo_webp.

With older plugins – or plugins installed a long(er) time ago(?)- the plugin help link disappears from the panel.

I think this is fairly recent – well “fairly” in Textpattern time, the kuo_webp plugin is dated to mid February ‘24 and I don’t remember touching or using it since


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

Offline

#2 2024-05-21 06:46:10

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

Re: Plugins help oddity when editing a plugin (bug?)

I suspect l.707 of txp_plugin.php is to blame. If you modify the help itself, it gets textiled.

Offline

#3 2024-05-21 07:38:26

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

Re: Plugins help oddity when editing a plugin (bug?)

Ack, mea culpa. But how to fix it? We need a fallback if there’s no Textiled help file. Hmmm.


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

#4 2024-05-21 08:08:29

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

Re: Plugins help oddity when editing a plugin (bug?)

FWIW – and as a workaround – if I edit the plugins’s .php file directly on the file system with my text-editor and then, back in the Plugins panel, choose “Update from drive”, then the issue does not happen.


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

Offline

Board footer

Powered by FluxBB