Zen Follower
- Join Date:
- Jan 2007
- Posts:
- 166
- Plugin Contributions:
- 0
Error when category has only one product
Whenever I browse to ...
index.php?main_page=index&cPath=6
```I get a blank page if that category has one and only one product. If I have no products, it is fine. When I have 2 or more products, no problem. The one product case is special because it take user directly to that one product. Where is that piece of code?
I did the debug for "blank page" as suggested and got ...
[B]Warning[/B]: Cannot modify header information - headers already sent by (output started at /home/content/b/a/g/bagsrhere/html/includes/languages/english/theme105/email_extras.php:105) in [B]/home/content/b/a/g/bagsrhere/html/includes/functions/functions_general.php[/B] on line [B]44[/B]
[B]Notice[/B]: Object of class queryFactoryResult could not be converted to int in [B]/home/content/b/a/g/bagsrhere/html/includes/functions/functions_general.php[/B] on line [B]19[/B]
Line 44 of functions_general.php shows ...
[B] header('Location: ' . $url);
\[/B]This is same as the unaltered zencart 1.3.8 codebase. And it doesn't look like the "one-product" code that I am looking for.