Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

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

Uncaught TypeError: Cannot read property 'SelectorsAPI' of undefined




6 July 2012 at 2:39am Community Member, 1 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">

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! :D