This may be a duplicate of #3077098: The website encountered an unexpected error, when Signing up but it's hard to say for sure since the poster didn't include the actual error and there are at least 2 fatal errors on the form. This issue deals with:

Call to a member function format() on null in Drupal\simply_signups\Form\SimplySignupsForm->submitForm()

This is due to this line, which is trying to use the dateFormatter property, which doesn't exist:

$date = $this->dateFormatter->format($requestTime, 'custom', 'm/d/Y - h:i a');

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle created an issue. See original summary.

Michelle’s picture

Status: Active » Needs review
FileSize
1.86 KB

This patch adds the missing property and DI to go with it.

anthonyf’s picture

After installing Simply Signups and creating a node with a signup form, I also got a fatal error the first time the form was submitted.

Patch #2 resolved the issue for me. The code change looks good also. Thanks!

anthonyf’s picture

Status: Needs review » Reviewed & tested by the community
BruFFy’s picture

HI guys,

I've applied both patches and I have no more errors when I stay under 128 max attending.
Thank you!

irodriguez’s picture

Hello all,

I'm really amped to see people taking an interest in this module. I am still new to the contributing side of things, do I need to do anything to make sure that you guys get proper credit for your patches and help?

Michelle’s picture

Welcome back!

I put instructions over in https://www.drupal.org/project/simply_signups/issues/3079430#comment-132... . Let me know if you need any further help. I plan to do more work on this module in October. The rest of September is unfortunately really swamped.

  • Michelle committed 1d7f1fb on 8.x-2.x
    Issue #3079427 by Michelle, degoethe: Missing DateFormatter in form...
Michelle’s picture

Status: Reviewed & tested by the community » Fixed

Committed. :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kecinzer’s picture

This causes still errors for me after save...

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column 'start_date' at row 1: INSERT INTO {simply_signups_settings} (nid, start_date, end_date, path, max_signups, status, admin_mail, admin_send_mail, admin_subject, admin_message, admin_format, client_send_mail, client_subject, client_message, client_format, updated, created) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12, :db_insert_placeholder_13, :db_insert_placeholder_14, :db_insert_placeholder_15, :db_insert_placeholder_16); Array ( [:db_insert_placeholder_0] => 6 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => 0 [:db_insert_placeholder_6] => [:db_insert_placeholder_7] => 0 [:db_insert_placeholder_8] => RSVP for: [node:title] [:db_insert_placeholder_9] =>

A RSVP has been submitted for an event below.

[node:title]

[node:url]

[:db_insert_placeholder_10] => basic_html [:db_insert_placeholder_11] => 0 [:db_insert_placeholder_12] => RSVP Confirmation: [node:title] [:db_insert_placeholder_13] =>

Thank you for your RSVP!

We're happy to see that you're interested in coming to our event, [node:title]!

You can find event details at [node:url]

If you are no longer able to attend the event, that's fine! We kindly ask that you let us know by contacting us at: [site:mail].

Thank you! We look forward to seeing you soon.

Sincerely,
[site:name]

[:db_insert_placeholder_14] => basic_html [:db_insert_placeholder_15] => 1582092253 [:db_insert_placeholder_16] => 1582092253 ) v Drupal\simply_signups\Form\SimplySignupsNodesSettingsForm->submitForm() (řádek 334 souboru /mnt/data/accounts/p/pivnitv/data/www/nomad/modules/contrib/simply_signups/src/Form/SimplySignupsNodesSettingsForm.php).