Jump to:

23456 Posts in 18905 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Uncaught TypeError: Cannot read property 'SelectorsAPI' of undefined

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 572 Views
  • Ashatron
    Avatar
    Community Member
    1 Post

    Uncaught TypeError: Cannot read property 'SelectorsAPI' of undefined Link to this post

    Hi Everyone!

    Im working on site that was built in Silverstripe, which I havent used before. They have a search box on one page (where it works fine, no errors) and they want it on another, I found the chunk of code which is simple enough -

    <div class="searchForm">
    $SearchForm
    </div>

    I thought perhaps a simple copy paste would work, pasting it onto the other page they want it on, but no luck.
    I'm getting the following console errors -

    Uncaught TypeError: Cannot read property 'SelectorsAPI' of undefined
    Enumerable.each - prototype.js:345
    breakoutCarousel - main.js:19
    (anonymous function) - main.js:231
    responder - prototype.js:4459
    fire - prototype.js:4620
    _methodized - prototype.js:339
    fireContentLoadedEvent - prototype.js:4668

    I expect some javascript is not being called which si why selectorsAPI is not being found, but i have checked and made sure all the same javascript is being called and still get this problem.

    Does anyone have any idea what it might be?

    Hope you can help!

    572 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.