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

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

XMLWordPrintable

    • 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.

      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

            nebgor Aparup Banerjee
            jtomkinson Jordan Tomkinson
            Rajesh Taneja Rajesh Taneja
            Sam Hemelryk Sam Hemelryk
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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