Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

POW Capture not working on Group Registrations

More
2 weeks 6 days ago - 2 weeks 6 days ago #178705 by AV/IT
Hi,
i turned on joomlas POW (Proof-of-Work) capture, acitvated capture in the Events Booking config and it instantly worked for the single person registration. 

If i try a group registration i get this:
"Deprecated: base64_decode(): Passing null to parameter #1 ($string) of type string is deprecated in /plugins/captcha/powcaptcha/src/Provider/POWCaptchaProvider.php on line 130"

Shouldn´t it just work like the single registration?

Regards
Sascha
Last edit: 2 weeks 6 days ago by AV/IT.

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago #178719 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic POW Capture not working on Group Registrations
Hi Sascha

I will have to check it and get back to you later. Look like POWCaptcha is not implemented properly to support form loaded by ajax yet.

While waiting for me to check and find a solution (not easy, I am afraid of), can you try to use a different captcha plugin ?

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago - 2 weeks 6 days ago #178725 by AV/IT
Hi Tuan,

the site is still under development. I would wait for you, if it doesn't take longer than a month 
I really like the POW capture method because it is easy to use and privacy friendly.

regards,
Sascha
Last edit: 2 weeks 6 days ago by AV/IT.

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago #178726 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic POW Capture not working on Group Registrations
OK. Thanks. But we might have to update the plugin from Joomla core to support rendering captcha for group registration (the process is handled by ajax, not like the other forms)

Tuan

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago #178727 by AV/IT
I also tested enabling POW to run automatically, instead of only running on focus. The error remains the same.

Assumption:
The ALTCHA/POW widget is rendered and/or solved, but the generated captcha payload is not being sent with the Ajax submit. As a result, Joomla appears to receive null in checkAnswer() instead of the expected base64-encoded payload.

Maybe you could you check whether all form fields are being submitted via FormData(form) during the Ajax request, especially the dynamically generated captcha/ALTCHA hidden field? It is possible that the Ajax payload is being assembled manually, or too early, before the POW captcha has written its value into the form.

If there is no captcha/ALTCHA value, the issue is likely in the plugin’s Ajax submit logic.

If there is a value, the next suspicion would be that the field name does not match what Joomla expects. For example, the plugin might send `altcha`, while Joomla expects the value under the Joomla captcha field name, such as `captcha` or `jform[captcha]`.

So the automatic POW execution only solves the proof-of-work challenge. The actual issue is most likely the transmission of the result in the Ajax request.

Please Log in or Create an account to join the conversation.

More
2 weeks 6 days ago #178728 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic POW Capture not working on Group Registrations
Not that simple. I think I know the reasons, but need to check more the source code of the plugin. This could not be solved by just adding code to Events Booking, but also by the pow captcha plugin

I will see what I can do with it

Regards,

Tuan
The following user(s) said Thank You: AV/IT

Please Log in or Create an account to join the conversation.