Search the Community
Showing results for tags 'wire404exception'.
-
Greetings! For our PW project we use markup regions and, for one template, url segments. The documentation recommends throwing a new Wire404Exception() from the template when the code concludes that the url segments from the request are invalid, and so we do. However, the 404 page is not d...
- 3 replies
-
- wire404exception
- markup regions
-
(and 1 more)
Tagged with:
-
I'm using "throw new Wire404Exception();" in my template, it worked fine. After Migrating to an other server and Upgrading to PW 3.0.62 I got an Error "Class 'Wire404Exception' not found" . I spent the day yesterday unsuccessfully to understand the reason. Is there any reason, why PW can't find thi...
-
Dear Communiy, My template basic-page does have URL segments activated. The segments are used to handle a different URL for the files attached. If a file is not found a Wire404Exception() is thrown. Sadly PagePathHistory does not handle it correctly (in my opinion) and old URLs no longer are redir...
-
Hi! I rebuilding site from another CMS and need to redirect some old pages to new ones. Old scheme of urls is site.com/index.php?id=123 I have this in _init.php: $id = (int)$input->get->id; if ($id > 0) { $redirect_page = wire('pages')->get("parent=/tools/old2new/, template=old2new-red...