pulibrary / pul_library_drupal

Deprecated - Princeton University Library Core Site Drupal Codebase
https://library.princeton.edu/
GNU General Public License v2.0
3 stars 0 forks source link

Webforms that send email fail on PHP 8 #1953

Closed kevinreiss closed 1 year ago

kevinreiss commented 1 year ago

Expected behavior

When submitting a webform https://library-staging.princeton.edu/help/email-us that distributes email the form should submit and the user sees a confirmation message.

Actual behavior

Page errors out when submitting a form.

Steps to replicate

  1. Submit form: https://library-staging.princeton.edu/help/email-us

Impact of this bug

No webforms will work.

Error: Call to undefined function each() in SMTP->Data() (line 393 of /var/www/library_cap/releases/20221115230418/sites/all/modules/smtp/smtp.transport.inc).
--

See this issue for more info: https://github.com/pulibrary/special_collections/pull/724