Thread "PHP7 - Warnings on command - setup/setup.php update"

Tabs

  • kinimodmeyer
    kinimodmeyer | kinimodmeyer | 10. Mar 2022, 08:55
    Edited on: 10. Mar 2022, 08:57 - by kinimodmeyer | kinimodmeyer
    PHP7 - Warnings on command - setup/setup.php update
    hello together,

    i have the following warnings when i do a "php setup/setup.php update".

    1. On step "Module- and Servicedefinitions are stored. Events are initialized.... i get several:
    • PHP Notice:  Undefined offset: 9 in /var/.../ilias/Services/Calendar/classes/class.ilDateTime.php on line 430

    2. On some plugin steps i get undefined variable "responsible", "responsible_mail"
    • Update plugin language InteractiveVideoReference.... [OK]
      • PHP Notice: Undefined variable: responsible in /var/.../ilias/Services/Component/classes/class.ilPluginAdmin.php on line 243
      • PHP Notice: Undefined variable: responsible_mail in /var/.../ilias/Services/Component/classes/class.ilPluginAdmin.php on line 244

    Can someone give me some hints how i might fix them?
    Thx!

  • wolfganghuebsch
    wolfganghuebsch | wolfganghuebsch (Moderation) | 15. Mar 2022, 07:29
    Re: PHP7 - Warnings on command - setup/setup.php update
    Hi Dominik!

    These are no Errors. There are several ways to suppress them. Example for PHP 7.4: https://www.simplified.guide/php/suppress-warning-error

    Cheers,
    Wolfgang
  • utesche
    utesche | utesche | 16. Mar 2022, 12:30
    Re: PHP7 - Warnings on command - setup/setup.php update
    Hi Dominik,

    your "... update" command was performed without using option "--no-plugins" (see: https://github.com/ILIAS-eLearning/ILIAS/tree/release_7/setup#readme), so per default plugins are "updated" too.  That's ok.
    Obviously the plugin processed "after" plugin InteractiveVideoReference does not provide some mandatory informations in its file 'plugin.php':
    - responsible    and
    - responsible_mail.

    And this deficit is "detected" in ilPluginAdmin by issueing the two PHP notices...
    Check for a valid 'plugin.php' of all present plugins to identify the troublemaker - and look for a better update of the plugin, or supply your own dummy entries therein to avoid the notices.

    wbr,
    Uwe