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

Moodle installer silently fails without php5-json

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.5, 2.6.2
    • Fix Version/s: 2.5.6, 2.6.3
    • Component/s: Installation
    • Labels:
    • Database:
      PostgreSQL
    • Testing Instructions:
      Hide

      1/ provision a development environment without php5-json
      2/ attempt to install moodle
      3/ verify that a message 'Moodle requires the json PHP extension. Please install or enable the json extension.' is emitted and script execution halts after the generation of a config.php file
      4/ install php5-json
      5/ verify that the message is no longer displayed and the dependency checker is shown instead

      Show
      1/ provision a development environment without php5-json 2/ attempt to install moodle 3/ verify that a message 'Moodle requires the json PHP extension. Please install or enable the json extension.' is emitted and script execution halts after the generation of a config.php file 4/ install php5-json 5/ verify that the message is no longer displayed and the dependency checker is shown instead
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-44582-master

      Description

      As per topic, the Moodle installer silently fails after the creation of config.php if php5-json is not present in the environment, e.g. Ubuntu 13.10 by default. I realise it's a listed Moodle dependency, but 1) that's what the subsequent dependency checker is for, and 2) I've noted a few people running into this issue online.

      Reproduction steps:

      • Provision a development environment without php5-json (e.g. stock Ubuntu Server 13.10, sudo apt-get install postgresql apache2 php5 php5-cli php5-pgsql)
      • Attempt to install Moodle.

      What I expected:

      • I expected to see the dependency checker.

      What actually happens:

      • A blank screen is displayed, with no error information on 2.6 and master (2.5 displays an error if display_errors = On in php.ini)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14