Ignacio Pablo Duro Posted January 20, 2019 Share Posted January 20, 2019 Hey! I'm having some errors, maybe someone can help me.. Error 1: On approving a personal request: TypeError: Argument 1 passed to IPS\perscom\PersonnelAction\_Request::set_updated_by() must be an instance of IPS\perscom\Personnel\Soldier, bool given, called in C:\xampp\htdocs\system\Patterns\ActiveRecord.php on line 344 (0) #0 C:\xampp\htdocs\system\Patterns\ActiveRecord.php(344): IPS\perscom\PersonnelAction\_Request->set_updated_by(false) #1 C:\xampp\htdocs\applications\perscom\sources\PersonnelAction\Request.php(0): IPS\Patterns\_ActiveRecord->__set('updated_by', false) #2 C:\xampp\htdocs\applications\perscom\sources\PersonnelAction\Request.php(0): IPS\perscom\PersonnelAction\_Request->approve(true) #3 C:\xampp\htdocs\applications\perscom\modules\admin\personnelaction\requests.php(0): IPS\perscom\PersonnelAction\_Request::update(Array, '2') #4 C:\xampp\htdocs\system\Dispatcher\Controller.php(85): IPS\perscom\modules\admin\personnelaction\_requests->approve() #5 C:\xampp\htdocs\system\Node\Controller.php(62): IPS\Dispatcher\_Controller->execute() #6 C:\xampp\htdocs\applications\perscom\sources\Node\Controller.php(0): IPS\Node\_Controller->execute() #7 C:\xampp\htdocs\applications\perscom\modules\admin\personnelaction\requests.php(0): IPS\perscom\Node\_Controller->execute() #8 C:\xampp\htdocs\system\Dispatcher\Dispatcher.php(146): IPS\perscom\modules\admin\personnelaction\_requests->execute() #9 C:\xampp\htdocs\admin\index.php(14): IPS\_Dispatcher->run() #10 {main} Backtrace: #0 C:\xampp\htdocs\init.php(537): IPS\_Log::log('TypeError: Argu...', 'uncaught_except...') #1 [internal function]: IPS\IPS::exceptionHandler(Object(TypeError)) #2 {main} Error 2: Processing application Error: Call to a member function isSoldier() on string (0) #0 [internal function]: IPS\perscom\Personnel\_Soldier->IPS\perscom\Personnel\{closure}('G.Oviedo') #1 C:\xampp\htdocs\system\Helpers\Form\FormAbstract.php(375): call_user_func(Object(Closure), 'G.Oviedo') #2 C:\xampp\htdocs\system\Helpers\Form\TextArea.php(113): IPS\Helpers\Form\_FormAbstract->validate() #3 C:\xampp\htdocs\system\Helpers\Form\Text.php(257): IPS\Helpers\Form\_TextArea->validate() #4 C:\xampp\htdocs\system\Helpers\Form\Member.php(145): IPS\Helpers\Form\_Text->validate() #5 C:\xampp\htdocs\system\Helpers\Form\FormAbstract.php(165): IPS\Helpers\Form\_Member->validate() #6 C:\xampp\htdocs\system\Helpers\Form\FormAbstract.php(142): IPS\Helpers\Form\_FormAbstract->setValue(true) #7 [internal function]: IPS\Helpers\Form\_FormAbstract->__construct('personnel_membe...', Object(IPS\Member), true, Array, Object(Closure)) #8 C:\xampp\htdocs\system\Helpers\Form\TextArea.php(60): call_user_func_array('parent::__const...', Array) #9 [internal function]: IPS\Helpers\Form\_TextArea->__construct('personnel_membe...', Object(IPS\Member), true, Array, Object(Closure)) #10 C:\xampp\htdocs\system\Helpers\Form\Text.php(107): call_user_func_array('parent::__const...', Array) #11 [internal function]: IPS\Helpers\Form\_Text->__construct('personnel_membe...', Object(IPS\Member), true, Array, Object(Closure)) #12 C:\xampp\htdocs\system\Helpers\Form\Member.php(66): call_user_func_array('parent::__const...', Array) #13 C:\xampp\htdocs\applications\perscom\sources\Personnel\Soldier.php(0): IPS\Helpers\Form\_Member->__construct('personnel_membe...', Object(IPS\Member), true, Array, Object(Closure)) #14 C:\xampp\htdocs\applications\perscom\sources\Personnel\Soldier.php(0): IPS\perscom\Personnel\_Soldier->form(Object(IPS\Helpers\Form)) #15 C:\xampp\htdocs\applications\perscom\modules\admin\applications\application.php(0): IPS\perscom\Personnel\_Soldier->process(Object(IPS\perscom\Applications\Application)) #16 C:\xampp\htdocs\system\Dispatcher\Controller.php(85): IPS\perscom\modules\admin\applications\_application->process() #17 C:\xampp\htdocs\system\Node\Controller.php(62): IPS\Dispatcher\_Controller->execute() #18 C:\xampp\htdocs\applications\perscom\sources\Node\Controller.php(0): IPS\Node\_Controller->execute() #19 C:\xampp\htdocs\applications\perscom\modules\admin\applications\application.php(0): IPS\perscom\Node\_Controller->execute() #20 C:\xampp\htdocs\system\Dispatcher\Dispatcher.php(146): IPS\perscom\modules\admin\applications\_application->execute() #21 C:\xampp\htdocs\admin\index.php(14): IPS\_Dispatcher->run() #22 {main} Backtrace #0 C:\xampp\htdocs\init.php(537): IPS\_Log::log('Error: Call to ...', 'uncaught_except...') #1 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #2 {main} Any ideas? Thanks! Quote Link to comment Share on other sites More sharing options...
Administrators Jon Erickson Posted January 20, 2019 Administrators Share Posted January 20, 2019 Both errors appear because the function isSoldier() is returning false on whoever is performing the actions. Who is the person who is approving the PAR or processing the application not a solider in your system? Quote Owner Deschutes Design Group LLC email | jon@deschutesdesigngroup.com Link to comment Share on other sites More sharing options...
Ignacio Pablo Duro Posted January 23, 2019 Author Share Posted January 23, 2019 Thanks! I was approving the PAR with a non PERSCOM user Solved! Quote Link to comment Share on other sites More sharing options...
Administrators Jon Erickson Posted January 23, 2019 Administrators Share Posted January 23, 2019 Fantastic! Quote Owner Deschutes Design Group LLC email | jon@deschutesdesigngroup.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.