Menu

#2 Semantic Signup not compatible with Semantic Forms 1.8.8

open
Bug (1)
5
2010-02-05
2010-02-05
Anonymous
No

Warning generated using Semantic Forms version 1.8.8

The SemanticSignup 0.2.0 worked fine till Yaron Koren came out with a new Semantic Forms (SF) version (1.8.8). Suddenly some added fields I created for the Signup process were given values from fields above and the extension generates the following warning when I went to the 'create account' page:
Warning: Missing argument 4 for SFFormPrinter::formHTML() in <directory to extension>/SemanticForms/includes/SF_FormPrinter.inc on line 127

I'm not a php programmer but compared line 127 of SF_FormPrinter.inc (SF 1.8.7 versus SF 1.8.8). Turns out that Yaron and others changed a SF function that is called by:

Old line 127:
function formHTML($form_def, '''$form_id''', $form_submitted, $source_is_page, $existing_page_content = null, $page_title = null, $page_name_formula = null, $is_query = false, $embedded = false) {

New line 127:
function formHTML($form_def, $form_submitted, $source_is_page, $existing_page_content = null, $page_title = null, $page_name_formula = null, $is_query = false, $embedded = false) {

The variable "$form_id" is missing in the new SF_FormPrinter.inc and apparently SemanticSignup 0.2.0 calls that function and passes on the function with the "$form_id" still in it.

Does anybody had the same experience and figured a work around this? It would be great if I can still use the SemanticSignup extension in the future! so please share your work around it.
Thanks, Albert.
PS. this bug is reported on the mediawiki extension site as well.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.