Skip to content
Snippets Groups Projects
  1. Sep 14, 2023
  2. Apr 22, 2022
  3. Apr 11, 2022
  4. Mar 31, 2022
  5. May 06, 2021
  6. Aug 05, 2020
  7. Jul 03, 2018
  8. Jun 28, 2018
  9. Jun 26, 2018
  10. Jun 14, 2018
  11. Jun 13, 2018
  12. Apr 27, 2018
  13. 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
  14. Feb 13, 2018
  15. Dec 18, 2017
Loading