I use Composer template for Drupal project (https://github.com/drupal-composer/drupal-project) and there is no core .git repository in there. So on /admin/modules I have a lot of errors:

Notice: Undefined index: version in Drupal\system\Form\ModulesListForm->buildRow() (line 233 of core/modules/system/src/Form/ModulesListForm.php).
Drupal\system\Form\ModulesListForm->buildRow(Array, Object, 'Drupal') (Line: 174)
Drupal\system\Form\ModulesListForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 520)
Drupal\Core\Form\FormBuilder->retrieveForm('system_modules', Object) (Line: 277)
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: 572)
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: 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: 39)
Drupal\rg_location\RedirectToCityMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

super_romeo created an issue. See original summary.

super_romeo’s picture

Title: Module use .git-repository » Silently set 'version'=NULL if .git-repository does not exists
super_romeo’s picture

Issue summary: View changes
darren oh’s picture

Status: Active » Closed (duplicate)

Logic for version detection is fixed in #1254200-6: Fix dev release time. Please review and test.

darren oh’s picture