Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2022-01-15 17:27:32

freshmeat123
New Member
Registered: 2022-01-15
Posts: 3

Badly formed or empty plugin code

Hi!
i tried install a few zip plugins such as:
- rah_comment_spam-0.9.0.zip
- rah_maintenance-0.2.0.zip

But every time i see error “Badly formed or empty plugin code” after upload zip files in texpattern’s Admin -> PLugins menu. I see unpacked plugin’s code in target directory ~/textpattern/plugins. Where is was wrong?

textpattern version is 4.8.8beta1
php 8.0.13

php.ini options:
upload_max_filesize = 200M
post_max_size = 128M
file_uploads = 200M

Offline

#2 2022-01-16 08:34:51

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

Re: Badly formed or empty plugin code

Hi freshmeat123 and welcome to the forum,

You happen to be wanting to install plugins by the one plugin author who developed his own non-standard way of structuring plugins, so dropping a zip from GitHub onto the upload input of the plugin panel doesn’t work. The plugins are great but as he prefers you to install his plugins using composer, he also elected not to provide compiled versions of his plugins.

So, here’s rah_maintenance as a compiled plugin. Copy this text block and paste it into the textarea in the plugins pane. Then click install:

# Name: rah_maintenance v0.2.0
# Maintenance mode
# Author: Jukka Svahn
# URL: https://github.com/gocom/rah_maintenance
# Recommended load order: 1
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the "Install plugin" box:
# .....................................................................

H4sIAAAAAAAAE+1X71LbRhD/rqfYOpliGCL5b0hMm8YhkLhDwGNMM0ynozlLK+nK+c69O9m4
ad4mz9AX4MW6J8kBDAH6PfpgS6v987u93d+eWK/Z6X0yvU6vJtkUa7um1+z2appl4ZRxaVEy
GRXinV5tjtpwJd0T6TT8lt9w9897NZbbTOnCutmr/ZqfnzM4mbOs0G02VgphrrmTdEiSWTsz
vSBIuc3yiR+paZAq93tHbOc0RhNpPrMVgCZF/XClBVMVF6q0kAzFzN1SkEoSVS9b3W67V/O8
YMuDLVgLBM9gjBd2xqxFLWHvwwlM1wI4q8fiJl2nvqdmS83Tz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OLDMfV9tpxffoE/GRBZWLqbLi//zXBK2pDnNCwF
ovS91TcHzQK1CDM7FWF5gue9Rpl19xhqtig+Q9ruhN/016vE82pD2hjmxm2tt+Kz2UpU1En5
RHVCtuvMBv9AbWBMjubK+iE2DHhh4EzfKkkbcGVKmtQu+dSf8L+DuHh5i0u9MQ0FwSYCb48n
VXzoFC1HzKdhSFMGNdJ7x6UShQ8f3VxzXJRL93WF0vKIOa6ZcxrhSpuSYFzTFC6KURbSACnH
okUiENKnmsla/up44XmnhlMj1vbUdKYMNcVVNtBGldBls+d5k8iHp7ASUt//lXOihzuyW8bY
y6gkkUYhPbZ9+K3i0OJDkgaVmyNBoxO0mp63BW+1moE7MRHBxaaIQtw74YIT1xU8ITBl0fLG
fKtomahpC47UYgXJ3FDq+M8pHmWWaKLomZtgmn6zBNMJGu2g9cKBeXMfDiXcuLkeQWPRnuYO
39VC20GjGzS7zvdAcsuJEyujsiGIWqZxt6SZXq0b7zzvtuOdVtJA1mi1G43OZNLEnclO52Xn
5Q6x2Of/AGzZzHDJDwAA

And here’s rah_comment_spam from github.com/gocom/rah_comment_spam:

# Name: rah_comment_spam v0.9.0
# Anti-spam tools to prevent comment spam
# Author: Jukka Svahn
# URL: http://rahforum.biz
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - https://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the "Install plugin" box:
# .....................................................................

