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

Moodle installer silently fails without php5-json

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.5, 2.6.2
    • 2.5.6, 2.6.3
    • Installation
    • PostgreSQL
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • MDL-44582-master
    • 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

    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)

      Attachments

        Activity

          People

            jethac Jetha Chan
            jethac Jetha Chan
            Rajesh Taneja Rajesh Taneja
            Sam Hemelryk Sam Hemelryk
            Sam Hemelryk Sam Hemelryk
            Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/May/14