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.

eZ debug

Timing: Jan 18 2025 19:32:43
Script start
Timing: Jan 18 2025 19:32:43
Module start 'layout'
Timing: Jan 18 2025 19:32:43
Module start 'content'
Timing: Jan 18 2025 19:32:44
Module end 'content'
Timing: Jan 18 2025 19:32:44
Script end

Main resources:

Total runtime1.2372 sec
Peak memory usage4,096.0000 KB
Database Queries82

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.8125152.6094
Module start 'layout' 0.00460.0032 741.421939.4141
Module start 'content' 0.00781.2280 780.8359695.8438
Module end 'content' 1.23580.0014 1,476.679720.1953
Script end 1.2371  1,496.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2464160.0002
Check MTime0.00130.1076160.0001
Mysql Total
Database connection0.00090.072910.0009
Mysqli_queries1.156493.4680820.0141
Looping result0.00090.0737800.0000
Template Total1.207197.620.6036
Template load0.00200.158120.0010
Template processing1.205197.409520.6026
Template load and register function0.00020.017610.0002
states
state_id_array0.00070.053410.0007
state_identifier_array0.00130.107320.0007
Override
Cache load0.00190.1501770.0000
Sytem overhead
Fetch class attribute can translate value0.00110.085440.0003
Fetch class attribute name0.00120.0980110.0001
XML
Image XML parsing0.00100.077040.0002
class_abstraction
Instantiating content class attribute0.00000.0021120.0000
General
dbfile0.00080.0643170.0000
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs