Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Re: Titlekey

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


mlong212 at gmail

May 6, 2008, 6:14 AM

Post #1 of 3 (174 views)
Permalink
Re: Titlekey

How is this extension installed
http://www.mediawiki.org/wiki/Extension:TitleKey ?
I placed: ( require_once( "$IP/extensions/Titlekey/titlekey.php" ); )
into the localsettings.php
and got this error when trying to make a new page:
A database query syntax error has occurred. This may indicate a bug in
the software. The last attempted database query was:

(SQL query hidden)

from within function "TitleKey::setBatchKeys". MySQL returned error
"1146: Table 'wiki.titlekey' doesn't exist (localhost)".


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


wilson.jim.r at gmail

May 6, 2008, 9:19 AM

Post #2 of 3 (165 views)
Permalink
Re: Titlekey [In reply to]

Part of the Titlekey installation process includes the creation of a
new table for the purpose of storing the title keys. The SQL error
you're seeing indicates that the table doesn't exist yet.

There should be an *.sql file in the directory for the extension.
Running this should setup the table - but if I recall there is a
script you have to run to populate the table since initially it'll be
empty.

-- Jim R. Wilson (jimbojw)

On Tue, May 6, 2008 at 8:14 AM, Matt Long <mlong212[at]gmail.com> wrote:
> How is this extension installed
> http://www.mediawiki.org/wiki/Extension:TitleKey ?
> I placed: ( require_once( "$IP/extensions/Titlekey/titlekey.php" ); )
> into the localsettings.php
> and got this error when trying to make a new page:
> A database query syntax error has occurred. This may indicate a bug in
> the software. The last attempted database query was:
>
> (SQL query hidden)
>
> from within function "TitleKey::setBatchKeys". MySQL returned error
> "1146: Table 'wiki.titlekey' doesn't exist (localhost)".
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


mlong212 at gmail

May 6, 2008, 10:01 AM

Post #3 of 3 (165 views)
Permalink
Re: Titlekey [In reply to]

Thanks, I copied the 2 *.sql files into the sql query and it made the
tables. It is working now,
didn't know this was going to only affect the search engine though.
Thought Titlekey would also affect the links (would make links to page
titles case-insensitive.

I almost cam across a case-insensitive fix, but it would have to be done
on a new install, if it even works.
in includes/defaultsettings.php the line ( $wgLegalTitleChars = "
%!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; )
i could remove A-Z as a legal title character from here, However
mediawiki uses a Capital letter for the first character.. which makes
the system crash. Maybe there is a way to code that as an exception??
That would solve case-insensitive links as titles would not be allowed
in all uppercase.
I know there are uses for differences, but it is so annoying to have a
page "PAGE_1" and if it is linked to as "page_1" mediawiki treats it as
a new page.
Matt

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.