mhughes2k / moodle-local_ai

1 stars 0 forks source link

Missing "allow_answer" on index.php Add/Remove Providers form #1

Open brianlmerritt opened 1 month ago

brianlmerritt commented 1 month ago

Probably need to either include allowanswers to the form or remove the helpers.

Trying to add help buttons to non-existent form elements : allowanswer

line 2390 of /lib/formslib.php: call to debugging()
line 75 of /local/ai/classes/form/openaiapiprovider.php: call to MoodleQuickForm->addHelpButton()
line 217 of /lib/formslib.php: call to local_ai\form\openaiapiprovider->definition()
line 110 of /lib/classes/form/persistent.php: call to moodleform->__construct()
line 21 of /local/ai/classes/form/openaiapiprovider.php: call to core\form\persistent->__construct()
line 55 of /local/ai/index.php: call to local_ai\form\openaiapiprovider->__construct()

Trying to add help buttons to non-existent form elements : allowanswer

line 2390 of /lib/formslib.php: call to debugging()
line 78 of /local/ai/classes/form/openaiapiprovider.php: call to MoodleQuickForm->addHelpButton()
line 217 of /lib/formslib.php: call to local_ai\form\openaiapiprovider->definition()
line 110 of /lib/classes/form/persistent.php: call to moodleform->__construct()
line 21 of /local/ai/classes/form/openaiapiprovider.php: call to core\form\persistent->__construct()
line 55 of /local/ai/index.php: call to local_ai\form\openaiapiprovider->__construct()
brianlmerritt commented 1 month ago

Also I think there are a few 'ai' rather than 'local_ai' string issues on index.php