Extension talk:Simple Forms

=2009=

Multiple ajax links in one line
I tried to create multiple ajax links in one line, but there are always paragraphs between every link. How can I fix it? my code: | | --193.29.115.50 14:45, 28 October 2008 (UTC)


 * Change in SimpleForms.php entries with

return array($form, 'noparse' => true, 'isHTML' => true); to return $parser->insertStripItem( $form, $parser->mStripState );

and entries with return array($input,'noparse' => true, 'isHTML' => true); to return $parser->insertStripItem( $input, $parser->mStripState ); Cirne 19:09, 11 September 2009 (UTC)

Can't get it to run. Please help!
After install, when I run the script I get:

Warning: Cannot modify header information - headers already sent by (output started at wiki/extensions/SimpleForms.php:1) in wiki/includes/WebResponse.php on line 10

I am using the current version of MediaWiki. 68.56.108.134 17:56, 6 February 2009 (UTC)


 * I changed the permissions on the file to 777. Now I get:

Parse error: syntax error, unexpected T_VARIABLE in wiki/LocalSettings.php on line 160

Query external Database
I use SimpleForms to access some external databases. Currently I am calling some PHP scripts to query MySQL, and show the results on a pop-up new window (target=new). I know nothing about AJAX. I just want to learn how I can dynamically update the wikipage with the query results. Such as putting the results in a specific  without reloading the page. How can I redirect the outputs? Should I write some Javascript to make it happened? Thx!
 * I think that you could consult w3schools.com for more on AJAX and MySQL.. and/or digit in google "AJAX MySQL PHP example"..
 * Bilardi 15:27, 29 September 2009 (UTC)

PHP Warnings in Apache errors.log
Hi, SimpleForms is great, many thanks dude. However, since installing it, now any link I click on in our wiki creates the following warning in our apache erorlog which is cluttering it up a bit:

[Wed Oct 14 10:47:43 2009] [error] [client 192.168.34.133] PHP Warning: Parameter 1 to Language::getMagic expected to be a reference, value given in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\xenosWiki\\includes\\StubObject.php on line 58, referer: http://uklabvm13/xenosWiki/index.php?title=Special:AlfrescoSearch

Removing this from localsettings (i.e. disabling SimpleForms) resovles the isue but ofcourse defeats the point of having the extension:

include( "$IP/extensions/SimpleForms/SimpleForms.php" );
 * SufyaanK 10:53, 14 October 2009 (BST)


 * well, I have got any question.. which are your release about so, mediawiki and simpleform? did simpleform ever works whitout errors? which is it last extension or release that you installed? -- Bilardi 21:53, 14 October 2009 (UTC)


 * Hi, we are running SimpleForms 0.4.11, with the following configuration:


 * This is the first time we have used SimpleForms. Our wiki only printed these warnings in our log when we installed SimpleForms, if I disable it the warnings go away.. SufyaanK 11:35, 19 October 2009 (BST)


 * I'm using mediawiki 1.14.1 and 1.15.1 releases and SimpleForms 0.4.13 release.. and it works very well.. and, before I used 0.4.11 without errors.. but I'm using linux so. Your error log tell about custom special page that, maybe, is it work with SimpleForms? Do you paste me your form code? -- Bilardi 11:49, 19 October 2009 (UTC)


 * Hi, the problem is affecting any page, not only pages where I am using a form. What I am trying to say is that when I add this line in my localsettings:

then any page I visit in the wiki (even for example just going to the main page, or the Special Pages page, or Upload image page, i.e. all the core pages) I get this warning in my apache log. However if I comment out SimpleForms then accessing tese same pages does not give me an issue and I do not get the warning. The warning seems to me that my version of PHP (5.3.0) seems to be more strict interpretr and is saying you are using a "value" rather than a reference. This page here reports the exact same problem and also indicates it is a wrning introduced in the latest version of PHP

http://www.mail-archive.com/wikibugs-l@lists.wikimedia.org/msg22145.html and here http://www.mediawiki.org/wiki/Extension_talk:CategoryTree

SufyaanK 10:11, 26 October 2009 (BST)


 * Hi, I solved this problem by following the instructions at: http://www.mediawiki.org/wiki/Extension_talk:CategoryTree. Indeed this PHP version is more stricter than previous ones. SufyaanK 10:22, 26 October 2009 (BST)

Error on Page after installing Simple Forms on MW1.15
Just installed SimpleForms 0.4.13 on my MW1.15.1 with PHP 5.2.8 (apache2handler). Everything looks OK after the install. I have set $wgUseAjax = true. To test the installation I used the simple Ajax example given in the Extension write-up. I get Error on Page in the browser. I am using IE8. I turned on debug with F12 and the error occurs around the following line in the inputMagic function else { # Render the Ajax input as a form submit button $argv['type'] = 'button'; $element	 = 'input'; if (!isset($argv['onClick'])) $argv['onClick'] = ''; $argv['onClick'] .= "a = [];					f = document.getElementById('{$this->id}');					i = f.elements;

It would appear that the object f is not defined.

I have also tried the "Blog Post" example and the system behaves strangely too. It doesn't add the post but causes me to be redirected to the Main Page of the wiki. Very strange!

Hope someone can help, because this extension looks exactly what I am looking for.