-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal Error Call to a member function rollback() on null #18
Comments
To fix the immediate error you could just remove the module (or theme) and then run
for whatever reason, a corresponding write class isn't being found, thus the fatal error. So that above logic could throw a better exception/error with relevant details, or just log the error as a warning and allow composer to continue on. |
Thanks for the report! This should be fixed in the latest version now. |
This was reported while using Though it got bypassed once I removed/deleted the |
Hi,
I hope this is the right place to post this, and if it's not, I apologize. I'm getting this error:
PHP Fatal error: Uncaught Error: Call to a member function rollback() on null in /drupalpath/vendor/drupal-composer/info-rewrite/src/DrupalInfo.php:138
Stack trace:
#0 /drupalpath/vendor/drupal-composer/info-rewrite/src/DrupalInfo.php(111): DrupalComposer\Composer\DrupalInfo->doRollback(Object(Composer\Package\AliasPackage))
#1 [internal function]: DrupalComposer\Composer\DrupalInfo->rollbackRewrite(Object(Composer\Script\Event))
#2 phar:///usr/local/Cellar/composer/1.8.0/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#3 phar:///usr/local/Cellar/composer/1.8.0/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#4 phar:///usr/local/Cellar/composer/1.8.0/bin/composer/src/Composer/Installer.php(205): Composer\EventDispatcher\EventDispatcher->dispatchScript('pre-update-cmd', true) in /drupalpath/vendor/drupal-composer/info-rewrite/src/DrupalInfo.php on line 138
Fatal error: Uncaught Error: Call to a member function rollback() on null in /drupalpath/vendor/drupal-composer/info-rewrite/src/DrupalInfo.php:138
Stack trace:
#0 /drupalpath/vendor/drupal-composer/info-rewrite/src/DrupalInfo.php(111): DrupalComposer\Composer\DrupalInfo->doRollback(Object(Composer\Package\AliasPackage))
#1 [internal function]: DrupalComposer\Composer\DrupalInfo->rollbackRewrite(Object(Composer\Script\Event))
#2 phar:///usr/local/Cellar/composer/1.8.0/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(176): call_user_func(Array, Object(Composer\Script\Event))
#3 phar:///usr/local/Cellar/composer/1.8.0/bin/composer/src/Composer/EventDispatcher/EventDispatcher.php(96): Composer\EventDispatcher\EventDispatcher->doDispatch(Object(Composer\Script\Event))
#4 phar:///usr/local/Cellar/composer/1.8.0/bin/composer/src/Composer/Installer.php(205): Composer\EventDispatcher\EventDispatcher->dispatchScript('pre-update-cmd', true) in /drupalpath/vendor/drupal-composer/info-rewrite/src/DrupalInfo.php on line 138
I'm not sure what to do.
The text was updated successfully, but these errors were encountered: