Forums / Install & configuration / Something wrong with search...

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

eZ debug

Timing: Jan 30 2025 19:36:11
Script start
Timing: Jan 30 2025 19:36:11
Module start 'content'
Timing: Jan 30 2025 19:36:11
Module end 'content'
Timing: Jan 30 2025 19:36:11
Script end

Main resources:

Total runtime0.2176 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.0469370.2891
Module start 'content' 0.00780.0150 958.33591,009.6875
Module end 'content' 0.02280.1947 1,968.02343,899.9688
Script end 0.2175  5,867.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00452.0633200.0002
Check MTime0.00130.6074200.0001
Mysql Total
Database connection0.00060.290910.0006
Mysqli_queries0.123056.52101410.0009
Looping result0.00140.62381390.0000
Template Total0.194389.310.1943
Template load0.00070.340110.0007
Template processing0.193688.965210.1936
Override
Cache load0.00050.226610.0005
Sytem overhead
Fetch class attribute can translate value0.00210.966410.0021
XML
Image XML parsing0.00030.146210.0003
General
dbfile0.00622.8607200.0003
String conversion0.00000.002330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs