Page 1 of 1
[solved] blank page after search entry
Posted: Tue Dec 22, 2009 3:31 pm
by croise
Hello everyone,
After setting up my search module in the template it was working like a charm. For some reason though, and I can't recall since when, it is now displaying a blank page after a search.
I have tried reinstalling the module but no results unfortunately.
Does anyone have any idea what might be the problem?
Here's my system info:
----------------------------------------------
Cms Version: 1.6.6
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.1
* MenuManager: 1.6.2
* ModuleManager: 1.3.1
* News: 2.10.3
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.1
* ThemeManager: 1.1.1
* TinyMCE: 2.5.5
* FormBuilder: 0.6b2
* Captcha: 0.4
Config Information:
* php_memory_limit: 64M
* process_whole_template: false
* max_upload_size: 32000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.6
* md5_function: On (True)
* gd_version: 2
* tempnam_function: On (True)
* magic_quotes_runtime: Off (False)
* memory_limit: 64M
* max_execution_time: 30
* safe_mode: Off (False)
* session_save_path: /Applications/MAMP/tmp/php (0775)
* session.use_cookies: On (True)
Server Information:
* Server Api: apache2handler
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.41
----------------------------------------------
Thanks in advance for your help,
Irma
Re: blank page after search entry
Posted: Tue Dec 22, 2009 3:33 pm
by moorezilla
Not sure if this is your problem, but I ran into an issue with a company firewall where certain cmsms functionality was blocked, and this resulted in a blank page. As I recall, this included searching, search indexing, print version, and a few other functions. The remedy for me was simply to unblock some php calls being blocked by the firewall.
Re: blank page after search entry
Posted: Tue Dec 22, 2009 3:42 pm
by croise
@moorezille thanx for your quick reply. I'm not sure this could be the problem though, because nothing has changed regarding my firewall setting since the first testing of the search module (when it was still working properly).
I am currently trying to move the local install to an online server, to see if that helps.
Re: blank page after search entry
Posted: Tue Dec 22, 2009 3:46 pm
by RonnyK
Did you upgrade? Using mod_rewrite?
Have a link?
Ronny
Re: blank page after search entry
Posted: Tue Dec 22, 2009 4:43 pm
by croise
Hi Ronny,
No I didn't upgrade, mod-rewrite is off, don't have a link yet... but working on it. I'm trying to run it on a windows server but can't get it to work.
I will post a link when it's up.
Irma
Re: blank page after search entry
Posted: Wed Dec 23, 2009 11:08 am
by croise
Test link is now online
http://www2.aenofondsgrafimedia.nl/
and gives an error after search:
Fatal error: Cannot redeclare class SearchItemCollection in W:\websites\www2.aenofondsgrafimedia.nl\www\modules\Search\action.dosearch.php on line 5
When I change the template the search does work, but when I replace my template search tag with the tag in the NCleanBlue template I get the same error.
The page "certificaten" has the NCleanBlue template assigned.
I hope anyone has an idea... thanx!
Re: blank page after search entry
Posted: Wed Dec 23, 2009 11:14 am
by Rolf
Hi croise,
Please put a copy of your system information here.
Perhaps a copy of the html template would be nice to
Grtz. Rolf

