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

Latest 'Site main menu block' changes throw PHP warning when initializing behat

XMLWordPrintable

    • 1
    • HQ 2025 Sprint I2.1 Moppies

      This is breaking the app's Github Actions. We use moodle-plugin-ci to initialize the environment, and we're getting the following error:

      PHP error message was detected when running this command:                    
          '/usr/bin/php8.2' '-d' 'log_errors=1' '-d' 'error_log=null' '/home/runner  
        /work/moodleapp/moodleapp/moodle/admin/tool/behat/cli/util_single_run.php' '--install'                                                                  
        Moodle scripts should run without any PHP errors.                            
                                                                                     
        Error Output                                                                 
        ============                                                                 
        PHP Warning:  Undefined property: stdClass::$format in /home/runner/work/moodleapp/moodleapp/moodle/course/format/classes/base.php on line 193  

      We were able to reproduce this in a local environment running:

       php admin/tool/behat/cli/util_single_run.php --install

      It seems the issue is caused by the changes done in MDL-85392.

            sarjona Sara Arjona (@sarjona)
            dpalou Dani Palou
            Carlos Escobedo Carlos Escobedo
            Laurent David Laurent David
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 7 minutes
                2h 7m

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