Topic on Extension talk:Replace Text

Error wrongly displayed - No category exists with the name "..."

8
Jonathan3 (talkcontribs)

When I type a regex into the "Original text" box, forget to tick the "Use regular expressions" box, and use the "Replace only in category" box... it displays this error despite the category existing. When I go back and tick the "Use regular expressions" box the replacement works fine (with the same category).

Jonathan3 (talkcontribs)

This message appears wrongly in a second scenario.

If you search using a regex that doesn't turn up any pages, even with the "Use regular expressions" box ticked, the "No category exists" error is displayed (instead of "No pages found" or whatever).

Jonathan3 (talkcontribs)

Ok here goes: it does this every time the category field is used and it just can't find any pages with the search text. Whether the regex box is ticked is a red herring. Instead of saying "No pages with that text exist in category Categoryname" it says "No category exists with the name Categoryname".

Yaron Koren (talkcontribs)

Sorry about that - that was a bug that I believe is fixed now in the latest Replace Text code.

Jonathan3 (talkcontribs)

Thanks. It is fixed. It now correctly states: No pages were found containing the string "asdasdasdasd".

Jonathan3 (talkcontribs)

Actually, it's not fixed. Sorry!

If you search for a non-existent string and DON'T select a category, it'll say: No category exists with the name "[[]]".

Yaron Koren (talkcontribs)

Sorry again - I think this is now fixed as well.

Jonathan3 (talkcontribs)

Yes, that's working now! Thanks again.

Reply to "Error wrongly displayed - No category exists with the name "...""