I put Drupal with this composer create-project drupal-composer/drupal-project:~8.0 . --stability dev --no-interaction composer create-project drupal-composer/drupal-project:~8.0 . --stability dev --no-interaction and after installation (without errors) it produces the following error log at http://www.drupal.test/core/install.php (drupal.test is my virtual host)

  Additional uncaught exception thrown while handling exception. Original TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::reset() must be an instance of Doctrine\Common\Annotations\void, none returned in Doctrine\Common\Annotations\AnnotationRegistry::reset() (line 55 of /var/www/drupal.test/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php). Doctrine\Common\Annotations\AnnotationRegistry::reset() (Line: 113) Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery->getDefinitions() (Line: 86) Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 283) Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 174) Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 109) Drupal\Core\Render\ElementInfoManager->buildInfo('seven') (Line: 76) Drupal\Core\Render\ElementInfoManager->getInfo('form') (Line: 806) Drupal\Core\Form\FormBuilder->prepareForm('install_select_language_form', Array, Object) (Line: 272) Drupal\Core\Form\FormBuilder->buildForm('install_select_language_form', Object) (Line: 890) install_get_form('Drupal\Core\Installer\Form\SelectLanguageForm', Array) (Line: 1316) install_select_language(Array) (Line: 662) install_run_task(Array, Array) (Line: 540) install_run_tasks(Array) (Line: 117) install_drupal(Object) (Line: 44) Additional TypeError: Return value of Doctrine\Common\Annotations\AnnotationRegistry::reset() must be an instance of Doctrine\Common\Annotations\void, none returned in Doctrine\Common\Annotations\AnnotationRegistry::reset() (line 55 of /var/www/drupal.test/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationRegistry.php). Doctrine\Common\Annotations\AnnotationRegistry::reset() (Line: 113) Drupal\Component\Annotation\Plugin\Discovery\AnnotatedClassDiscovery->getDefinitions() (Line: 86) Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 283) Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 174) Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 109) Drupal\Core\Render\ElementInfoManager->buildInfo('seven') (Line: 76) Drupal\Core\Render\ElementInfoManager->getInfo('html') (Line: 298) Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 195) Drupal\Core\Render\Renderer->render(Array, 1) (Line: 139) Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 576) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 140) Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 66) Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 76) Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 996) install_display_output(Array, Array, Array) (Line: 264) _drupal_log_error(Array, 1) (Line: 584) _drupal_exception_handler(Object) 
  • delete and download the archive to install through the usual installer ... - user33274
  • Still, it's interesting what's wrong with the standard installation - darkwoolf
  • And besides, your method did not help - darkwoolf
  • I had to do this many times ... it always worked for me - user33274
  • Look, I download the tar.gz archive, unpack it, give it all rights, and it turns out that without setting up again just the HTML login form without any styles, and before that, I didn’t enter anything like username or password - darkwoolf

1 answer 1

Most likely the problem is that Doctrine has been updated, and in its php7.1 requirements, and on the server it is different.

Solutions 2:

  1. here , this can be checked with the command composer show -t > dependencies.txt
  2. in composer.json limit the version of php .