Extension talk:Simple Forms
From MediaWiki.org
| Archived: | 2007 | 2008 |
Contents |
[edit] 2009
[edit] 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:
{{#input: type=ajax|format=link|update=myDiv|title=site1|one}} | {{#input:type=ajax|format=link|update=myDiv|title=site2|two}} | {{#input:type=ajax|format=link|update=myDiv|title=site3|three}}
--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)
[edit] 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
[edit] 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
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)
[edit] 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:
-
| Software | Version |
|---|---|
| Apache | 2.2.13 |
| Mediawiki | 1.15 |
| MySQL | 5.1.39 |
| PHP | 5.3.0 |
-
-
- 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:
-
include( "$IP/extensions/SimpleForms/SimpleForms.php" ); 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)
-