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

[SOLVED] Unable to get built-in search to work (beta)


Reply

4 Posts   349 Views

Avatar
kinglozzer

20 March 2012 at 10:34pm (Last edited: 20 March 2012 10:35pm), Community Member, 146 Posts

Hi guys,

I'm having some trouble getting SS's built in search feature to work, when I add the following line:

FulltextSearchable::enable();


to my _config.php, I get the following fatal error:

Call to a member function getDatabaseServer() on a non-object in /Users/lawrence/Devsites/***/sapphire/search/FulltextSearchable.php on line 55

I've tried searching through the API and documentation and I can't find anything to suggest that this function has been changed or deprecated - I'm running v3 beta - so do you guys have any thoughts or ideas on what may be causing this?

Thanks,
Loz

Avatar
Willr

22 March 2012 at 6:51pm Forum Moderator, 5511 Posts

Known bug in 3.0, for now you cannot use that line as _config.php is loaded before the database connection is established.

Avatar
kinglozzer

22 March 2012 at 10:11pm Community Member, 146 Posts

Ah okay. thanks

Avatar
Willr

22 March 2012 at 10:34pm Forum Moderator, 5511 Posts

FYI http://open.silverstripe.org/ticket/6858