8.x-1.0-rc5 seems not to work

Created on 19 May 2021, over 3 years ago
Updated 13 September 2024, 3 months ago

Three months or so ago I used the Search and Replace Scanner on my Drupal 8 site, and all was perfect. Subsequently the site has been upgraded to Drupal 9 (and it uses MariaDB). Search and Replace Scanner itself has been upgraded to 8.x-1.0-rc5.

But now, any use of S&RS gives

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=69&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:

and the error page gives

The website encountered an unexpected error. Please try again later.
Error: Using $this when not in object context in Drupal\scanner\Form\ScannerForm::batchFinished() (line 309 of modules/scanner/src/Form/ScannerForm.php).
Drupal\scanner\Form\ScannerForm::batchFinished(, Array, Array, Object) (Line: 456)
_batch_finished() (Line: 98)
_batch_page(Object) (Line: 55)
Drupal\system\Controller\BatchController->batchPage(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Thanks for any help.

Martin

🐛 Bug report
Status

Closed: outdated

Component

Miscellaneous

Created by

🇺🇸United States mfricke

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