I have been working on a solution to this rather perplexing problem.
My objective was to remove all active sessions. For some unforeseen reason
the
Native method to the Zend_Session class 'destroy' would not produced the
desired result.
I then instead decided to use the native PHP function 'session_destroy' to
handle my task.
Afterwards my session was annihilated, however anytime I tried to log back
in
I received the following warning message.
Warning: Exception caught by form: Method form does not exist
Stack Trace:
#0 [internal function]: Zend_Form->__call('form', Array)
#1 [internal function]: Schedule_Form->form(NULL, Array, '<dl
class="zend...')
#2 C:\wamp\www\library\Zend\View\Abstract.php(329):
call_user_func_array(Array, Array)
#3 [internal function]: Zend_View_Abstract->__call('form', Array)
#4 C:\wamp\www\library\Zend\Form\Decorator\Form.php(132):
Zend_View->form(NULL, Array, '<dl class="zend...')
#5 C:\wamp\www\library\Zend\Form.php(2595):
Zend_Form_Decorator_Form->render('<dl class="zend...')
#6 C:\wamp\www\library\Zend\Form.php(2610): Zend_Form->render()
#7
C:\wamp\www\ScheduleOnlineDeveopment\application\employee\views\scripts\requ
ests\create.phtml(5): Zend_Form->__toString()
#8 C:\wamp\www\library\Zend\View.php(107): include('C:\wamp\www\Sch...')
#9 C:\wamp\www\library\Zend\View\Abstract.php(820):
Zend_View->_run('C:\wamp\www\Sch...')
#10 C:\wamp\www\library\Zend\Controller\Action\Helper\ViewRenderer.php(902):
Zend_View_Abstract->render('requ in C:\wamp\www\library\Zend\Form.php on
line 2615
What is interesting about this warning, I didn't really change the
application code
Only with the exception of adding the session_destroy function (and removal)
This is where it starts to get interesting. After tearing apart my forms and
looking for this phantom function (that never existed)
I decide to change the class name from Schedule_Form to Schedule_Test, low
and behold everything worked... Once I changed the class name back to
Schedule_Form the same warning presented its self; to make sure it wasn't a
fluke I then changed the name to Schedule_Tree,
As expected it worked perfectly.
Recap, before calling session_destroy everything was working perfectly after
calling session destroy
My forms stopped working and presented me with a strange warning. The fix
(not really) changing the class name
>From Schedule_Form to Schedule_Test (or some other name), after that action
everything worked fine.
I'm more confused now then when I started. I have searched the internet
(googled it) to see if others had the
same problem, so far my results have come back negative.
Could someone explain to me why this is happening or point me to a resource
that could better answer my questions,
And even hopefully show me how to fix this problem the right way.
Thank you for reading this rather long dissertation I appreciate your time.
P.S. also I would like to apologize for the double post, however I believe
my last post was lacking some details.
Thanks again.
-Brandon
没有评论:
发表评论