How are you using ajax search? I cant seem to find it or figure out how it works. I also set $wgUseAjax = true;
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Felipe Sanches Sent: Monday, July 03, 2006 10:50 PM To: mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] Ajax search warnings
Hi, I have just checked out mediawiki from svn and I have set the $wgUseAjax = true;
The ajax search is giving me some error messages:
Warning: Cannot modify header information - headers already sent by (output started at /Depot/WWW/Documents/local/phase3/includes/AjaxDispatcher.php:72) in /Depot/WWW/Documents/local/phase3/includes/AjaxDispatcher.php on line 74
Warning: Cannot modify header information - headers already sent by (output started at /Depot/WWW/Documents/local/phase3/includes/AjaxDispatcher.php:72) in /Depot/WWW/Documents/local/phase3/includes/AjaxFunctions.php on line 85
Warning: Cannot modify header information - headers already sent by (output started at /Depot/WWW/Documents/local/phase3/includes/AjaxDispatcher.php:72) in /Depot/WWW/Documents/local/phase3/includes/AjaxFunctions.php on line 93
Warning: Cannot modify header information - headers already sent by (output started at /Depot/WWW/Documents/local/phase3/includes/AjaxDispatcher.php:72) in /Depot/WWW/Documents/local/phase3/includes/AjaxFunctions.php on line 94
What does it mean?
Felipe Sanches _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
hi, Joshua,
Start typing on the search box. After the third letter, mediawiki will show the search results "as you type"
You dont need to press "OK" button.
Although, I got some warnings in this results box. I discovered a easy workaround: In the file AjaxDispatcher.php, inside the performAction function, I commented out the line echo "+:"; and have added it after the $wgAjaxCachePolicy->writeHeader(); line
The results was:
line 71: } else { $result = call_user_func_array($this->func_name, $this->args); header( 'Content-Type: text/html; charset=utf-8', true ); $wgAjaxCachePolicy->writeHeader(); echo "+:"; echo $result; }
have fun! Felipe Sanches
mediawiki-l@lists.wikimedia.org