Broken Search?

Author Message

Ash Hall

Tuesday 03 February 2009 3:42:24 pm

For some reason, when trying to search from the front end, I get...

Tried solving this myself but can't work it out, any ideas?

-------------------------------
Page redirects to: index.php?SearchText=test and error shown below:

Error / kernel (20)

Module not found
The requested module SearchText=test could not be found.

Possible reasons for this are:

The module name was misspelled, try changing the URL.
The module does not exist on this site.
This site uses siteaccess matching in the URL and you did not supply one, try inserting a siteaccess name before the module in the URL .

André R.

Wednesday 04 February 2009 1:33:00 am

Search is your friend (I searched for 'SearchText'):
http://ez.no/developer/forum/install_configuration/something_wrong_with_search/re_something_wrong_with_search__1
http://ez.no/developer/forum/setup_design/search_engine_problem/re_search_engine_problem

Basically GET parameters doesn't work on non virtual host mode when php is setup in [fast]cgi mode, since ezp uses ? for the url to workaround a php issue(so you technically get two ?'s in the internal url, witch doesn't work). So if you are running in vh mode, try to enable the ForceVirtualHost setting in settings/override/site.ini*, if not, use POST instead.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Ash Hall

Wednesday 04 February 2009 3:24:51 am

I did as you said and selected to override with the VirtualHost setting - then tried a search again, now I get a 404...

------------------------------

http://www.**********.co.uk/eng/content/search?SearchText=pierce

Not Found
The requested URL /eng/content/search was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

André R.

Wednesday 04 February 2009 3:27:23 am

Then try alternative two.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Ash Hall

Wednesday 04 February 2009 4:04:24 am

I'll try changing the search to post then - but where/how do I do this?

Incidently, adding the VirtualHost setting stopped all pages/links in the site working!?

Ash Hall

Wednesday 04 February 2009 5:12:04 am

Marvellous...since making that change to the VirtualHost file, and then subsequently removing the setting, my site still doesn't work and I can no longer get into the admin panel, the URL's appear to have changed?! The frontpage works, but no links to anything else work.

Do I have to clear the cache? How because I can't get into my admin panel....

In my Dreamhost panel, I have the following settings for this site...

---------------------

PHP Version
5.2
5.2 (Mod_PHP)

Extra Web Security?
(highly recommended)

FastCGI Support (via mod_fcgid)?
(advanced)

Use FastCGI for all PHP?
(advanced)

XCache Support for PHP?
Requires either PHP with FastCGI or mod_php. (advanced)

Noicokuna Niemoge

Wednesday 04 February 2009 6:29:40 am

Yep, it's recommended always to clean cache after any serious changes. You can do it manually, purging folders:

var/cache/ (...) (especially var/cache/ini)
var/ezwebin_site/cache/template/compiled/

As for my working routine, I usually copy override and siteaccess folders from settings folder before making any significant ini changes. If it breaks the site, then it's enough to copy these folders again (or corresponding ini files only) and purge the ini cache.

In addition, edit the site.ini.append.php file in your override folder (if you set ForceVirtualHost as override) or in siteaccess/your_siteaccess folder, and set ForceVirtualHost to false.

As for changing GET to POST, you have to edit a template, either in your own design, or by making template override, or if you plan using only ezwebin design, change it in:

extensions/ezwebin/design/ezwebin/templates/pagelayout.tpl (for search in the site banner)
extensions/ezwebin/design/ezwebin/templates/content/search.tpl (for search)
extensions/ezwebin/design/ezwebin/templates/content/advancedsearch.tpl (for adv. search)

There are also admin search tpls, these are located in design/admin folder, do a little search please, don't have time to check that out. ^^

Shiki soku ze ku...

Ash Hall

Wednesday 04 February 2009 7:04:31 am

Thanks for your help, I'll have a go at adjusting the searches now!!

Its just a shame that EZPublish isn't a little more intelligent/intuitive about this side of its CMS, its not at all obvious, and why does VirtualHost have to be enabled in the first place anyway?

Noicokuna Niemoge

Thursday 05 February 2009 3:15:25 am

The eZ Staff member said "IF you're running in Vhost mode". You most probably aren't, so you don't need to enable it. Anyway, Vhost mode is recommended for security and nice urls setup, there are many topics about it... too bad not everyone can controll vhost settings.

Yep, it was difficult to grasp all of this for me as well, but the more I sit with eZ, the better it gets :) Also, the documentation and articles were very helpful for me.

Shiki soku ze ku...

manoj sharma

Tuesday 16 June 2009 6:22:15 am

i ran into same problem with my site.

if you have found solution to this problem please suggest.

i have tried to modify files stated in extension/ezwebin/design but nothign is happening..

what makes me curious is that when we clear cache it works for the first time.

Waiting for reply

Thanks & Regards,
Manoj Sharma

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.