Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-06-14 03:07:00

ironmangary
Member
From: United States
Registered: 2022-10-13
Posts: 36

mem_self_register Errors

I need a registration plugin for a site I’m developing. I thought mem_self_register would be my best bet, but I created a very basic form, basically copying and pasting from the help.textile file, and got an error that I understand but don’t know how to troubleshoot. First, here’s my form:

<txp:mem_form_text name=“name” label=“Username” /><br /> <br />
<txp:mem_form_email name=“email” label=“E-Mail” /><br /> <br />
<txp:mem_form_submit />

And here’s the resulting error:

Tag error: <txp:mem_form_submit /> -> 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated while parsing form registration on page register
mem_form_submit()
textpattern/vendors/Textpattern/Tag/Registry.php:140 call_user_func()
textpattern/lib/txplib_publish.php:559 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:409 processTags()
textpattern/lib/txplib_misc.php:3551 parse()
textpattern/publish/taghandlers.php:543 parse_form()
output_form()
textpattern/vendors/Textpattern/Tag/Registry.php:140 call_user_func()
textpattern/lib/txplib_publish.php:559 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:409 processTags()

Can anyone help? Also, is this the plugin everybody uses for site registrations?

Offline

#2 2024-06-14 09:14:36

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

Re: mem_self_register Errors

PHP8 is pesky re types mismatch, so the plugin needs to be updated, but I can not find it. Where have you got it from?

Offline

#3 2024-06-14 12:12:08

ironmangary
Member
From: United States
Registered: 2022-10-13
Posts: 36

Re: mem_self_register Errors

I got mem_self_register and mem_form from Bloke’s GITHub:

https://github.com/Bloke/mem_self_register

https://github.com/Bloke/mem_form

Offline

#4 2024-06-14 13:56:39

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

Re: mem_self_register Errors

It’s 4 years old, no surprise the code is outdated. I’d leave the alternatives (com_connect?) with Stef, having never really used them.

Offline

#5 2024-06-14 16:57:55

ironmangary
Member
From: United States
Registered: 2022-10-13
Posts: 36

Re: mem_self_register Errors

Is someone (you, Bloke, Steph) willing to update it?

Offline

#6 2024-06-14 17:13:21

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

Re: mem_self_register Errors

I can update it but it’s quite ancient. Not sure if you’ll have more luck with mck_login, which is a little more robust. Still old though – think it’s from 2021.

# mck_login v0.1.1
# Handles site-wide logins, sessions, password recovery and self-registering
# Jukka Svahn+Casalegno Marco
# 

# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................

H4sIAAAAAAAAA+09a3PbNrbf8ysQ1bOUUpmy82rrxI7TtE1zb9J6knR2dzIeDSVCEq8pkktS
Vrxt//s9DwAESVAPJ+3uzr3uTGMTwMHBwXnjFZwc3z/5tTh5eNJLgqXsPSlOvjnpLadX4zid
Rwn+/dVJ71rmRZTSX49Oekf+sX+Mvz8+6QWrcpHm+Md9qPdfq6urQLy7DhbJly+CIojlPEnF
myCfpljl+Eg3GK/yCL/AByo4PumFspjmUVaqfr4CjH4MkjCWhSiiUh6uo1AKQqoYikIWiBD8
lgVFsU7zUORymgKeNwIaQXk8O8zlPCpKmUfJXGEO9SQhC/09wn+hk/Imk+rTkao2i4N5YX+D
agsZZ/Tr0TH+dewLQ6Q7dzJfPBfZahJH08MC8cziFRSIWZqL3nv5scyCEhBJxIs373oni7LM
TkajsvruT9OlLz7fcH2gOTSf3Ah7Sqqe1xF2i72O5in8n4D0mjOmq6/Xa/8ql0GZ5tKPypFP
A36/iArAIkvFJA+S6QIQn+UAqgnGKzoBCZs0TLKhsJhPtwMyrpZ+g16j60iuyzSLpn62yJ5F
4emDrx58feSLvy6iWIoS0TOgRA9gXPVEmMoi8UrAO4jjG1EsglzC4G/ENAV6AVkW0FCKNI+g
URDz50lQyKGISgEQ8fdQpAn8CZ+SqIwYUBnkJRQEhQhg/pYZYAC4TheaVlIsA0ADJjUQH9KZ
WEaJvBRrqF+mYhZ9hCmcgk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JXojEKoH6cZLgZNAzoAiHIMTeScYgvqpeLvKIGY
4xBlhTUOWV/oOl0XlmzaoqN0Iiodn16TVePWGhR0THQI4dJSo0QHryiGb717q5QkOK583OcQ
TD6QMidRbJ6ZVGv+3SXg/NplvOut+QncKvtL7V22Zl0+q+fokDZntj47KuKe+sZnSxs4S5wf
20NT6qb2uaZMaiW1lW93G7pJhDjzR8VpfcvzM/w40JOm1PEiyDI0FsRXdXNPbiRmys7bDysP
zk2YMdTHUoCRpmDM0GrNgmJBF0cXYFxRl+Oj8gmMimxLmAL7g2Zbo5eALGf7xWTpLUTYY3iH
im1kOHqETxQDR2Z7q5I2CNIplZJT4gB2yC5HqUqMqGivgMw0yA0a9UUESgVsP0oONuM7UTS1
mYI5iw3vkiIN8wpUKtCkJqQ0YKugsqyIBuh5sMBSZb35YswbtYNU34u5oqOOPa2eAvDCK4Xu
DDQSWY7W0VU0ipJQfiTPuYzKWJ4+Ry9sCoJ0AUE1MDJ6Dl9cEOAxAR4bwPTem48HHhEfvGsZ
XOoheTfgJK8y0ecTWkAs04aLaYR4sxJgS4dXMNQRVo8DINcX4mUeTDC5kmY3qGJ7NbPwaUbF
B/AvEC6FTbjXCFCGuSNs3HQUfeDu88oiXx/5xwjqfIDA3tcmLeLZlPyEOOZR8WqdkHkb9/8u
A+g6LkAwQP9ix3Mea82vnEXoXweCJ256RUTpveyoqbLkqm7RZIA9nAIDg6we8hk542vwopP5
Cpc7RHAdRDH6xTVCZtieZhcRKrQHXhjK4jyDpnmt4ECDRMai//5vF6PneBnXyOIBcWbqDUA6
mWsmaVmmSx3N0OU0yHzFgjQOukOBGCtZUloFhsiy6WPc/uCktwwf0W/3T3oPZw8kuPpfhV99
c3wcPnj81ePgm6PHYRiE30yOjh8/6D35/X8BT2Bl6eGTAAA=

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

