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   356 Views

Avatar
kinglozzer

Community Member, 151 Posts

20 March 2012 at 10:34pm

Edited: 20/03/2012 10:35pm

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

Forum Moderator, 5513 Posts

22 March 2012 at 6:51pm

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

Community Member, 151 Posts

22 March 2012 at 10:11pm

Ah okay. thanks

Avatar
Willr

Forum Moderator, 5513 Posts

22 March 2012 at 10:34pm

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