Zen Cart Logo
Forums / General Questions / Search Results show a completely blank page?

Search Results show a completely blank page?

Views: 721

Results 1 to 6 of 6
9 Mar 2012, 3:33 PM
#1
vmarty123 avatar

vmarty123

New Zenner

Join Date:
Apr 2009
Posts:
16
Plugin Contributions:
0

Search Results show a completely blank page?

Whether I search from the sidebar or the advanced search page, it returns a completely blank page. No theme nothing. There are no error messages either.

Any Ideas?

9 Mar 2012, 4:35 PM
#3
vmarty123 avatar

vmarty123

New Zenner

Join Date:
Apr 2009
Posts:
16
Plugin Contributions:
0

Re: Search Results show a completely blank page?

It's not just happening with the search. Below are the error messages. Also, I have not touched any of the files in the error messages.

These are the cache my debug errors that I'm getting:

[09-Mar-2012 09:15:04] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/smalltow/public_html/cart/includes/languages/english/brew/advanced_search_result.php:137) in /home/smalltow/public_html/cart/includes/functions/functions_general.php on line 45

[09-Mar-2012 10:24:21] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/smalltow/public_html/cart/includes/languages/english/modules/shipping/flat.php:53) in /home/smalltow/public_html/cart/includes/functions/functions_general.php on line 45

[09-Mar-2012 10:24:25] PHP Warning: Invalid argument supplied for foreach() in /home/smalltow/public_html/cart/includes/modules/pages/checkout_shipping/header_php.php on line 381

9 Mar 2012, 4:45 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Search Results show a completely blank page?

The advanced_search_result.php file only has 69 lines, so the fact that the error message is talking about line 137 means that whoever edited it probably did so with something other than a text editor and ended up with a extra space or line at the bottom of the file. Check that, or just remove that file from your override folder to use the default, unedited file.

9 Mar 2012, 5:35 PM
#5
vmarty123 avatar

vmarty123

New Zenner

Join Date:
Apr 2009
Posts:
16
Plugin Contributions:
0

Re: Search Results show a completely blank page?

Found the search error. extra lines after the closing php tag.

Another error: during checkout when going from step 1 to step 2 I get the same blank page. the error reads:

[09-Mar-2012 11:28:03] PHP Warning: Invalid argument supplied for foreach() in /home/smalltow/public_html/cart/includes/modules/pages/checkout_shipping/header_php.php on line 381

header_php.php is attached.

Thanks for all your help!

9 Mar 2012, 5:52 PM
#6
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Search Results show a completely blank page?

Same deal, except this time your copy of that file is double-spaced. Replace it with a unedited copy from the Zencart zip file.

This sort of thing usually results from editing PHP files in something like Dreamweaver. Only use a good text editor on PHP files.