php - Routing in CakePHP 1.3.3 has suddenly stopped working for one folder (beforeFilter issues?) -
we've had application running on cakephp 1.3.3 years without single hitch, randomly it's started saying "the requested address /task_scheduler/task_scheduler_mailouts not found on server." - it's effecting this. else running on server (including other cakephp applications) fine.
when enable debug in core.php, following error messages:
notice (8): undefined variable: currentuser [app\views\themed\default\layouts\default.ctp, line 50] error: behavior file app\models\behaviors\null.php can not found or not exist. error: create class below in file: app\models\behaviors\null.php <?php class nullbehavior extends modelbehavior { } ?> all of files present in /task_scheduler/task_scheduler_mailouts , currentuser variable working without problems on other pages. currentuser set in beforefilter() function in app_controller.php far know used every single page.
function beforefilter() { ... $currentuser = classregistry::init('wfemployee')->getnetworkuser(); ... } (update) if hardcode $currentuser variable still not set notice. don't think beforefilter() function running.
any ideas have caused error please? thank you.
function beforefilter() { parent::beforefilter(); $currentuser = classregistry::init('wfemployee')->getnetworkuser(); ... }
Comments
Post a Comment