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

When upgrading to Moodle 2.6, if PHP version is below 5.3, install does not fail gracefully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.6.1, 2.7.5, 2.8.3
    • Installation
    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE

      setuplib.php fails on line 806 of Moodle 2.61 with

      Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /******/******/public_html/pd/lib/setup.php on line 806

      Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /******/******/public_html/pd/lib/setup.php on line 806

      Parse error: syntax error, unexpected T_STRING in //******/******/public_html/pd/lib/setup.php on line 806

      For most people, their current Moodle site is trashed (yes, let's hope they've backed up) as there is no indication that the problem is with the php version.

      As this is a common issue with upgrades, setuplib.php should instead check before line 806 (indeed before any code alters the site) and tell the user they are on PHP version 5.x where they need to be on 5.32

            Unassigned Unassigned
            brianlmerritt Brian Merritt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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