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

PHP8: All new blog entries appear to be in the draft state by default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.11
    • 3.11
    • Blog

      There were several blogs-related behat failures on PHP8 and I traced them down to the fact that in PHP8 by default the "Publish to" field equals to "Yourself (draft)", where in PHP7 it is set to "Anyone on the site"

      This seems to be the same issue as MDL-70966

      var_dump('site' == 0);
      

      results in:

      Output for 8.0.0 - 8.0.3
          bool(false)
      Output for 7.3.0 - 7.3.27, 7.4.0 - 7.4.16
          bool(true)
      

      See https://3v4l.org/3qVO3

            marina Marina Glancy
            marina Marina Glancy
            Paul Holden Paul Holden
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            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 - 1 hour, 6 minutes
                1h 6m

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