Jump to:

4579 Posts in 1388 Topics by 1378 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » SS 2.4 Site Search stops working on live server.

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1293 Views
  • DsX
    Avatar
    Community Member
    172 Posts

    SS 2.4 Site Search stops working on live server. Link to this post

    I have just migrated a site structure (code and templates) to a live (dev account) to continue its development.
    I still have a separate local copy running on my local machine so I can develop in multiple stages.

    First you should know that this new build is running on the default data that was inserted in dev/build most every thing seems ok (I did have to do this one fileupload fix: http://silverstripe.org/general-questions/show/281744?start=16)

    NOW the problem I am facing is that my search field returns an error. Where it is working fine on my local machine.
    the error is basic:

    There has been an error
    The website server has not been able to respond to your request.Code

    I am guessing that in this live mode I have less debugging, so I ask first what are my options for enhanced debugging on a live server, and 2 does anyone know what might be causing the search to fail when move to a new machine?

  • DsX
    Avatar
    Community Member
    172 Posts

    Re: SS 2.4 Site Search stops working on live server. Link to this post

    OK, I should mention that I am using SS 2.4 stable.
    Since I couldn't figure it out... I thought I would go through the tutorial on adding search.
    http://doc.silverstripe.org/tutorial:4-site-search

    this was a good plan since it seems that you now need to add a setting to your config file for search to be active.. strangley it works without on my local dev machine??

    add FulltextSearchable::enable(); to your config to enable the search feature.

  • Anonymous user
    Avatar
    Community Member
    1 Post

    Re: SS 2.4 Site Search stops working on live server. Link to this post

    See here: http://doc.silverstripe.org/debugging
    You may find that:

    if(Director::isLive()) Debug::send_errors_to("your@email.com");

    helps you on the live site.

    Also, try using ?isDev=1 in your URL, this will put the site in DEV mode for the duration of the request, which should help find the bug, without having to put the site constantly into dev mode.

    Cheers,
    - Luke

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