You are here:  » search


search

Submitted by rolli1 on Thu, 2015-10-22 09:57 in

Hi David,
I have a link in one of my pages
http://www.example.com/search.php?q=shoes

If I click on this link then no products are displayed.
The page Ends with:

"Product search results for shoes (showing 1 to 10 of 45426)

Order by: Relevance, Product Rating | Price: Low to High, High to Low "

No links or products are shown.

Where does this come from? I must say that the database has a prefix "na". Does this make the fault?

Regards

Roland

Submitted by support on Thu, 2015-10-22 10:07

Hi Roland,

If the page is aborting at that point (e.g. no more content, no footer etc.) then it sounds like a PHP Fatal Error is occurring - but nothing is displayed because display_errors is off (as recommended for production servers).

To enable error display, temporarily add the following line to the end of your config.php, just before the closing PHP tag:

  error_reporting(E_ALL);
  ini_set('display_errors','on');

If you're not sure from the error message displayed (or of course if it makes no difference) if you could let me know the actual page URL (I'll remove the link before publishing your reply) I'll take a look and check it out further for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by rolli1 on Fri, 2015-10-30 08:39

Hi David,
I enabled display error but nothing happened.
The actual page is
{link saved}

featured products work, but not the search.

Thanks and best regards

Roland

Submitted by rolli1 on Fri, 2015-10-30 09:09

Hi David,
now I am getting error Messages.
When I click on search I get the following message:

Warning: require(html/searchfilters.php): failed to open stream: No such file or directory in {code saved} on line 432

Fatal error: require(): Failed opening required 'html/searchfilters.php' (include_path='/usr/local/php55/lib/php:.') in {code saved} on line 432

I deleted that item searchfilter.php and now search works. But I get another error when I click on a featured product:

Notice: Undefined index: name in html/product.php on line 16

I enclose the first line of html/product.php

{code saved}

Submitted by support on Fri, 2015-10-30 10:58

Hi Roland,

At line 16, where you have:

$product["name"]

...REPLACE that with:

$mainProduct["name"]

That should be all it is...

Cheers,
David.
--
PriceTapestry.com

Submitted by rolli1 on Sat, 2015-10-31 09:58

Thanks a lot.

Roland