hi all,
Happy new year
I have created new form and form is created successfully but i have shown below error for clicking on submit button.
[User Warning] popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
Source
445 }
446
447 /**
448 * Pop this controller off the top of the stack.
449 */
450 function popCurrent() {
451 if($this === self::$controller_stack[0]) {
452 array_shift(self::$controller_stack);
453 } else {
454 user_error("popCurrent called on $this->class controller, but it wasn't at the top of the stack", E_USER_WARNING);
455 }
456 }
457
458 /**
459 * Redirct to the given URL.
460 * It is generally recommended to call Director::redirect() rather than calling this function directly.
Trace
* popCurrent called on ModelAsController controller, but it wasn't at the top of the stack
Line 454 of Controller.php
* Controller->popCurrent()
Line 76 of ModelAsController.php
* ModelAsController->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
* Director::direct(sports/outdoor-sports/event/dead-sea-ultra-marathon/23/ReviewForm)
Line 130 of main.php
* require_once(D:\htdocs\testing\sapphire\main.php)
Line 63 of index.php
if anyone know why this error occurs and how it is solved then please tell me.
Thanks