Hello,
As you may know, David Harvey and I have been working on getting some
support for MathML into MediaWiki. Two weeks ago, we decided that the
product of our labour has matured enough to be submitted as a patch to
MediaWiki. It can be found attached to bug 672
( http://bugzilla.wikipedia.org/show_bug.cgi?id=672 )
Currently, MediaWiki uses a helper program, called texvc, to convert the
contents of <math> ... </math> into HTML, PNG and (very limited) MathML.
David wrote a new program, called blahtex, to handle the conversion to PNG
and MathML (but not HTML). The main purpose of the program was to offer
better support of MathML, but in the process David also covered some TeX
constructs that texvc cannot handle, improved the reporting of errors, and
started supporting non-ASCII characters. For the sake of balance, let me
mention some advantages of texvc: it works, as is proven by its deployment
on the Wikimedia servers for the past three or more years. Tomasz
Wegrzanowski (the author of texvc) made the point that C++, the language in
which blahtex is written, is not the best choice from a security point of
view; texvc is written in OCaml.
The patch submitted to MediaZilla integrates blahtex with MediaWiki. The W3C
has specified that MathML can only be used in XHTML documents, and Firefox
refuses to display it if it's used in HTML. Therefore, MediaWiki uses MIME
type application/xhtml+xml (irrespective of the value of $wgMimeType), if
the user has selected MathML in the preferences. An exception is if the
browser used does not support XHTML; otherwise, the user won't be able to
view any page, and it won't even be possible to change the preference back
to non-MathML.
More information about the patch can be found at
http://meta.wikimedia.org/wiki/Blahtex/How_to_make_MathML_work_in_MediaWiki
A demo is running at http://wiki.blahtex.org/ . Unfortunately, it is mostly
attracting spammers at the moment.
Of course, we'd like our code to be accepted in MediaWiki, and eventually
enabled on the Wikipedias. Please tell us if you have any advice on how to
achieve this goal. Criticism of our work is of course also very welcome.
Cheers,
Jitse = [[en:User:Jitse Niesen]]
MediaWiki-l,
I have successfully installed my first MediaWiki.
My intention for this Wiki is that it only be edited by a select group
of registered users, but readable by anyone.
By looking in the User's Guide, I found that in order to do this I
should add the following lines to LocalSettings.php:
# This snippet prevents editing from anonymous users
# Added by Dave - 2006-04-29
$wgGroupPermissions['*']['edit'] = false;
# This snippet prevents new registrations from anonymous users
# (Sysops can still create user accounts)
# Added by Dave - 2006-04-29
$wgGroupPermissions['*']['createaccount'] = false;
However, after having added these lines and saved the file, when I go to
the Main Page and select the "edit" tab, there is nothing stopping me
from editing the page, despite not having logged in.
At the top of the page, it says: * 127.0.0.1 * Talk for this IP * Log in
/ create account
I have also cleared my cache and restarted my browser, just in case I
was defaulted to logging in as the administrator.
Is there something else I am missing?
Thank you for any advice.
--
Dave M G
Hello,
I'm setting up a small mediawiki site with content migrated from kwiki.
I'm getting quite confused by how to find out how to do things with
mediawiki, so I joined this list to ask some questions. But I'm even
confused about whether this is the right place :)
http://en.wikipedia.org/wiki/Wikipedia:Mailing_lists says "MediaWiki-l
for people with questions about their own installation of MediaWiki",
but the sign-up page for the list suggest a different focus "MediaWiki-l
-- MediaWiki announcements and site admin list". So my apologies if I'm
not in the right place.
I have one page where I'm documenting how some of my code works. It's
Javascript so the text is liberally scattered with HTML tags that I'm
discussing. But mediawiki is *interpreting* these tags as HTML! I see
that this is a feature from http://meta.wikimedia.org/wiki/Help:Editing
and http://meta.wikimedia.org/wiki/Help:HTML_in_wikitext even tells me
which tags are affected. But I can't find anywhere that tells me how to
turn this feature off when I don't want it. How can I write text that
includes HTML tags as literals?
I'm also trying to include some images of what the resulting page looks
like. I succeeded by just adding something like
http://localhost/htdocs/images/one-line-evidence.png to my wikitext, but
I suspect that's not the pukka way to do it. Is there a better way?
Oh, is there a searchable archive for this list?
Thanks and regards,
Dave Howorth
Hello list,
For my installation problem I will include the installation messages
followed by my limited testing, and then a few specific questions.
*Please include all of the lines below when reporting installation problems.
*
- PHP 4.4.0 installed
- *Warning:* *PHP's
register_globals<http://php.net/register_globals>option is enabled.
Disable it if you can.
*
MediaWiki will work, but your server is more exposed to PHP-based
security vulnerabilities.
- PHP server API is cgi; using ugly URLs (index.php?title=Page_Title)
- Have XML / Latin1-UTF-8 conversion support.
- PHP's memory_limit is 32M. *If this is too low, installation may
fail!*
- Have zlib support; enabling output compression.
- Neither Turck MMCache <http://turck-mmcache.sourceforge.net/> nor
eAccelerator <http://eaccelerator.sourceforge.net/> are installed,
can't use object caching functions
- GNU diff3 not found.
- Found ImageMagick: /usr/local/bin/convert; image thumbnailing will
be enabled if you enable uploads.
- Found GD graphics library built-in.
- Installation directory:
/web/sites/_m/_i/_k/mikefearn.com/public/wiki
- Script URI path:
- Environment checked. You can install MediaWiki.
*Generating configuration file...*
- Database type: mysql
- Attempting to connect to database server as sitedb...success.
- Connected to 3.23.58-log -- mysql 4.0 or later required. Aborting.
This implies to me that the MediaWiki installer is being told the mysql
intalled on the webserver is version 3.23.58
However when I ssh into the webserver and do mysql -V it comes up with
> Ver 14.7 Distrib 4.1.13 for portbld-freebsd4.11 (i386) using readline 5.0
>
1) Which version (or versions) of mysql do people think is installed?
2) Can i run any commands to see if multiple versions are installed?
3) Can i change any settings in the MediaWiki installation or .htaccess to
force which version of mysql is used?
More questions may be needed, but I'll use this as a starting point
Many Thanks
Michael Fearn
Mediawiki-l,
Hello. I am attempting to install my first MediaWiki. I am very familiar
with PHP/MySQL/HTML, but I wouldn't call myself an expert. Please accept
my apologies if I have missed something obvious.
I have a home testing environment for my web sites, which is Linux
Ubuntu Dapper 6.06, where I am installing the Wiki.
I've encountered a problem which I can not find specific information for
in the MediaWiki documentation. The error output of the installation of
MediaWiki 1.6.3 is below:
* PHP 4.4.2-1build1 installed
*
Warning: PHP's register_globals option is enabled. Disable it if
you can.
MediaWiki will work, but your server is more exposed to PHP-based
security vulnerabilities.
* PHP server API is apache2handler; ok, using pretty URLs
(index.php/Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* PHP's memory_limit is 8M. If this is too low, installation may
fail! Attempting to raise limit to 20M... ok.
* Have zlib support; enabling output compression.
* Neither Turck MMCache nor eAccelerator are installed, can't use
object caching functions
* Found GNU diff3: /usr/bin/diff3.
* Found GD graphics library built-in, image thumbnailing will be
enabled if you enable uploads.
* Installation directory: /home/dave/web_sites/gutteridge.info/web
* Script URI path: /web_sites/gutteridge.info/web
* Environment checked. You can install MediaWiki.
Generating configuration file...
* Database type: mysql
* Attempting to connect to database server as root...success.
* Connected to 4.1.15-Debian_1ubuntu5-log
* Created database wikidb
* Creating tables... using MySQL 4 table defs...Query "CREATE TABLE
`gw_job` ( job_id int(9) unsigned NOT NULL auto_increment, job_cmd
varchar(255) NOT NULL default '', job_namespace int NOT NULL, job_title
varchar(255) binary NOT NULL, job_params blob NOT NULL default '',
PRIMARY KEY job_id (job_id), KEY (job_cmd, job_namespace, job_title) )
TYPE=InnoDB " failed with error code "Specified key was too long; max
key length is 1024 bytes (localhost)".
After this, in phpMyAdmin, I can see that the database has been
created. Although I am not sure if it is installed in entirety or not.
If I go back to the directory where the MediaWiki is being
installed, it prompts me to install MediaWiki before proceeding,
indicating that it has not fully installed under its own terms.
I hope this is a simple error and someone can help me out. Please
let me know if there is more information I need to provide.
Thank you.
--
Dave M G
Hi Chris,
maybe you can use wgUrlProperties:
$wgUrlProtocols = array(
'http://',
'https://',
'ftp://',
'irc://',
'gopher://',
'telnet://', // Well if we're going to support the above.. -ævar
'nntp://', // @bug 3808 RFC 1738
'worldwind://',
'mailto:',
'news:'
);
Remove http/https and try... :-)
Cheers,
Jimmy
> -----Ursprüngliche Nachricht-----
> Von: "Chris Earle (CBL)" <cearle(a)cbltech.ca>, MediaWiki announcements and site admin list <mediawiki-l(a)Wikimedia.org>
> Gesendet: 28.04.06 18:44:04
> An: <mediawiki-l(a)Wikimedia.org>
> Betreff: [Mediawiki-l] Prevent external linking
> Hey all,
>
> I want to prevent external links from being created in my wiki -- so I want
> to turn off the parser's creation of external links from text like
> 'http://....', and I suppose turn off stuff within [...]
>
> Is there a way I can do this without modifying includes/Linker.php (>1.5)?
> I don't really mind doing that, but you know, would be nice if there was a
> $wg config variable or something....
>
>
> Thanks for any suggestions
>
>
> --
> Chris Earle
>
>
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l(a)Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hey all,
I want to prevent external links from being created in my wiki -- so I want
to turn off the parser's creation of external links from text like
'http://....', and I suppose turn off stuff within [...]
Is there a way I can do this without modifying includes/Linker.php (>1.5)?
I don't really mind doing that, but you know, would be nice if there was a
$wg config variable or something....
Thanks for any suggestions
--
Chris Earle
--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
hi list,
i've mediawiki configuration question, is there any option that enables
something like a watch all articles for all users? maybe in the
LocalSettings.php?
i'd like to have that any page is watched for better collaboration in a
small usergroup.
thanks in advance!
cheers,
gregor
--
gregor FELLENZ <gf_public(a)gmx.net>
Tels <nospam-abuse(a)bloodgate.com> wrote: Fri, 28 Apr 2006 11:56:38 +0200
> Moin Uwe,
>> On Friday 28 April 2006 11:51, Uwe Baumbach wrote:
>> Please help:
>>
>> is the following
>> - a known bug,
>> - a "feature" or
>> - a configurable behavior ??
>>
>> Article [[First]] contains an dynamically include via {{Second}}.
>> In article [[Second]] is a link to [[Third]].
>> [[Third]] will be shown in "What links here?" of [[First]]
>> So far so good.
>>
>> If you then change in [[Second]] the link [[Third]] to [[Other]] -
>> [[Third]] link still remains in "What links here?" of [[First]]
>> (purging cache or not) Only after a minor change in [[First]] the link
>> table will be refreshed.
>>
>> The only but unwanted way I see is a frequently use of
>> maintenance/refreshLinks.php ??
> Which version of Mediawiki are you using?
1.5.8
> That problem should be fixed in
> 1.6.x, in 1.5.x there were frequent problems where changing a template
> might not change all the articles where it was included, thus creating
> the problem above.
We only moved to 1.5.8 and do not want to go to 1.6.x
Is there a chance for 1.5.9 or so?
--
Ich freue mich auf Deine/Ihre Antwort!
Uwe (Baumbach)
U.Baumbach(a)web.de
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
SUSE SLES 9 installation. Everything else went fine, but I am stopped here.
Any suggestions?
--
Terry Poperszky
Network Manager
SOS Staffing Services
801-257-5709
* PHP 4.3.4 installed
* PHP server API is apache2handler; ok, using pretty URLs
(index.php/Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* PHP's memory_limit is 128M. If this is too low, installation may fail!
* Have zlib support; enabling output compression.
* Neither Turck MMCache nor eAccelerator are installed, can't use
object caching functions
* Found GNU diff3: /usr/bin/diff3.
* Found GD graphics library built-in, image thumbnailing will be
enabled if you enable uploads.
* Installation directory: /srv/www/htdocs/mediawiki-1.6.3
* Script URI path: /mediawiki-1.6.3
* Environment checked. You can install MediaWiki.
Generating configuration file...
* Database type: mysql
* PHP is linked with old MySQL client libraries. If you are using a
MySQL 4.1 server and have problems connecting to the database, see
http://dev.mysql.com/doc/mysql/en/old-client.html for help.
* Attempting to connect to database server as root...success.
* Connected to 4.0.18
* Database wikidb exists
* There are already MediaWiki tables in this database. Checking if
updates are needed...
* Granting user permissions...
...hitcounter table already exists.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...logging table already exists.
...validate table already exists.
...user_newtalk table already exists.
...transcache table already exists.
...trackbacks table already exists.
...externallinks table already exists.
Creating job table...Query "CREATE TABLE `job` (
job_id int(9) unsigned NOT NULL auto_increment,
job_cmd varchar(255) NOT NULL default '',
job_namespace int NOT NULL,
job_title varchar(255) binary NOT NULL,
job_params blob NOT NULL default '',
PRIMARY KEY job_id (job_id),
KEY (job_cmd, job_namespace, job_title)
) TYPE=InnoDB
" failed with error code "Specified key was too long. Max key
length is 500 (localhost)".