Re: blank page after search entry
Posted: Wed Dec 23, 2009 11:18 am
by croise
System info:
----------------------------------------------
Cms Version: 1.6.6
Installed Modules:
* CMSMailer: 1.73.14
* FileManager: 1.0.1
* MenuManager: 1.6.2
* ModuleManager: 1.3.1
* News: 2.10.3
* nuSOAP: 1.0.1
* Printing: 1.0.4
* Search: 1.6.1
* ThemeManager: 1.1.1
* TinyMCE: 2.5.5
* FormBuilder: 0.6b2
* Captcha: 0.4
* FormBuilder: 0.6b2
Config Information:
* php_memory_limit:
* process_whole_template: false
* max_upload_size: 20000000
* default_upload_permission: 664
* assume_mod_rewrite: false
* page_extension:
* internal_pretty_urls: false
* use_hierarchy: true
Php Information:
* phpversion: 5.2.8
* md5_function: Aan (True)
* gd_version: 2
* tempnam_function: Aan (true)
* magic_quotes_runtime: Uit (false)
* memory_limit: 128M
* max_execution_time: 300
* safe_mode: Uit (false)
* session_save_path: c:\iis\php5_2\sessiondata (0777)
* session.use_cookies: Aan (true)
Server Information:
* Server Api: cgi-fcgi
* Server Db Type: MySQL (mysql)
* Server Db Version: 5.0.88
----------------------------------------------
What info from the template do you need?
Irma
Re: blank page after search entry
Posted: Wed Dec 23, 2009 11:26 am
by Rolf
What info from the template do you need?
The html layout of the page.
If the search function is working on the default template, there should be something not really good in there...
®
Re: blank page after search entry
Posted: Wed Dec 23, 2009 11:47 am
by croise
This is the template used for the home page.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
{capture assign="captured_content"}{content}{/capture}
<!--[if IE]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
<link rel="shortcut icon" href="{root_url}/uploads/AenO/template/favicon.ico" >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
{if isset($detail_title)}
<title>{$detail_title} | {title}</title>
{else}
<title>{title} | {sitename}</title>
{/if}
{stylesheet}
{metadata}
</head>
</__body>
<p>
<!-- TEMPLATE VARIABELEN -->
{content block="Gebruik 3-koloms aktieblocks" oneline="true" size="1" default="j" assign="aan_3kolom"}
{if empty($aan_3kolom)}{assign var="aan_3kolom" value="j"}{/if}
{content block="Gebruik 2-koloms aktieblocks" oneline="true" size="1" default="n" assign="aan_2kolom"}
{if empty($aan_2kolom)}{assign var="aan_2kolom" value="n"}{/if}
{content block="Toon zoekveld" oneline="true" size="1" default="j" assign="aan_zoekveld"}
{if empty($aan_zoekveld)}{assign var="aan_zoekveld" value="j"}{/if}
<!-- EINDE TEMPLATE VARIABELEN -->
</p>
<!-- Begin Wrapper -->
<div id="wrapper">
<!-- Begin Header -->
<div id="header">
<!-- Begin Searchbox -->
{if $aan_zoekveld =="j"}
<div id="searchbox">
{search searchtext="Zoek op de site"}
</div>
{/if}
<!-- End Searchbox -->
<img src="uploads/AenO/template/headerLogo.jpg" alt="A&O Fonds Grafimediabranche" width="524" height="112" />
</div>
<!-- End Header -->
<!-- Begin Navigation -->
<div id="navigation">
{menu template='cssmenu.tpl' number_of_levels='1'}
</div>
<!-- End Navigation -->
<!-- Begin Left Column -->
<div id="leftcolumn">
<!-- Begin main image -->
<div id="mainimage">{content_image block='Hoofdbeeld' dir='AenO/hoofdbeelden'}</div>
<!-- End main image -->
{if $aan_3kolom == "j"}
<!-- Begin Aktie Blocks 3 kolom -->
<div id="aktieblocks-3kolom">
<div id="kol3-1" class="block-blauw">
{global_content name='3kolom-1'} </div>
<div id="kol3-2" class="block-blauw">
{global_content name='3kolom-2'} </div>
<div id="kol3-3" class="block-blauw">
{global_content name='3kolom-3'} </div>
</div>
<!-- End aktie blocks 3 kolom -->
{/if}
{if $aan_2kolom == "j"}
<!-- Begin Aktie Blocks 2 kolom -->
<div id="aktieblocks-2kolom">
<div id="kol2-1" class="block-blauw">
{global_content name='2kolom-1'} </div>
<div id="kol2-2" class="block-blauw">
{global_content name='2kolom-2'} </div>
</div>
<!-- End aktie blocks 2 kolom -->
{/if}
<!-- Begin Content -->
<div id="content">
<div id="nieuws">
{content}
</div>
</div>
<!-- END Content -->
</div>
<!-- End Left Column -->
<!-- Begin Right Column -->
<div id="rightcolumn">{global_content name='rechts'} </div>
<!-- End Right Column -->
<!-- Begin Second Menu -->
<!-- End Second Menu -->
<!-- Begin Footer -->
<div id="footer">
{global_content name='footer'}
</div>
<!-- End Footer -->
</div>
<!-- End Wrapper -->
<__body>
</__html>
Re: blank page after search entry
Posted: Wed Dec 23, 2009 11:55 am
by RonnyK
does it work when you take the wrapper away (the one for the optional searchbox-showing)?
Ronny
Re: blank page after search entry
Posted: Wed Dec 23, 2009 12:00 pm
by croise
Hi Ronny,
No, I tried that...

Re: blank page after search entry
Posted: Wed Dec 23, 2009 12:34 pm
by Rolf
Croise,
You've got the {content} tag twice in your template.
Try to comment one out and see what happens...
Code: Select all
{capture assign="captured_content"}{content}{/capture}
Code: Select all
<div id="nieuws">
{content}
</div>
Regards, Rolf
Re: blank page after search entry
Posted: Wed Dec 23, 2009 12:46 pm
by croise
Hi Rolf,
damn that works! The captured content tag got stranded after I tried something out... stupid that I didn't see it
Thanx!
Re: [solved] blank page after search entry
Posted: Wed Dec 23, 2009 12:51 pm
by Rolf
You're welcome, croise.
Read this one yet?
http://forum.cmsmadesimple.org/index.ph ... 692.0.html
Grtz. Rolf