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

Whoops exception excepts and breaks the exception display

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-81419-main
    • Hide
      1. Open /index.php in your editor
      2. After the line to include config.php add:

        throw new \Exception('Example');
        

      3. Save the file
      4. Install composer dependencies, for example by initing phpunit or behat:

        mdk phpunit
        

      5. Ensure debuging mode is enabled

        mdk run dev
        

      6. Open /index.php in your browser
        1. Confirm you get a pretty error page
      Show
      Open /index.php in your editor After the line to include config.php add: throw new \Exception('Example'); Save the file Install composer dependencies, for example by initing phpunit or behat: mdk phpunit Ensure debuging mode is enabled mdk run dev Open /index.php in your browser Confirm you get a pretty error page

      An exception thrown from an endpoint file will now break Whoops since MDL-80206

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Jake Dallimore Jake Dallimore
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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