solved[search not working, working only for first time.]

Author Message

manoj sharma

Tuesday 16 June 2009 6:33:21 am

hi guyz,

i am using ezpublish 4.0.1 with ezflow.
i am not having virtual host. but want to make search work.

i have tried to diagnose why its not working but could make it work.

my problem is that when i search for any keyword, the first keyword i use is working but when i try with another it seaches for first keyword not by second.

exampel:

when i try to search with key word "ezpbulish" it shows results
but when i try to search with second keyword "mysite" it shows results from the first serach results and first keyword into search text box.

when i clear cache from backend(admin panel) it search for the keywork i provide but again after searching for different keywork it list the result of first keywork searched.

i think there is something wrong with cache block..

because we clear cache it is working for the first time.

Any help would be deeply appreciated.

Thanks & Regards,
Manoj Sharma

André R.

Tuesday 16 June 2009 7:59:28 am

It looks like you have added a cache-block around either $module_result.content in pagelayout.tpl (look for unclosed cache-block's) or inside the search template.

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

manoj sharma

Wednesday 17 June 2009 3:32:26 am

cache block problem was there.

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 15:56:16
Script start
Timing: Jan 18 2025 15:56:16
Module start 'layout'
Timing: Jan 18 2025 15:56:16
Module start 'content'
Timing: Jan 18 2025 15:56:17
Module end 'content'
Timing: Jan 18 2025 15:56:17
Script end

Main resources:

Total runtime1.3356 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.1563152.6563
Module start 'layout' 0.00630.0035 740.812539.4922
Module start 'content' 0.00981.3245 780.3047537.0234
Module end 'content' 1.33430.0013 1,317.328112.4219
Script end 1.3356  1,329.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2370160.0002
Check MTime0.00130.0983160.0001
Mysql Total
Database connection0.00060.046310.0006
Mysqli_queries1.289796.5628570.0226
Looping result0.00050.0357550.0000
Template Total1.297897.220.6489
Template load0.00200.146620.0010
Template processing1.295997.022020.6479
Template load and register function0.00020.011710.0002
states
state_id_array0.00090.070810.0009
state_identifier_array0.00070.051320.0003
Override
Cache load0.00160.1231230.0001
Sytem overhead
Fetch class attribute can translate value0.00080.058520.0004
Fetch class attribute name0.00160.119440.0004
XML
Image XML parsing0.00070.050720.0003
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00070.0509170.0000
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs