Forums / Setting Up Categories, Products, Attributes / Help Clicking on category gives me blank page

Help Clicking on category gives me blank page

Views: 1,251

Results 1 to 14 of 14
13 May 2015, 9:42 PM
#1
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Help Clicking on category gives me blank page

I have a clean install. I add categories and then add product. When I click on category name, it goes to a blank page.
If you go to "New" product or any other way, it works. Just not when using category. What's wrong?
Here's website. Scuse the mess as I just started working on it and still have lots to do

http://www.giorgioglassdesigns.com

13 May 2015, 10:00 PM
#2
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

Found this in logs but I have no idea what it means

[13-May-2015 19:12:45 GMT] PHP Warning: Cannot modify header information - headers already sent by (output started at /webroot/g/i/giorg002/giorgioglassdesigns.com/www/includes/languages/english/header.php:3) in /webroot/g/i/giorg002/giorgioglassdesigns.com/www/includes/init_includes/init_templates.php on line 78

14 May 2015, 3:02 AM
#3
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

Well I have read, read, and read and I think I'm going to scrap it and go check out another opencart software. I followed all advice here and it still gives me a blank screen if I change that sentence. Have no idea why~
Wish more people were active to help but I need a site and have no idea what to do. If it doesn't work, I may be back.

14 May 2015, 3:03 AM
#4
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

This is what is coming up now

[14-May-2015 02:53:24 GMT] PHP Warning: Cannot modify header information - headers already sent by (output started at /webroot/g/i/giorg002/giorgioglassdesigns.com/www/includes/languages/english/index.php:3) in /webroot/g/i/giorg002/giorgioglassdesigns.com/www/includes/functions/functions_general.php on line 46

14 May 2015, 12:47 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help Clicking on category gives me blank page

Could you post the first 10 lines of the file:
/includes/languages/english/index.php

from the file?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2015, 6:09 PM
#6
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

Ajeh:

Could you post the first 10 lines of the file:
/includes/languages/english/index.php

from the file?

On my way out so copied and pasted it all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<?php /**

 * @package languageDefines

 * @copyright Copyright 2003-2006 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license [URL]http://www.zen-cart.com/license/2_0.txt[/URL] GNU Public License V2.0

 * @version $Id: index.php 19537 2011-09-20 17:14:44Z drbyte $

 */



define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');



// Showcase vs Store

if (STORE_STATUS == '0') {

  define('TEXT_GREETING_GUEST', '');

} else {

  define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');

}



define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');



define('TEXT_INFORMATION', 'Define your main Index page copy here.');



//moved to english

//define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');



//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');



if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {

  // This section deals with product-listing page contents

  define('HEADING_TITLE', 'Available Products');

  define('TABLE_HEADING_IMAGE', 'Product Image');

  define('TABLE_HEADING_MODEL', 'Model');

  define('TABLE_HEADING_PRODUCTS', 'Product Name');

  define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

  define('TABLE_HEADING_QUANTITY', 'Quantity');

  define('TABLE_HEADING_PRICE', 'Price');

  define('TABLE_HEADING_WEIGHT', 'Weight');

  define('TABLE_HEADING_BUY_NOW', 'Buy Now');

  define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

  define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

  define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

  define('TEXT_SHOW', 'Filter Results by:');

  define('TEXT_BUY', 'Buy 1 \'');

  define('TEXT_NOW', '\' now');

  define('TEXT_ALL_CATEGORIES', 'All Categories');

  define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

  // This section deals with the "home" page at the top level with no options/products selected

  /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/

  define('HEADING_TITLE', '');

} elseif ($category_depth == 'nested') {

  // This section deals with displaying a subcategory

  /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/

  define('HEADING_TITLE', ''); 

}

?>
</head><body>
<br>

<br>

</body></html>
14 May 2015, 6:22 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help Clicking on category gives me blank page

In your code you have:

[B]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
[/B]<?php 
/**

 * @package languageDefines

remove the lines at the top of that file they do not belong there ...

And at the bottom of the file:

[B]?>[/B][B]
</head><body>
<br>

<br>

</body></html>[/B]

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2015, 6:33 PM
#8
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

And that's all that's wrong with it? That's what was in the package and works fine until I change a sentence...but will give it a try :-) Thank you!

14 May 2015, 6:36 PM
#9
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

It's in all my files. Every page. Could it be added by the program I am using? I am using Kompozer to open and edit. Any other program to make changes without it adding that to it? I can't get rid of it.

14 May 2015, 6:42 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help Clicking on category gives me blank page

Let's review ...

You have files on your computer that you upload to the server with your FTP program ...

When you edit those files in you text editor this is what you want to check to see what it contains ...

What do you use to edit your php files? Kompozer? I am not familiar with that ... is it adding that code to the files?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2015, 6:53 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help Clicking on category gives me blank page

You might peek at these links for better text editors for php files:
http://www.zen-cart.com/wiki/index.php/Useful_Tools
https://www.zen-cart.com/content.php?179-useful-tools-for-working-with-zen-cart

as it sounds like your editor is treating your files as HTML vs php files ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 May 2015, 9:12 PM
#12
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

Ajeh:

Let's review ...

You have files on your computer that you upload to the server with your FTP program ...

When you edit those files in you text editor this is what you want to check to see what it contains ...

What do you use to edit your php files? Kompozer? I am not familiar with that ... is it adding that code to the files?

Yes, that's what it looks like it's doing. I can open it from the server with no problem. Once I download it and open it in that program, it automatically adds the heading and body tags to it.

14 May 2015, 9:14 PM
#13
reenie avatar

reenie

New Zenner

Join Date:
Apr 2009
Location:
California
Posts:
51
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

Also,
This isn't the first website built and I have used the that program before with no issues. Could there be something else wrong?

14 May 2015, 9:41 PM
#14
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Help Clicking on category gives me blank page

No, your opening it in a html editor when you need to be opening it in a code editor, two different things. Also the code you posted was double spaced, transfer file as binary not ascii. When the file gets double spaced like that it adds a blank line to the end of the file past the closing php tag which will get you the classic "Headers already sent" error.

Get notepad++ for code editing, its free

additionally (Kompozer - Latest stable version: 0.7.10 (2007-08-30)) Probably not the best tool to be building websites with anymore.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!