4579 Posts in 1388 Topics by 1378 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1293 Views |
-
SS 2.4 Site Search stops working on live server.

11 June 2010 at 8:17am Last edited: 11 June 2010 9:10am
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.CodeI 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?
-
Re: SS 2.4 Site Search stops working on live server.

11 June 2010 at 9:10am
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-searchthis 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.
-
Re: SS 2.4 Site Search stops working on live server.

11 June 2010 at 9:15am
See here: http://doc.silverstripe.org/debugging
You may find that:helps you on the live site.if(Director::isLive()) Debug::send_errors_to("your@email.com");
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 |