H4sIAAAAAAAAE+092XYbN7Lv/AqY0Q2pCUUttpxYtmxpFHmsiWxrJDnLcXx5QBIUETa7OY1u
ycrEf5NvyA/4x24tQDd6o+gkc859iM6MRbFRhULtVUAjcm/7wd5/zN6DvXYo56r92OxtP9xr
x3I6GEXzuQqTgVnIOX7/5V77WsVGRyH+tbvX3uo/6m/hZwCQaTKNYgLf3mv/M53NpLi4llMa
u73lBgzSWNM3j/ba0yRZ7G1uwlSTKE7n/aH+2cGPlRnFepHYue7D6MMw0RtIikiiKDDwr1jE
6hoIFJZQ4QiFtUxVsMC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VgUj5t9x
J+HSosXibLoWsLkQQ8AVL/pb8iISvlePbqN4zd4yCLp3i0FKF880QnGl8HS1u/IaM1pacPMN
cHcVSzn4yhefLS+GfMX+hAu0sGByi11/1mq52PDZQXYxz0RvTPSyYPFSJx9/xeAp9TjFizlF
HJmZpMqf/kzUdPzx14+/hiuEjBe3wQzH9sTHXwNAS8fvwlCuFDcu7WAxvb3++OvM3IZA2U9R
GEWN0S4LHRnsT1LMVQwpoczXoWemlgVZGPnm46+3CU4GVMOKQ/xTJWDV1xpPTIhZZigWN5gw
Qt81RSWk+BAbmCEqmFJ0FzqYpYBdYQ0XJGkolwWX48RokQEblcZSXhPyGRJpkpVRlmPLBXBR
J0n6E8ZNmEDjLYwozxhQztIwhNpm5uyQeCETiZnxcjb4wcWfAvv8M3+O5THmQoYRgoFyTPUc
YLRZAujFGQeowrvBvEjzjY5/kmihq09ZB4u3qt8FmgWbM60DEBjICxIhg1ebgjRDAYRrkGkE
7nKGyvnxN5LyTxF46NspqMGdsYZUHEBYo2caaNMffyPbB5OJ5U+RRgVimAifylmiIeqYNE0S
uULkyYwIJQrls5zL0mx3RKBTaWZKuMEffwst+LLI5YLONxJmMXSzLsw3U4HCv1aJPd/cGhir
iJ8OeCmsi0DfWEIhOcZbLdAOjJrRnW+oL0BBjdvyA9AlrFcizQa0a/bxNzKgyIAgErxWBSLS
RgJVVlQXPWoCUoZulnuz0HNdM1BJxC3nmq5tccPmuHA9qxNxJUZ9K+UYrbceGbvM3FQQq+UJ
sNjADHTrBZQ5lFgOpsk8GPB/bWy4t4UVzl57Pt7lWmev/eXWI/VgsjWaPJCP1EM1GW2rRw/G
k8nDRzvwYedR+/GH/wOpcXqbgm0AAA==

(FYI I wrote some instructions on how to compile txt installers for rah_ plugins if you want to try this yourself).


TXP Builders – finely-crafted code, design and txp

Offline

#3 2022-01-16 13:48:26

freshmeat123
New Member
Registered: 2022-01-15
Posts: 3

Re: Badly formed or empty plugin code

Thank you! It seems to be work.
It will be nice for have comment about it in rah plugin(s) descriptions on official site.

PS: rah_comment_spam now installed successfully, but i see error:

A problem occurred while loading the plugin:  -> User_Error: Table 'textpattern_blog1_db.rah_comment_spam' doesn't exist on line 453
textpattern/lib/txplib_db.php:453 trigger_error()
textpattern/lib/txplib_db.php:1161 safe_query()
textpattern/lib/txplib_db.php:1006 getRows()
textpattern/plugins/rah_comment_spam/rah_comment_spam.php:154 safe_rows()
textpattern/lib/txplib_misc.php:1589 Rah_Comment_Spam->install()
textpattern/vendors/Textpattern/Plugin/Plugin.php:146 callback_event()
textpattern/include/txp_plugin.php:605 Textpattern\Plugin\Plugin->install()
textpattern/include/txp_plugin.php:54 plugin_install()
textpattern/index.php:230 include()

How i should create table “rah_comment_spam”?

Offline

#4 2022-01-16 14:25:50

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

Re: Badly formed or empty plugin code

freshmeat123 wrote #332443:

It will be nice for have comment about it in rah plugin(s) descriptions on official site.

If you mean plugins.textpattern.com I think you’re right, at least for those sourced from GitHub (Jukka / gocom has older versions on his own rahforum.biz site and those have txt installers).

PS: rah_comment_spam now installed successfully, but i see error:

A problem occurred while loading the plugin: -> User_Error: Table 'textpattern_blog1_db.rah_comment_spam' doesn't exist on line 453...

How i should create table “rah_comment_spam”?

I think you can ignore that. Looking at the code and changelog for v0.6, it seems that Jukka ditched the “rah_comment_spam” table and switched to saving the settings under Admin › Preferences. The install routine tries to sensibly migrate any old settings to the new format and then delete the no longer needed “rah_comment_spam” table if it exists. The error should therefore only appear during installation.

(It shows an error because that particular line of the code uses an @-operator to suppress any potential errors but that error silencing method no longer works in PHP 8.)


TXP Builders – finely-crafted code, design and txp

Offline

#5 2022-01-16 18:26:37

freshmeat123
New Member
Registered: 2022-01-15
Posts: 3

Re: Badly formed or empty plugin code

it’s clear now…
thx, Jakob.

Offline

Board footer

Powered by FluxBB