Problem/Motivation
When I tried to open the "AutoSlave Status" tab I get this fatal error:
Error: Class 'Drupal\Core\Database\Driver\autoslave\Install\Tasks' not found in db_installer_object() (line 1182 of /var/www/{project_name}/docroot/web/core/includes/install.inc).
db_installer_object('autoslave') (Line: 29)
Drupal\autoslave\Controller\AutoslaveController->autoslaveStatus()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
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}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 23)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)Steps to reproduce
1. Install 8.x-3.0-alpha5
2. Applied patch #14 from this issue https://www.drupal.org/project/autoslave/issues/3083873
3. Open "AutoSlave Status" tab
Proposed resolution
The problem is here:
AutoslaveController.php:29
$tasks = db_installer_object('autoslave');
Should be:
$tasks = db_installer_object('autoslave', 'Drupal\autoslave\Driver\Database\autoslave');
According to the parent patch, we do not copy autoclave driver to the core folder and the namespace should be changed.
Comments
Comment #2
eugene.britComment #3
eugene.britSeems I shouldn't create a separate issue for that. I've provided a patch in the scope of the parent issue. This one can be closed. Sorry.