Problem/Motivation

After updating from 8.x-2.2 to 8.x-2.3 I have the following PHP Fatal error

Fatal error: Cannot redeclare template_whisperer_theme_suggestions_alter() (previously declared in /htdocs/modules/contrib/template_whisperer/template_whisperer.module:14) in /htdocs/modules/contrib/template_whisperer/inc/suggestions/entity.inc on line 14

Should happen when you use composer to manage your Drupal installation. And if you applied the patch "Suport for Page level suggestion" and try to update from 2.2 to 2.3 . The reason is that Composer try to apply the patch over 2.3 at that fail.

Proposed resolution

Just remove the patch from your composer.json and do the update for the module.

Comments

redzeuf created an issue. See original summary.

wengerk’s picture

Thanks for pointing that for future developers !

Indeed, patch 3087804-02.patch from #3087804: Support for Page level suggestion should not be applied on TW 2.3+ it has been commit and rewrite in 3087804-03.patch.

Status: Fixed » Closed (fixed)

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