From: <joh...@th...> - 2015-04-03 03:28:22
|
Hello folks, any help again is greatly appreciated. I am getting a warning when I try to create a page with form, and with the |editor=wikieditor in place, the warning is as follows. Warning: Missing argument 2 for WikiEditorHooks::editPageShowEditFormInitial(), called in /home/tpwtestu/public_html/mediawiki/extensions/SemanticForms/includes/forminputs/SF_TextAreaInput.php on line 151 and defined in <b>/home/tpwtestu/public_html/mediawiki/extensions/WikiEditor/WikiEditor.hooks.php on line 162 I investigated WikiEditor.hooks.php line 162 and did not find anything unusual, and I investigated SF_TextAreaInput.php on line 151 and I could not find anything unusual. I then investigated and found that Yaron committed a fix here at Fix for recent change to WikiEditorHooks::editPageShowEditFormInitial() [1] Should I incorporate that fix into my own SF_TextAreaInput.php ? Thank you for any support. John On 2015-04-02 18:11, joh...@th... wrote: > Ralph, thank you for the reply and information. Can you please tell me > if what I have below is the proper format. All the fields in this form > are data type "Text", and I went and inserted the "textarea" in as > well. I would like some verification if I am on the right track with > this, please see below an example of one particular field. > > | {{{field|Early Life|input type=textarea|editor=wikieditor}}} > > Thanks again Ralph, appreciate the assistance much! > John > > > > > > Hi, > > what data type is defined for the property that is filled with the > "Early Life" parameter? > > You probably should set it to "Text". Alternatively you must define > "textarea" as input type, which works for some other data types. > > https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Defining_forms#Allowed_input_types_for_data_types > > Cheers > Ralf > > Zitat von johnmorris@...: Links: ------ [1] https://git.wikimedia.org/commit/mediawiki%2Fextensions%2FSemanticForms/ab2765902f81a2a13a079b8445fd062bb8377258 |