Puzzling Error - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Puzzling Error (/showthread.php?tid=82634) |
Puzzling Error - donpwinston - 08-02-2022 I've upgraded CodeIgniter from 3.9 to 4.2.1. I'm getting the following exception for all my routes except two. I don't understand why. I don't know what is different about the two that work. Invalid routes are not giving me same error and not Page Not Found page. I was using the legacy routing in the previous version. ErrorException preg_match(): Compilation failed: unmatched closing parenthesis at offset 23 SYSTEMPATH/Router/Router.php at line 418 My route config: PHP Code: $routes->setDefaultNamespace('App\Controllers'); RE: Puzzling Error - iRedds - 08-02-2022 $routes->get('/notice/download/{:segment)/(:segment)', 'Notice::download/$1/$2'); //? RE: Puzzling Error - donpwinston - 08-02-2022 (08-02-2022, 03:31 PM)iRedds Wrote: $routes->get('/notice/download/{egment)/(egment)', 'Notice::download/$1/$2'); //? Duh. Thanks. |