Duplicate declaration of static variable $indent

Created on 8 July 2025, 6 days ago

Problem/Motivation

I am hoping to add Slack notification capability to my Drupal 11 site. So far, I've installed (on dev site):

* Push Framework
* Push Framework Slack
* Advanced Queue
* DANSE
* DANSE Content
* Drupal Audit Notification Subscription Event
* ECA: DANSE Integration
* ECA Core

Cron no longer works. I get the following error:

Duplicate declaration of static variable $indent in /vendor/pixel418/markdownify/src/Converter.php

Apparently, pixel418/markdownify is a dependency of pf_slack 2.3.0.

Running on RHEL 9.6 with PHP 8.3.23.

Any help resolving this so that cron and Slack notifications work would truly be appreciated.

Thank you and best regards,

Steve

Steps to reproduce

Install the modules listed above.
Configure modules.
Configure content type (I used Knowledgebase Article) to send notification when a new article is created.
No notification is sent to Slack.
Run cron from the Drupal UI - get this error:

This page isn’t working
c210edru09 is currently unable to handle this request.
HTTP ERROR 500

run drush cron - get this error:

PHP Fatal error: Duplicate declaration of static variable $indent in /var/www/html/vista9dev/vendor/pixel418/markdownify/src/Converter.php on line 558
[warning] Drush command terminated abnormally.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.3

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024