moodle 2.2 and quick forms error

moodle 2.2 and quick forms error

autor Matthew Brennand -
Počet odpovědí: 2

Can anbody help me please, I am having problems creating a form.

I am using moodle 2.2 and quick forms, it saves to the database on submit but then returns to the form with error.

mysqli::real_escape_string() expects parameter 1 to be string, array given in /$root/lib/dml/mysqli_native_moodle_database.php

I am also trying to upload a doc in the form to the course context to massively struggling.

Code is below: http://stackoverflow.com/questions/11761583/quickforms-and-moodle

Průměr hodnocení: -
V odpovědi na Matthew Brennand

Re: moodle 2.2 and quick forms error

autor Gareth J Barnard -
Obrázek: Core developers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers

Dear Matthew,

In reviewing the code I cannot quite see what the error is, however if you were to turn on developer level debugging (http://docs.moodle.org/22/en/admin/setting/debugging) with the 'Display debug messages' option that should produce a stack trace of the error and help to identify the calling line that has not dereferenced an array to a string.

Cheers,

Gareth

V odpovědi na Gareth J Barnard

Re: moodle 2.2 and quick forms error

autor Matthew Brennand -

HI Gareth,

I already have debugging set to DEVELOPER.

the only error im getting is: mysqli::real_escape_string() expects parameter 1 to be string, array given in /$root/lib/dml/mysqli_native_moodle_database.php

Where would it store the file upon upload within moodledata? I was on moodle 1.9 before and moodledata seemed much more intuative for that.

Regards

Mat