Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-08-23 11:58:37
- gerhard01
- Plugin Author
- Registered: 2006-12-07
- Posts: 108
Message malformed plugin code - how to go to the root?
There has already been a thread in German suggesting a bumby workaround for plugins that deliver a “malformed or empty plugin code” error message upon installation.
Personally I have experienced this behaviour with zem_contact_reborn (v4.0.3.19), some versions of benbruce’s postmaster plugin and lately, with stm_article_order. (here, others report this error in the comments as well)
Is there a way to debug what is actually going on here?
I suspect that the reasons might be associated to the webhoster setup because zem_contact_reborn (v4.0.3.19) and all versions of the postmaster plugin install fine in my local WinXP/XAMPP environment but not my hosted site.(and stm_article_order which fails on both)
Thanks for your help!
Offline
Re: Message malformed plugin code - how to go to the root?
Assuming these are all large plugins, it’s the size of the POST request that’s causing the problems (a webhost limitation). For zem_contact_reborn, I’ve “fixed” that by offering a compressed plugin (installs just like a normal plugin), which you can get here. Other plugin developers can do the same. Compressed plugins are supported by TXP 4.0.4 (or 4.0.5, not sure) and higher.
Offline
#3 2007-08-23 13:04:53
- gerhard01
- Plugin Author
- Registered: 2006-12-07
- Posts: 108
Re: Message malformed plugin code - how to go to the root?
Edit: yes, your are right – these plugins are all fairly large.
Thanks – will notify the plugin author.
Last edited by gerhard01 (2007-08-23 13:25:39)
Offline
Re: Message malformed plugin code - how to go to the root?
For plugin developers using zem_tpl to build their plugins, it’s really easy to switched to compressed plugins. Change this line (in zem_tpl.php):
return $header . "\n\n" . trim(chunk_split(base64_encode(serialize($plugin)), 72)). "\n";
into:
return $header . "\n\n" . trim(chunk_split(base64_encode(gzencode(serialize($plugin))), 72)). "\n";
Last edited by ruud (2007-08-23 13:22:26)
Offline
#5 2007-09-04 12:31:32
- Logoleptic
- Plugin Author
- From: Kansas, USA
- Registered: 2004-02-29
- Posts: 482
Re: Message malformed plugin code - how to go to the root?
ruud wrote:
Compressed plugins are supported by TXP 4.0.4 (or 4.0.5, not sure) and higher.
Can anyone confirm whether this is supported in 4.0.4? Thanks.
Offline
Re: Message malformed plugin code - how to go to the root?
Yes, I can confirm that. The txp_plugin.php code didn’t change between 4.0.4 and 4.0.5, so it works there as well.
Offline