Jump to:

10930 Posts in 2613 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » Multi Form Step and autosuggest field error

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 428 Views
  • _Jam_
    Avatar
    Community Member
    9 Posts

    Multi Form Step and autosuggest field error Link to this post

    Hi I hope someone can explain to me why I am getting this error on my multistep form.

    I have an autosuggest field which loads suggestions via ajax when user is typing.

    In a regular form autosuggest field works fine but in multistep form the server gives me this error:

    =====================================================

    ERROR [User Warning]: popCurrent called on ReplicatorModelAsController controller, but it wasn't at the top of the stack
    IN POST /vendor-registration/VendorRegistrationForm/field/AddressCity/Suggest
    Line 454 in C:\wamp\www\ccn\sapphire\core\control\Controller.php

    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
    =====
    <ul>user_error(popCurrent called on ReplicatorModelAsController controller, but it wasn't at the top of the stack,512)
    line 454 of Controller.php

    Controller->popCurrent()
    line 76 of ModelAsController.php

    ModelAsController->handleRequest(SS_HTTPRequest)
    line 282 of Director.php

    Director::handleRequest(SS_HTTPRequest,Session)
    line 125 of Director.php

    Director::direct(/vendor-registration/VendorRegistrationForm/field/AddressCity/Suggest)
    line 127 of main.php

    </ul>

    I hope somebody can give me even just a clue.

    Thanks,

    428 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.