getCacheTagsToInvalidate() called on null when uninstalling Page Manager module

Created on 29 March 2016, about 9 years ago
Updated 16 May 2025, 3 days ago

I'm having issues uninstalling the Page Manager module. When uninstalling, I get the following error. As a method is called on null, this indicates a bug. The error occurs both when uninstalling through the UI or through drush. After a cache rebuild (drush cr all) the problem seems to be gone, but I thought this might still be worth reporting.

# drush pm-uninstall page_manager
The following extensions will be uninstalled: page_manager
Do you really want to continue? (y/n): y
PHP Fatal error:  Call to a member function getCacheTagsToInvalidate() on null in /[path_to_drupal]/modules/page_manager/src/Entity/PageVariant.php on line 179

Fatal error: Call to a member function getCacheTagsToInvalidate() on null in /[path_to_drupal]/modules/page_manager/src/Entity/PageVariant.php on line 179
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                                  [error]
Error: Call to a member function getCacheTagsToInvalidate() on null in /[path_to_drupal]/modules/page_manager/src/Entity/PageVariant.php, line 179
πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands P44T

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