TypeError: strpos(): Argument #1 ($haystack) must be of type string, null given in strpos()

Created on 10 November 2022, over 2 years ago
Updated 18 August 2023, almost 2 years ago

Problem/Motivation

After deleting a template from Mailchimp Transactional that is still being used in a template map, editing the template map crashes the page.

Steps to reproduce

  1. Add a template to Mailchimp Transactional
  2. Add a template map to the module, using the template you just added
  3. Delete the template in Mailchimp Transactional
  4. Try to edit the template map. The page fails with the following error: TypeError: strpos(): Argument #1 ($haystack) must be of type string, null given in strpos()

Proposed resolution

Handle missing templates more gracefully.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024