Setup:
- IIS 8
- MS SQL Server 2012
- Drupal 8.3.6
- PHP 7.1.7
Repro steps:
- Manually install module.
- Go to the /admin/config/development/backup_migrate
The website encountered an unexpected error. Please try again later.
TypeError: Argument 2 passed to BackupMigrate\Core\Plugin\PluginManager::add() must implement interface BackupMigrate\Core\Plugin\PluginInterface, null given, called in \modules\contrib\backup_migrate\src\EntityPlugins\SourcePluginBase.php on line 23 in BackupMigrate\Core\Plugin\PluginManager->add() (line 74 of modules\contrib\backup_migrate\vendor\backupmigrate\core\src\Plugin\PluginManager.php).BackupMigrate\Core\Plugin\PluginManager->add('entire_site', NULL) (Line: 23)
BackupMigrate\Drupal\EntityPlugins\SourcePluginBase->alterBackupMigrate(Object, 'entire_site', Array) (Line: 153)
backup_migrate_backup_migrate_service_object_alter(Object, Array, NULL) (Line: 501)
Drupal\Core\Extension\ModuleHandler->alter('backup_migrate_service_object', Object, Array) (Line: 77)
backup_migrate_get_service_object() (Line: 38)
Drupal\backup_migrate\Form\BackupMigrateQuickBackupForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 514)
Drupal\Core\Form\FormBuilder->retrieveForm('backup_migrate_ui_manual_backup_quick', Object) (Line: 271)
Drupal\Core\Form\FormBuilder->buildForm('backup_migrate_ui_manual_backup_quick', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
codehitman commentedComment #3
yukare commentedI have seen an error like this because webprofiler. If you have webprofiler, disable the webprofiler and see if you still have the error. If the error is gone, try to use the dev version of webprofiler which contains a fix for this type of error.
Comment #4
codehitman commentedThanks for the response! Due to the urgency of what I was doing, I attempted another way to migrate the site; I succeeded. Hence, I cannot reproduce this error anymore- closing.
I don't recall having webprofiler on though; it was on a client computer and have no way of checking.