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

/lib/form/recaptcha.php should require parent libraries

    XMLWordPrintable

Details

    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      require_once('HTML/QuickForm/input.php');

      Show
      require_once('HTML/QuickForm/input.php');
    • Easy
    • Hide

      Create an mform with only a captcha element
      Test theres no need to require any HTML/Quickform stuff when using recaptcha.

      Show
      Create an mform with only a captcha element Test theres no need to require any HTML/Quickform stuff when using recaptcha.

    Description

      When creating a form with only a captcha element (no text fields etc..) we receive the following Fatal error:

      Fatal error:  Class 'HTML_QuickForm_input' not found in /lib/form/recaptcha.php on line 17

      Solution is to require_once('HTML/QuickForm/input.php'); from the top of my script, but clearly this should be handled by /lib/form/recaptcha.php

      Attachments

        Activity

          People

            nebgor Aparup Banerjee
            jtomkinson Jordan Tomkinson
            Rajesh Taneja Rajesh Taneja
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Oct/11