Duplicate How to add this route filter

Matthew Hawley

Well-known member
How do i remove /pages with the new route changer? This is what I tried.

Find Route: pages/services/

Replace With: services/

I got this error.

preg_match_all() expects at least 3 parameters, 2 given
  1. XenForo_Application::handlePhpError()
  2. preg_match_all() in XenForo/DataWriter/RouteFilter.php at line 129
  3. XenForo_DataWriter_RouteFilter->_countWildcards() in XenForo/DataWriter/RouteFilter.php at line 117
  4. XenForo_DataWriter_RouteFilter->_preSave() in XenForo/DataWriter.php at line 1429
  5. XenForo_DataWriter->preSave() in XenForo/DataWriter.php at line 1368
  6. XenForo_DataWriter->save() in XenForo/ControllerAdmin/RouteFilter.php at line 100
  7. XenForo_ControllerAdmin_RouteFilter->actionSave() in XenForo/FrontController.php at line 335
  8. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
  9. XenForo_FrontController->run() in /home/mcwh/public_html/letspwn.com/store/admin.php at line 13