Something wrong with search...

Author Message

Siw Helen Thorslund

Sunday 08 August 2004 4:43:15 am

In my installation of eZ publish, I get an error when I search.
The eZ debug says this:

eZ debug

Error: index Aug 08 2004 13:38:02
Undefined module: SearchText=oss

Timing: Aug 08 2004 13:38:02
Module end 'error'

Error: eZTemplate Aug 08 2004 13:38:02
No such attribute for array(3): node_id
Choose one of following: content, path, uri

Warning: PHP Aug 08 2004 13:38:02
Undefined offset: 4 in /var/www/html/ez/kernel/common/eztreemenuoperator.php on line 111

Warning: eZContentObjectTreeNode::fetch Aug 08 2004 13:38:02
Cannot fetch node from empty node ID

Warning: PHP Aug 08 2004 13:38:02
Undefined offset: 1 in /var/www/html/ez/kernel/common/eztreemenuoperator.php on line 116

Warning: PHP Aug 08 2004 13:38:02
strpos(): Empty delimiter. in /var/www/html/ez/var/news/cache/template/compiled/node_list-c458118af0949f27c43565b6b38c2c7a.php on line 30

What can I do to fix this?

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Bård Farstad

Tuesday 10 August 2004 2:15:44 am

To me this looks like you're running eZ publish under apache in CGI mode. The search in CGI mode is currently broken, but it will be fixed in future releases.

--bård

Documentation: http://ez.no/doc

Horst Lindlbauer

Wednesday 07 January 2009 11:51:59 am

This is a very old thread, but it seems the problem still exists...
My online searches always return "Undefined module: SearchText=..."
phpinfo() returns: Server API :CGI

The search link looks quite strange too:

<domain>/index.php?SearchText=searchtext

I guess, it should be:

 
<domain>/index.php?/ger/content/search?SearchText=searchtext

If I insert the second version manually, I get : Access denied (kernel (1) ).

Any help appreciated.

---------------------------------------
http://www.lbm-services.de

Noicokuna Niemoge

Wednesday 21 January 2009 2:22:33 am

I fixed simple search and advanced search in their corresponding templates by modifying the form header.

Instead of method=get write method=post, and search will work.

Yet I didn't fix the link to advanced search in simple search. Gonna investigate it.

Shiki soku ze ku...

Horst Lindlbauer

Tuesday 27 January 2009 4:59:05 am

Thanks for the try. But this was not the problem.
The problem is that the search module itself can't be found.
Search works well on my test environment where I run the same eZ installation, but not on my provider's server.
Please try search on http://ez.lbm-services.de
Any help appreciated.

---------------------------------------
http://www.lbm-services.de

André R.

Tuesday 27 January 2009 6:37:41 am

This is most likely since the live server uses cgi / fascgi instead of php as a apache module. You can fix it like descibed above (change get to post) or if your running in virualhost mode it should also help if you set ForceVirtualHost=true in site.ini.

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

Noicokuna Niemoge

Tuesday 27 January 2009 11:09:05 pm

Mr Horst, I was also getting error message "module was not found". Please try the method described by me and tell us if it works or not.

Shiki soku ze ku...

Horst Lindlbauer

Saturday 31 January 2009 5:30:48 am

First it had no effect, because I replaced every method=get with method=post.
But the form tag in default pagelayout.tpl has no method defined at all.
This has to be completed so that it reads

<form action={"/content/search/"|ezurl} method="post">

in every template containing search box.

Thank you!!!

 

---------------------------------------
http://www.lbm-services.de

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 11:42:08
Script start
Timing: Jan 18 2025 11:42:08
Module start 'layout'
Timing: Jan 18 2025 11:42:08
Module start 'content'
Timing: Jan 18 2025 11:42:09
Module end 'content'
Timing: Jan 18 2025 11:42:09
Script end

Main resources:

Total runtime0.7924 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0313152.6406
Module start 'layout' 0.00620.0034 740.671939.4766
Module start 'content' 0.00960.7808 780.1484725.6797
Module end 'content' 0.79040.0019 1,505.828120.1484
Script end 0.7923  1,525.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4317160.0002
Check MTime0.00140.1751160.0001
Mysql Total
Database connection0.00090.112610.0009
Mysqli_queries0.705389.0134780.0090
Looping result0.00090.1148760.0000
Template Total0.756095.420.3780
Template load0.00250.310120.0012
Template processing0.753595.101520.3768
Template load and register function0.00010.013410.0001
states
state_id_array0.00080.102610.0008
state_identifier_array0.00100.124920.0005
Override
Cache load0.00230.2867620.0000
Sytem overhead
Fetch class attribute can translate value0.00100.126250.0002
Fetch class attribute name0.00210.2613110.0002
XML
Image XML parsing0.00190.234850.0004
class_abstraction
Instantiating content class attribute0.00000.0021110.0000
General
dbfile0.00220.2767300.0001
String conversion0.00000.001240.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 46
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs