Forums / Setup & design / Broken Search?

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

eZ debug

Timing: Jan 18 2025 16:25:54
Script start
Timing: Jan 18 2025 16:25:54
Module start 'content'
Timing: Jan 18 2025 16:25:55
Module end 'content'
Timing: Jan 18 2025 16:25:55
Script end

Main resources:

Total runtime0.9515 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.5859180.8516
Module start 'content' 0.00700.7805 768.4375700.9063
Module end 'content' 0.78760.1638 1,469.3438344.4688
Script end 0.9513  1,813.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4921210.0002
Check MTime0.00150.1609210.0001
Mysql Total
Database connection0.00120.125810.0012
Mysqli_queries0.862190.60832190.0039
Looping result0.00230.24352170.0000
Template Total0.923197.020.4615
Template load0.00190.194620.0009
Template processing0.921296.821720.4606
Template load and register function0.00020.024310.0002
states
state_id_array0.00070.072610.0007
state_identifier_array0.00060.064320.0003
Override
Cache load0.00160.1706770.0000
Sytem overhead
Fetch class attribute can translate value0.00120.123650.0002
Fetch class attribute name0.00080.0886110.0001
XML
Image XML parsing0.00110.119850.0002
class_abstraction
Instantiating content class attribute0.00000.0017120.0000
General
dbfile0.00350.3678280.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs