Stacktrace of error If installation fails, and you refresh the page to /admin/modules.

For example, a refresh after this error:
Fatal error: Call to undefined function url() in /home/ubuntu/workspace/modules/xmlsitemap/xmlsitemap.install on line 298


( ! ) Fatal error: Cannot use object of type Drupal\Core\Form\FormState as array in C:\...\drupal8\modules\contrib\xmlsitemap\xmlsitemap.module on line 1568
Call Stack
# Time Memory Function Location
1 0.0021 148016 {main}( ) ..\index.php:0
2 0.0683 1267744 Drupal\Core\DrupalKernel->handle( ) ..\index.php:22
3 0.5087 9439272 Stack\StackedHttpKernel->handle( ) ..\DrupalKernel.php:563
4 0.5088 9439376 Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle( ) ..\StackedHttpKernel.php:23
5 0.5088 9439416 Drupal\Core\StackMiddleware\PageCache->handle( ) ..\ReverseProxyMiddleware.php:58
6 0.5794 9476736 Drupal\Core\StackMiddleware\KernelPreHandle->handle( ) ..\PageCache.php:52
7 0.5885 9519224 Symfony\Component\HttpKernel\HttpKernel->handle( ) ..\KernelPreHandle.php:53
8 0.5885 9519472 Symfony\Component\HttpKernel\HttpKernel->handleRaw( ) ..\HttpKernel.php:66
9 25.9968 32290272 call_user_func_array
( )
..\HttpKernel.php:145
10 25.9968 32290528 Drupal\Core\Controller\HtmlPageController->content( ) ..\HttpKernel.php:145
11 25.9968 32290576 Drupal\Core\Controller\HtmlPageController->getContentResult( ) ..\HtmlPageController.php:53
12 25.9975 32290776 call_user_func_array
( )
..\HtmlPageController.php:76
13 25.9975 32291096 Drupal\Core\Controller\FormController->getContentResult( ) ..\HtmlPageController.php:76
14 26.0070 32523480 Drupal\Core\Form\FormBuilder->buildForm( ) ..\FormController.php:81
15 37.5056 34725312 Drupal\Core\Form\FormBuilder->prepareForm( ) ..\FormBuilder.php:212
16 38.3140 36016264 Drupal\Core\Extension\ModuleHandler->alter( ) ..\FormBuilder.php:634
17 38.3162 36019424 xmlsitemap_form_alter( ) ..\ModuleHandler.php:497
18 38.3162 36019440 xmlsitemap_form_controller( ) ..\xmlsitemap.module:1575

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stella’s picture

Status: Active » Needs review
FileSize
1.47 KB

Here's a patch that fixes this error.

stella’s picture

Found more instances of $form_state being treated as an array. Updated patch attached.

stella’s picture

Fixed typo.

tadityar’s picture

Fixed more $form_state that was treated as an array.

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Looks good!

  • tadityar committed 0c5842a on 8.x-1.x
    Issue #2396675 by stella, tadityar: Fatal Error: Drupal\Core\Form\...
tadityar’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x-1.x-dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.