Page MenuHomePhabricator

LinkTitles extension does not work with sqlite
Closed, ResolvedPublic

Description

Author: Pontus.welin

Description:
After LinkTitles was installed on a wiki that uses sqlite.
Whenever a (non-minor) edit is made to a page, I get the following error:

A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: SELECT page_title FROM page WHERE (page_namespace = 0) AND (CHAR_LENGTH(page_title) >= 3) AND (page_title NOT IN ("")) ORDER BY CHAR_LENGTH(page_title) DESC
Function: LinkTitles::parseContent
Error: 1 no such function: CHAR_LENGTH

Looks to me like the code assumes that the wiki uses mysql and therefor uses CHAR_LENGTH function. A function that doesn't exist in sqlite.


Version: unspecified
Severity: normal
URL: https://www.mediawiki.org/wiki/Extension:LinkTitles

Details

Reference
bz51114

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:09 AM
bzimport set Reference to bz51114.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Jul 10 2013, 4:06 PM
Reedy added a comment.Jul 10 2013, 4:14 PM

I would suggest you file an issue on the projects github repo. I don't recognise the author and I can't see a bugzilla account that looks to belong to them

https://github.com/bovender/LinkTitles/

Pontus.welin wrote:

Ok. I will do that.
Thanks!

Plus asking the extension author to define a place where to file bug reports, and adding that to http://www.mediawiki.org/wiki/Extension:LinkTitles , would be really helpful to avoid future confusion.