Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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');
Comment | File | Size | Author |
---|---|---|---|
#2 | simplysignups_3079427-2_missing_dateformatter.patch | 1.86 KB | Michelle |
Comments
Comment #2
MichelleThis patch adds the missing property and DI to go with it.
Comment #3
anthonyf CreditAttribution: anthonyf at Mediacurrent commentedAfter 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!
Comment #4
anthonyf CreditAttribution: anthonyf at Mediacurrent commentedComment #5
BruFFy CreditAttribution: BruFFy commentedHI guys,
I've applied both patches and I have no more errors when I stay under 128 max attending.
Thank you!
Comment #6
irodriguez CreditAttribution: irodriguez commentedHello 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?
Comment #7
MichelleWelcome 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.
Comment #9
MichelleCommitted. :)
Comment #11
kecinzer CreditAttribution: kecinzer as a volunteer commentedThis 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).