Page 1 of 1

Search does not work in static pages

Posted: Wed Feb 18, 2015 12:27 pm
by cfra2701
Hi there,
I can not find an answer so I try a new post.
Can you tell me what could help the search module to search in a "static page".
My site www.alapeche.be contains pages whose content comes from modules but also typed straight in the page.
This page, for example http://www.alapeche.be/etangs-de-peche.html contains the terms "belot" and "silly"
When I search for belot > no result
If I search for silly > 1 result
If I try a search from google precising the site:
belot site:www.alapeche.be > 1 result

These terms are not blacklisted in the Search module

I'm lost :-)
Any idea?



----------------------------------------------

Cms Version: 1.11.11

Installed Modules:

CMSMailer: 5.2.2
FileManager: 1.4.5
MenuManager: 1.8.6
ModuleManager: 1.5.8
News: 2.14.4
nuSOAP: 1.0.2
Printing: 1.1.2
Search: 1.7.11
ThemeManager: 1.1.8
TinyMCE: 2.9.12
FCKeditorX: 1.1.0
CGExtensions: 1.41.2
FormBuilder: 0.7.4
FormBrowser: 0.4.2
Captcha: 0.4.6
Album: 0.9.3
SiteMapMadeSimple: 1.2.7
Glossary: 1.0
FrontEndUsers: 1.21.18
CustomContent: 1.9
CMSPrinting: 1.0.5
MicroTiny: 1.2.7
CGCalendar: 1.10.4
youtubeplayer: 1.3.1
CGSimpleSmarty: 1.7
CGFeedback: 1.6.2
CGJobMgr: 1.2.15
AjaxMadeSimple: 0.4.0
Polls: 1.1.0
EditArea: 0.2.9
NMS: 2.7.4
CGFeedMaker: 1.0.17
JQueryTools: 1.2.5
GoogleMaps: 0.2.1
Showtime: 3.4
AceEditor: 1.0
ListIt2: 1.4.1
ListIt2FormBuilder: 1.4.1


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 64000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: p
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.29
md5_function: On (Vrai)
gd_version: 2
tempnam_function: On (Vrai)
magic_quotes_runtime: Off (Faux)
E_STRICT: 0
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 120
output_buffering: 4096
safe_mode: Off (Faux)
file_uploads: On (Vrai)
post_max_size: 64M
upload_max_filesize: 64M
session_save_path: /tmp (0700)
session_use_cookies: On (Vrai)
xml_function: On (Vrai)
xmlreader_class: On (Vrai)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.73
Server Db Grants: Impossible de trouver un privilège "GRANT ALL". Cela peut signifier que vous pourriez avoir des problèmes pour installer ou retirer des modules, ou encore l 'ajout et la suppression d'éléments, y compris les pages.
Server Time Diff: Aucune différence de date du système de fichiers trouvées


----------------------------------------------

Re: Search does not work in static pages

Posted: Wed Feb 18, 2015 1:17 pm
by Rolf
Try to re-index the website content in the Search module admin

grtz. Rolf

Re: Search does not work in static pages

Posted: Wed Feb 18, 2015 1:25 pm
by velden
I think there is kind of bug in search module (if I remember correctly) that won't index anything from content between { and }

That shouldn't be so bad if it did some clever bracket matching (very complicated though), but IIRC it stops indexing at the first occurence of { and starts again after the last }

So if your content looks like this

Code: Select all

This is indexed
{first smarty tag}

this won't be indexed

{second smarty tag}

this will be indexed
that could be the problem.

If possible, break up content in separate blocks with the tags between them. Obviously this is not a solution when the tags need to be added by users.

Re: Search does not work in static pages

Posted: Wed Feb 18, 2015 1:47 pm
by staartmees
some of your modules are old and should be updated. Also upgrade your PHP to version 5.4 or higher as the latest versions of all CG-modules need PHP 5.4 or higher.