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

Admin / Environment checks for zend.exception_ignore_args

XMLWordPrintable

    • MOODLE_500_STABLE
    • MOODLE_401_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE
    • MDL-84918-401
    • MDL-84918-404
    • MDL-84918-405
    • MDL-84918-500
    • MDL-84918-main
    • Hide

      Setup

      We are going to temporarily disable the forced setting on of `zend.exception_ignore_args`. Your current Moodle config may or may not require this, depending on your debug settings and overrides. Easier to just comment it out.

      1. Open lib/setup.php and comment out the two references to `ini_set('zend.exception_ignore_args', '1');`

      Test

      1. Edit your php.ini with `zend.exception_ignore_args = Off`
      2. Restart your PHP and web server
      3. Log in as admin
      4. Go to Site admin -> Server -> Environment
      5. CONFIRM you see `zend.exception_ignore_args` with the status 'check' (yellow)
      6. CONFIRM you see the message `It is strongly recommended that the PHP setting zend.exception_ignore_args be enabled as a security precaution.`
      7. Edit your php.ini with `zend.exception_ignore_args = On`
      8. Restart your PHP and web server
      9. Go to Site admin -> Server -> Environment
      10. CONFIRM you see `zend.exception_ignore_args` with the status 'OK'

       

      Repeat these steps in an older version of Moodle < 5.1:

      1. Go to Site admin -> Server -> Environment
      2. Select '5.1 upwards' under the Moodle version select
      3. CONFIRM you only see the new `php_setting` `zend.exception_ignore_args` for Moodle version 5.1 upwards (and any relevant warnings if zend.exception_ignore_args is not enabled).
      Show
      Setup We are going to temporarily disable the forced setting on of `zend.exception_ignore_args`. Your current Moodle config may or may not require this, depending on your debug settings and overrides. Easier to just comment it out. Open lib/setup.php and comment out the two references to `ini_set('zend.exception_ignore_args', '1');` Test Edit your php.ini with `zend.exception_ignore_args = Off` Restart your PHP and web server Log in as admin Go to Site admin -> Server -> Environment CONFIRM you see `zend.exception_ignore_args` with the status 'check' (yellow) CONFIRM you see the message `It is strongly recommended that the PHP setting zend.exception_ignore_args be enabled as a security precaution.` Edit your php.ini with `zend.exception_ignore_args = On` Restart your PHP and web server Go to Site admin -> Server -> Environment CONFIRM you see `zend.exception_ignore_args` with the status 'OK'   Repeat these steps in an older version of Moodle < 5.1: Go to Site admin -> Server -> Environment Select '5.1 upwards' under the Moodle version select CONFIRM you only see the new `php_setting` `zend.exception_ignore_args` for Moodle version 5.1 upwards (and any relevant warnings if zend.exception_ignore_args is not enabled).
    • Hide

      Code verified against automated checks.

      Checked MDL-84918 using repository: https://github.com/davewoloszyn/moodle.git

      More information about this report

      Built on: Mon Apr 7 04:20:19 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84918 using repository: https://github.com/davewoloszyn/moodle.git MOODLE_401_STABLE (0 errors / 0 warnings) [branch: MDL-84918-401 | CI Job ] MOODLE_403_STABLE (0 errors / 0 warnings) [branch: MDL-84918-403 | CI Job ] MOODLE_404_STABLE (0 errors / 0 warnings) [branch: MDL-84918-404 | CI Job ] MOODLE_405_STABLE (0 errors / 0 warnings) [branch: MDL-84918-405 | CI Job ] main (0 errors / 0 warnings) [branch: MDL-84918-main | CI Job ] More information about this report Built on: Mon Apr 7 04:20:19 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-84918 -main https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19144/ PHPUnit (sqlsrv / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65412/ Behat (NonJS - boost and classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65413/ Behat (Firefox - boost / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65414/ Behat (Firefox - classic / complete) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65415/ App tests (stable app version) / complete) Built on: Tue Apr 29 03:57:47 UTC 2025
    • 2
    • Team Hedgehogs 2025 Sprint 1.4, Team Hedgehogs 2025 Sprint 2.0, Team Hedgehogs 2025 Sprint 2.1

      We can/should add admin and environment checks to ensrue that zend.exception_ignore_args is on.

        1. (1) 10 Passed -- (Main)MDL-84918.png
          197 kB
          Kim Jared Lucas
        2. (1) 6 Passed -- (Main)MDL-84918.png
          126 kB
          Kim Jared Lucas
        3. (2) 3 Passed -- (Main)MDL-84918.png
          203 kB
          Kim Jared Lucas

            david.woloszyn@moodle.com David Woloszyn
            dobedobedoh Andrew Lyons
            Raquel Ortega Raquel Ortega
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 48 minutes
                1d 3h 48m

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