User registration silently fails - how to debug?

Drupal Answers Asked by Druvision on December 5, 2020

On our Drupal 7 site, user registration silently fails.
Drupal doesn’t even reach the form’s validation functions.

What we checked:

  • disabling javascript didn’t help.
  • Removing installed modules related to registration such as : logintoboggan, user_registrationpassword didn’t help.
  • Error logs show nothing.
  • The user module is of course enabled, people are able to login as usual.

Please advise where to put tests to see where execution is stopped.

Thanks in advance


One Answer

Recommended steps to trace the error:

  1. Look at watchdog (which you did)
  2. Look at the systems php and apache (or whatever you use) error logs
  3. Take a local copy of the site and start digging

You can find your system logs (php and apache) by looking at the php info under "Admin > Reports > Status > PHP".

For local debugging:

My first point of entry would be the form definition. You could try for example to add an #after_build callback that get's called once the form has been fully build, and then check which validation and submit handlers are registered.

In your case I would suppose though, that you don't need to go that far. It's probably pretty basic error that will show of in the system logs.

Answered by berliner on December 5, 2020

Add your own answers!

Related Questions

“&” displaying as “&”

1  Asked on February 28, 2021 by mohk


Confirmation pop up on login submit

1  Asked on February 22, 2021 by vipin-p


Override a node page of specific content with views page

1  Asked on February 21, 2021 by hkguile


Hide Alt and Title for image field

2  Asked on February 20, 2021 by moto


How do I update from 9.0.10 to 9.1.0?

1  Asked on February 19, 2021 by user101999


Adding fields to content type edit form (not to the node itself)

1  Asked on February 18, 2021 by chris-riddell


Uploaded images in theme settings is going to be lost

3  Asked on February 13, 2021 by saidbakr


How to delete a large amount of nodes effeciently during cron?

1  Asked on February 12, 2021 by athakhan


Composer updates .htaccess file when updating

3  Asked on February 11, 2021 by albertski


How to print the Views title in page.tpl.php?

3  Asked on February 10, 2021 by szymon-panecki


May I use Bootstrap-CDN on Subtheme for production site?

1  Asked on February 7, 2021 by leelandra


Alter Webform email body

1  Asked on February 6, 2021 by lus


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir