Undefined method for LB block

Created on 29 February 2024, 4 months ago
Updated 14 March 2024, 4 months ago

In collaboration with a maintainer, it was determined that the issue is related to adding the block in Layout Builder. It is somewhat unclear if this was there from the start or got triggered by some later change on the site. It was discovered after making changes in the error logging (to verbose logging). This message appears on pages that use the popup block inside Layout Builder:

Warning: Undefined array key "method" in Drupal\mailchimp_popup_block\Plugin\Block\MailchimpPopupBlock->build() (line 23 of modules/contrib/mailchimp_popup_block/src/Plugin/Block/MailchimpPopupBlock.php).

The proposed solution discussed with the maintainer is to define a default method to use when no method is defined.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡΄Norway jonsimonsen

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024