#7 2024-06-14 17:31:42

ironmangary
Member
From: United States
Registered: 2022-10-13
Posts: 36

Re: mem_self_register Errors

Thanks. I did try mck_login, and I was able to get logins and logouts working fine. However, registrations and password resets did not work. If you’d prefer, I can send debugging output for mck_login. I am not picky which plugin I use; I just need a way to have users self-register and log in/out to the site securely, and not the admin area.

Offline

#8 2024-06-15 15:06:38

ironmangary
Member
From: United States
Registered: 2022-10-13
Posts: 36

Re: mem_self_register Errors

Well, mck_login was last updated 11 years ago, so that’s a bit scarier.

Can com_connect be expanded upon to handle user registration, logins, forgotten passwords, and password changes? I don’t mean updating the plugin, but used in conjunction with other php code.

Last edited by ironmangary (2024-06-15 15:19:02)

Offline

#9 2024-06-15 15:56:56

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

Re: mem_self_register Errors

Yes, in a way. The beauty of com_connect is it’s evolved into a framework that can act as the hub of other stuff while retaining its default operation of being a contact form emailer.

The downside is that to do ‘other stuff’ you need one or more’plugins to hook into it. Currently, for example, I’m using it to capture sign-ups for a conference. It presents the form as normal, there’s some JS that hooks into it to provide realtime updates to pricing fields and then, on submission, another module takes over and inserts the data into the users table, along with smd_bio information. That essentially creates them a user account (albeit without a password) using a custom user level created by smd_user_manager. After that, com_connect then carries on, emailing the form to the event coordinator so they can arrange payment, and sends a copy of the form to the registrant.

But it’s very custom code, whereas something like mck_login is dedicated to the task of inserting stuff into the database and handling logins and passwords.

So, in short, yes it could be done. But you’d be reinventing what’s already been written in other plugins.

I think it would be easier and more robust to spend the time bringing either mem_self_register or mck_login up to PHP 8 standards.


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

#10 2024-06-15 16:46:29

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

Re: mem_self_register Errors

I think etc_post can handle it. Try this in some (well hidden) article/page:

<form action="<txp:page_url />" method="post">
  <input name="name" placeholder="Login" value='<txp:page_url type="name" />' required="required" />
  <input name="RealName" placeholder="Real Name" value='<txp:page_url type="RealName" />' required="required" />
  <input name="email" placeholder="Email" value='<txp:page_url type="email" />' required="required" />
  <input type="submit" />
</form>

<txp:if_request type="post" name="name" value>
<txp:etc_post user="admin" event="admin" step="author_save_new" post="name, RealName, email">
privs=4
language=en
</txp:etc_post>
</txp:if_request>

If admin user has logged in recently (within 3 months?), it should act as if he were creating a new user and sending him a registration email.

Offline

#11 2024-06-15 18:05:21

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

Re: mem_self_register Errors

Niiiiiiiice!


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

#12 2024-06-15 19:35:49

ironmangary
Member
From: United States
Registered: 2022-10-13
Posts: 36

Re: mem_self_register Errors

I tried that code and got this:

Tag error: <txp:etc_post user=“slamadmin” event=“admin” step=“author_save_new” post=“name, RealName, email”>
privs=4
language=en
</txp:etc_post> -> Warning: file_get_contents(https://stage.slamsim.net/textpattern/index.php): Failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error while parsing form registration on page register
textpattern/plugins/etc_post/etc_post.php:67 file_get_contents()
etc_post()

This is on shared hosting and I don’t think I can access the error log until tomorrow to see if there is more details. I’ll keep you posted.

Offline

Board footer

Powered by FluxBB