Topic on Project:Support desk

[RESOLVED] MW 1.23 Category pages not being linked if spaces in name but works with _

10
195.195.217.140 (talkcontribs)

So I've upgraded to MW 1.23 with MariaDB on RHEL 7

Al is good except some of the pages belonging to categories are not being displayed.

e.g. if I add this category link at the bottom of a page, it will ink to the category from that page but the page will not be listed from the category [[Category:To Do - Something]]

However, if I use the following format for the category name, everything works - link to the category appears on the page & page is listed under the category page. [[Category:To _Do_-_Something]]

My problem is that most of the category links were created in the first format which worked in MW 1.18

Any suggestions on how to resolve?

Thanks

This post was posted by 195.195.217.140, but signed as bb2.

195.195.217.140 (talkcontribs)

Since it didn't display properly here is the formatting (obviously without the spacing between [[ )

[ [Category:To Do - Something] ]

[ [Category:To_Do_-_Something] ]

Ciencia Al Poder (talkcontribs)

Well, that's really weird, and I've never seen something like this.

Both forms should work the same. Check if that's not a cache problem. For example, try editing the category page and see if the pages are correctly listed there.

A link to your wiki, in case it's public, would be very useful.

195.195.217.140 (talkcontribs)

It's not a public wiki, sorry.

Updating spaces to underscores does index the page in that category so not a cache issue as far as I can see.

Would rebuilding the index somehow address this?

What seem to come to mind would be a weird collation issue but no one seems to have encountered this before in all the googling I've done about this.

This post was posted by 195.195.217.140, but signed as bb2.

Ciencia Al Poder (talkcontribs)

So, if a page that's listed on the category page, you change underscores to spaces, it disappears from the category page?

195.195.217.140 (talkcontribs)
Ciencia Al Poder (talkcontribs)

Sorry, but your response is ambiguous.

  • If it works that way (you change underscores to spaces, and the category still appears), there's no problem.
  • If it works that way (you change underscores to spaces, it disappears from the category page) then there's a problem.
195.195.217.140 (talkcontribs)

Sorry, I meant option 2 - if you change it in that direction it becomes unlisted so we do have a problem.

This post was posted by 195.195.217.140, but signed as bb2.

Ciencia Al Poder (talkcontribs)

I'd try to set up a new wiki, on an empty database, and see if the problem is reproducible. If not, try to enable the same extensions you have, and test it again. If everything works, perform the upgrade again, being sure you extract the files of the new installation on a new, empty directory and not overwriting the old installation, copying your customizations (LocalSettings.php, images...)

195.195.217.140 (talkcontribs)
Reply to "[RESOLVED] MW 1.23 Category pages not being linked if spaces in name but works with _"