Skip to content
Snippets Groups Projects
  1. Jun 13, 2018
  2. Apr 27, 2018
  3. Feb 28, 2018
    • Romanos Dodopoulos's avatar
      Do not hide Drupal core from the update manager · 30217973
      Romanos Dodopoulos authored
      We wanted to hide Drupal core from the update manager so people are not
      notified when there is a Drupal core security update. This works well if
      there is no local module. It just prints the following warning:
      
      ```
      Warning: Invalid argument supplied for foreach() in
      template_preprocess_update_report() (line 44 of
      /drupal/8.4.5/core/modules/update/update.report.inc) #0
      /drupal/8.4.5/core/includes/boot
      ```
      
      This is the case when using, for instance, the
      update_notifications_disable module which the only thing that it does
      is:
      ```
      function update_notifications_disable_update_projects_alter(&$projects)
      {
        $projects = [];
      }
      ```
      
      Unfortunately, by only disabling centrally managed modules, when there
      is a local module installed there is the following error:
      
      ```
      Notice: Undefined index: drupal in update_requirements() (line 37 of
      /drupal/8.4.5/core/modules/update/update.install) #0
      /drupal/8.4.5/core/includes/bootstrap.inc(566): _drupal_error_hand
      ```
      
      That error causes the email notification to be sent. For D8 it does not
      state that there is a problem with checking the available updates like
      it does for D7. So users get emails that there are available updates
      although there is none.
      
      We need to revert that unset until we find a better solution.
      30217973
  4. Feb 13, 2018
  5. Dec 18, 2017
Loading