Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80950

Error explode(): Passing null to parameter #2 ($string) of type string is deprecated in lib/upgradelib.php on line 1299

XMLWordPrintable

    • MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80950-403
    • MDL-80950-main
    • Hide

      Setup

      1. Edit admin/tool/dataprivacy/db/services.php and for the tool_dataprivacy_get_activity_options service, add the line 'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],:

            'tool_dataprivacy_get_activity_options' => [
                'classname'     => 'tool_dataprivacy\external',
                'methodname'    => 'get_activity_options',
                'classpath'     => '',
                'description'   => 'Fetches a list of activity options',
                'type'          => 'read',
                'capabilities'  => 'tool/dataprivacy:managedataregistry',
                'ajax'          => true,
                'loginrequired' => true,
                'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],
            ],
        

      2. Edit admin/tool/dataprivacy/version.php and bump the last number for the $plugin->version (for instance, if the value is 2023100900, the new one should be 2023100901).

      Testing instructions

      1. Run the upgrade.
      2. Check there are no errors displayed and the upgrade process finishes OK.
      Show
      Setup Edit admin/tool/dataprivacy/db/services.php and for the tool_dataprivacy_get_activity_options service, add the line 'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE] ,:     'tool_dataprivacy_get_activity_options' => [         'classname'     => 'tool_dataprivacy\external',         'methodname'    => 'get_activity_options',         'classpath'     => '',         'description'   => 'Fetches a list of activity options',         'type'          => 'read',         'capabilities'  => 'tool/dataprivacy:managedataregistry',         'ajax'          => true,         'loginrequired' => true,         'services'      => [MOODLE_OFFICIAL_MOBILE_SERVICE],     ], Edit admin/tool/dataprivacy/version.php and bump the last number for the $plugin->version (for instance, if the value is 2023100900, the new one should be 2023100901). Testing instructions Run the upgrade. Check there are no errors displayed and the upgrade process finishes OK.
    • 1
    • HQ2024 Sprint I1.1 Moppies

      After integrating MDL-78088 we started getting the following error when running the upgrade (using PHP 8.1):

      PHP Deprecated:  explode(): Passing null to parameter #2 ($string) of type string is deprecated in lib/upgradelib.php on line 1299

       

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Paul Holden Paul Holden
            Huong Nguyen Huong Nguyen
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 57 minutes
                57m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.