*

tassonfl

  • ***
  • 50 posts
Hi,

I'm experiencing 404 errors on category URLs that contain numbers.

Issue:

Category name: "Football 11"
Generated slug: "football-111" (number duplicated)
URL /category/football-111/ returns 404 even though it exists in database
Root cause: The osc_sanitizeString() function in /oc-includes/osclass/helpers/hSanitize.php has inconsistent number handling that creates malformed slugs.

Question: Has anyone encountered this? The URLs exist in the database but the routing system can't match them properly.

Regenerating permalinks and clearing cache didn't help.

Any suggestions for fixing category slug generation with numbers?

Thanks!

*

MB Themes

Re: Category URLs with numbers return 404 - slug generation bug
« Reply #1 on: June 24, 2025, 12:05:30 PM »
footbal-eleven does it.
Anyway for me it works: https://dev7.abprofitrade.eu/en/for-sale/football-11

Maybe you already have identical category somewhere else.
« Last Edit: June 24, 2025, 12:08:35 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots