diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index 22839cf6..a496f736 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -79,7 +79,7 @@ class ProcessWire extends Wire { * Reversion revision number * */ - const versionRevision = 173; + const versionRevision = 174; /** * Version suffix string (when applicable) diff --git a/wire/modules/Process/ProcessPageView.module b/wire/modules/Process/ProcessPageView.module index 787849b2..0716d313 100644 --- a/wire/modules/Process/ProcessPageView.module +++ b/wire/modules/Process/ProcessPageView.module @@ -311,7 +311,12 @@ class ProcessPageView extends Process { if(!$hooks->hasPathHooks()) continue; $this->setResponseType(self::responseTypePathHook); - $out = $this->pathHooks($requestPath, $out); + + try { + $out = $this->pathHooks($requestPath, $out); + } catch(Wire404Exception $e) { + $out = false; + } // allow for pathHooks() $event->return to persist between init and ready states // this makes it possible for ready() call to examine $event->return from init() call