Place the Campaign block somewhere:

The website encountered an unexpected error. Please try again later.
Error: Call to undefined function Drupal\campaignmonitor\Plugin\Block\campaignmonitor_get_campaigns() in Drupal\campaignmonitor\Plugin\Block\CampaignMonitorCampaignBlock->build() (line 27 of modules/contrib/campaignmonitor/src/Plugin/Block/CampaignMonitorCampaignBlock.php).

Patch incoming.

Comments

ptmkenny created an issue. See original summary.

ptmkenny’s picture

Status: Active » Needs review
StatusFileSize
new564 bytes

This fixes the function call, preventing the site from crashing. There is still a problem with the block though because I'm getting a:

Notice: Undefined variable: block ( /app/web/modules/contrib/campaignmonitor/src/Plugin/Block/CampaignMonitorCampaignBlock.php の 43 行目 Drupal\campaignmonitor\Plugin\Block\CampaignMonitorCampaignBlock->build() 内) array(44)

after receiving the error "Unable to fetch campaigns from Campaign monitor."

  • New Zeal committed 7780403 on 8.x-1.x authored by ptmkenny
    Issue #2941672 by ptmkenny: Campaign subscription block crashes site,...
NewZeal’s picture

Fix committed in 8.x-1.0-beta6

NewZeal’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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