After I patched the module with the patch in this issue: https://www.drupal.org/project/sendinblue/issues/3189471
I want to create my submit forms.

But when I go on /admin/config/system/sendinblue/sendinblue_signup_form/list
I cannot create a form because when I click on the button "Add signup Form" I obtain the following error:

The website encountered an unexpected error. Please try again later.
TypeError: Return value of Drupal\sendinblue\Tools\Model\GetSmtpTemplates::getTemplates() must be of the type array, null returned in Drupal\sendinblue\Tools\Model\GetSmtpTemplates->getTemplates() (line 50 of modules/sendinblue/src/Tools/Model/GetSmtpTemplates.php).

Can you check please?

Comments

Pekkhyu created an issue. See original summary.

luca.pecchiura’s picture

Issue summary: View changes
loicLEMEUT’s picture

Hello, I found the bug, and i will patch this soon !

loicLEMEUT’s picture

Status: Active » Needs work
donbuche’s picture

Subscribed.

andrew perriman’s picture

I am getting the same error. Any chance of a fix?

loicLEMEUT’s picture

Assigned: Unassigned » loicLEMEUT

  • 922b964 committed on 8.x-1.x
    Issue #3189646: Cannot create signup form
    
loicLEMEUT’s picture

Hi, thanks for the review.

This problem is caused by a empty list of templates, i fix this bug.

loicLEMEUT’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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