I upgraded to the latest Upgrade Status module 3.0-alpha and attempted to scan the contributed modules. While it worked with the previous version, I now get an AJAX error message regarding a batch when attempting to scan.
An error has occurred.
Please continue to the error pageAn AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=546&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:
The following is the PHP error message that then appears when I went back to the Upgrade Status report page:
Notice: Undefined index: scan in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php).
Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary(1) (Line: 195)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('drupal_upgrade_status_summary_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, 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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Notice: Undefined index: remove in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php).
Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary(1) (Line: 195)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('drupal_upgrade_status_summary_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, 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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Notice: Undefined index: relax in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php).
Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary(1) (Line: 195)
Drupal\upgrade_status\Form\UpgradeStatusForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('drupal_upgrade_status_summary_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, 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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comments
Comment #2
JasonLuttrellComment #3
JasonLuttrellIn my DB log, I see the following warnings and errors, repeating in a loop. Not sure how or if they're all related, but note that I did switch back and forth between the last two versions, so I'm not sure which error messages pertain to which version. Both versions now cause problems, even though I switched back (and the older version worked fine previously).
* Error: "PHPStan failed:"
* Warning: "Theme hook upgrade_status_summary_counter not found."
* Notice: "Processing projects without HTTP sandboxing. cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)"
* Notice: Undefined variable: result in Drupal\upgrade_status\DeprecationAnalyzer->analyze() (line 276 of [/PATH/TO]/docroot/modules/contrib/upgrade_status/src/DeprecationAnalyzer.php)
* Warning: json_decode() expects parameter 1 to be string, array given in Drupal\upgrade_status\Form\UpgradeStatusForm->buildProjectList() (line 380 of [/PATH/TO]/docroot/modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php)
Comment #4
maxilein CreditAttribution: maxilein commentedHi,
I have some too. And they appear in this order (oldest first).
I do not get an error, though.
Notice: Undefined index: scan in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of /web/modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php)
Notice: Undefined index: remove in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of /web/modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php)
Notice: Undefined index: update in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of /web/modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php)
Notice: Undefined index: collaborate in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of /web/modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php)
Notice: Undefined index: relax in Drupal\upgrade_status\Form\UpgradeStatusForm->buildResultSummary() (line 508 of /web/modules/contrib/upgrade_status/src/Form/UpgradeStatusForm.php)
Comment #5
Gábor HojtsyComment #7
Gábor HojtsyCommitted the fixes. Please open a separate issue if there are still problems. Thanks!
Comment #8
JasonLuttrellThanks for the help. I did confirm that it works fine now.