New Zenner
- Join Date:
- Oct 2006
- Location:
- Hanover, PA
- Posts:
- 71
- Plugin Contributions:
- 0
Add Product, Page Disappears
What bug (or what could be commented out) would cause the category listing page to disappear when a product is added to the section?
Views: 5,152
New Zenner
What bug (or what could be commented out) would cause the category listing page to disappear when a product is added to the section?
Zen Follower
If you view the source for that link there is a <!-- around line 8.
I do not see where this ends.
That <!-- is the starting tag of an HTML comment. Is that interferring with the display of the page?
Did you try to turn on the Classic Template to see if this is template releated?
Totally Zenned
UH OH! Nothing on your site now except background colors!
If you have WinMerge (get it it you don't - it's FREE!), compare your stylesheet to a fresh install stylesheet to see what's amiss!
Tina
New Zenner
That is weird...I didn't change anything since before I made this post?
Is WinMerge Mac compatible? I looked it up and didn't see anything about what OS it supports.
Totally Zenned
I looked into WinMerge and it appears that maybe it is not Mac friendly.
Try Ultra Compare
http://www.ultraedit.com/
Hope this works for you!
Tina
New Zenner
I just looked at the web site (FireFox) and everything is viewable. If you're viewing in IE6 (I checked at work), it will not work, neither in IE7. I have not bothered to make it IE7 compatible yet (it will NOT be IE6 compatible at all) because I am not done working on the standards compliant coding.
So anyway, back to the original question...Why, when you click on "Air Pumps" for example, why does the content disappear?
Totally Zenned
TripleMoons:
So anyway, back to the original question...Why, when you click on "Air Pumps" for example, why does the content disappear?
Run the Debug Utililty to find the problem files. Available in the downloads section
I know you know - nothing shows in IE7 except the background and a bar.
Tina
New Zenner
charmedbytina2:
I know you know - nothing shows in IE7 except the background and a bar.
To view the web site in it's current state, use FireFox.
The web site is not IE compatible yet.
charmedbytina2:
Run the Debug Utililty to find the problem files. Available in the downloads section
Very cool, I did not know this existed.
I got four DEBUG files:
[27-Jun-2008 20:39:14] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/sessions.php on line 108
[27-Jun-2008 20:39:14] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/init_includes/init_templates.php on line 78
[27-Jun-2008 20:39:20] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/sessions.php on line 108
[27-Jun-2008 20:39:20] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/init_includes/init_templates.php on line 78
[27-Jun-2008 20:39:25] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/sessions.php on line 108
[27-Jun-2008 20:39:25] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/init_includes/init_templates.php on line 78
[27-Jun-2008 20:39:25] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/functions_general.php on line 44
[27-Jun-2008 20:39:23] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/sessions.php on line 108
[27-Jun-2008 20:39:23] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/init_includes/init_templates.php on line 78
===== Friday, June 27, 2008 1:44:43 PM America/New_York =====
<div class="row1right"> 522-526 Amsterdam Avenue<br />
```
I'm not exactly sure what's wrong with this line that could possibly be causing a problem with the listing? I commented out the entire DIV and it didn't fix the problem.
New Zenner
Also just figured out when you click "Add To Cart" I get the same blank screen.
Totally Zenned
TripleMoons:
Also just figured out when you click "Add To Cart" I get the same blank screen.
New error message for this?
Usually the first file listed is the problem - check it for blanks at the end of the coding.
Tina
New Zenner
charmedbytina2:
New error message for this?
Usually the first file listed is the problem - check it for blanks at the end of the coding.
No, I think it appears to be the same error:
[27-Jun-2008 20:39:58] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/sessions.php on line 108
[27-Jun-2008 20:39:58] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/functions/sessions.php on line 108
[27-Jun-2008 20:39:58] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/www/uptownbirds.com/shoponline/index.php:67) in /home/www/uptownbirds.com/shoponline/includes/init_includes/init_templates.php on line 78
What do you mean blanks? Spaces?
I don't see anything:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Uptown Birds, LLC ~ Hand-Fed Birds, Reptiles, Fresh Water & Marine Fish, Small Animals & Supplies | Available</title>
<link href="../sp-stylecart.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_0224122050_0) return;
window.mm_menu_0224122050_0 = new Menu("root",111,22,"Century Gothic, Arial, Verdana",16,"#723716","#723716","#FFFFD6","#99B27F","left","middle",5,0,1000,-5,7,true,false,true,0,false,true);
mm_menu_0224122050_0.addMenuItem("Avian","location='../species-avian.html'");
mm_menu_0224122050_0.addMenuItem("Reptile","location='../species-reptile.html'");
mm_menu_0224122050_0.hideOnMouseOut=true;
mm_menu_0224122050_0.bgColor='#FFFFD6';
mm_menu_0224122050_0.menuBorder=3;
mm_menu_0224122050_0.menuLiteBgColor='#FFFFD6';
mm_menu_0224122050_0.menuBorderBgColor='#FFFFD6';
window.mm_menu_0224122413_0 = new Menu("root",141,22,"Century Gothic, Arial, Verdana",16,"#723716","#723716","#FFFFD6","#99B27F","left","middle",5,0,1000,-5,7,true,false,true,0,false,true);
mm_menu_0224122413_0.addMenuItem("Avian","location='../available-avian.html'");
mm_menu_0224122413_0.addMenuItem("Reptile","location='../available-reptile.html'");
mm_menu_0224122413_0.hideOnMouseOut=true;
mm_menu_0224122413_0.bgColor='#FFFFD6';
mm_menu_0224122413_0.menuBorder=3;
mm_menu_0224122413_0.menuLiteBgColor='#FFFFD6';
mm_menu_0224122413_0.menuBorderBgColor='#FFFFD6';
mm_menu_0224122413_0.writeMenus();
} // mmLoadMenus()
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//
</script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2272101-10";
urchinTracker();
</script>
<script language="JavaScript" src="mm_menu.js"></script>
</head>
<body onLoad="MM_preloadImages('images/hp/nav/down_01.png','images/hp/nav/down_02.png','images/hp/nav/down_03.png','images/hp/nav/down_04.png','images/hp/nav/down_05.png','images/hp/nav/down_06.png','../images/sp/nav/down_01.png','../images/sp/nav/down_02.png','../images/sp/nav/down_03.png','../images/sp/nav/down_04.png','../images/sp/nav/down_05.png','../images/sp/nav/down_06.png')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<div class="row1">
<div class="row1right"> 522-526 Amsterdam Avenue<br />
New York, NY 10024<br />
212-877-BIRD (2473) </div>
</div>
<div class="row2">
<div align="center"> <a href="../gallery.html"><img src="../images/sp/nav/up_01.png" alt="gallery" width="120" height="64" border="0" id="Image1" onMouseOver="MM_swapImage('Image1','','../images/sp/nav/down_01.png',1)" onMouseOut="MM_swapImgRestore()" /></a> <a href="../services.html"><img src="../images/sp/nav/up_02.png" alt="services" width="124" height="63" border="0" id="Image2" onMouseOver="MM_swapImage('Image2','','../images/sp/nav/down_02.png',1)" onMouseOut="MM_swapImgRestore()" /></a> <a href="../available.html"><img src="../images/sp/nav/up_03.png" alt="available" name="image2" width="141" height="63" border="0" id="Image3" onMouseOver="MM_swapImage('Image3','','../images/sp/nav/down_03.png',1);MM_showMenu(window.mm_menu_0224122413_0,0,63,null,'image2')" onMouseOut="MM_swapImgRestore();MM_startTimeout();" /></a> <a href="../species.html"><img src="../images/sp/nav/up_04.png" alt="species" name="image1" width="111" height="63" border="0" id="Image4" onMouseOver="MM_swapImage('Image4','','../images/sp/nav/down_04.png',1);MM_showMenu(window.mm_menu_0224122050_0,0,63,null,'image1')" onMouseOut="MM_swapImgRestore();MM_startTimeout();" /></a> <a href="http://www.uptownbirds.com/shoponline/"><img src="../images/sp/nav/up_05.png" alt="shop online" width="183" height="63" border="0" id="Image5" onMouseOver="MM_swapImage('Image5','','../images/sp/nav/down_05.png',1)" onMouseOut="MM_swapImgRestore()" /></a> <a href="http://uptownbirds.com/shoponline/index.php?main_page=contact_us&zenid=a491683e134a92bd37f7245deb87ab8b"><img src="../images/sp/nav/up_06.png" alt="contact" width="121" height="63" border="0" id="Image6" onMouseOver="MM_swapImage('Image6','','../images/sp/nav/down_06.png',1)" onMouseOut="MM_swapImgRestore()" /></a> </div>
</div>
<div class="row3"> </div>
<div class="row4">
<h10>Shop Online</h10>
<?php
/**
* index.php represents the hub of the Zen Cart MVC system
*
* Overview of flow
* <ul>
* <li>Load application_top.php - see {@tutorial initsystem}</li>
* <li>Set main language directory based on $_SESSION['language']</li>
* <li>Load all *header_php.php files from includes/modules/pages/PAGE_NAME/</li>
* <li>Load html_header.php (this is a common template file)</li>
* <li>Load main_template_vars.php (this is a common template file)</li>
* <li>Load on_load scripts (page based and site wide)</li>
* <li>Load tpl_main_page.php (this is a common template file)</li>
* <li>Load application_bottom.php</li>
* </ul>
*
* @package general
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: index.php 2942 2006-02-02 04:41:23Z drbyte $
*/
/**
* Load common library stuff
*/
require('includes/application_top.php');
$language_page_directory = DIR_WS_LANGUAGES . $_SESSION['language'] . '/';
$directory_array = $template->get_template_part($code_page_directory, '/^header_php/');
foreach ($directory_array as $value) {
/**
* We now load header code for a given page.
* Page code is stored in includes/modules/pages/PAGE_NAME/directory
* 'header_php.php' files in that directory are loaded now.
*/
require($code_page_directory . '/' . $value);
}
/**
* We now load the html_header.php file. This file contains code that would appear within the HTML <head></head> code
* it is overridable on a template and page basis.
* In that a custom template can define its own common/html_header.php file
*/
require($template->get_template_dir('html_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/html_header.php');
/**
* Define Template Variables picked up from includes/main_template_vars.php unless a file exists in the
* includes/pages/{page_name}/directory to overide. Allowing different pages to have different overall
* templates.
*/
require($template->get_template_dir('main_template_vars.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/main_template_vars.php');
/**
* Read the "on_load" scripts for the individual page, and from the site-wide template settings
* NOTE: on_load_*.js files must contain just the raw code to be inserted in the <body> tag in the on_load="" parameter.
* Looking in "/includes/modules/pages" for files named "on_load_*.js"
*/
$directory_array = $template->get_template_part(DIR_WS_MODULES . 'pages/' . $current_page_base, '/^on_load_/', '.js');
foreach ($directory_array as $value) {
$onload_file = DIR_WS_MODULES . 'pages/' . $current_page_base . '/' . $value;
$read_contents='';
$lines = @file($onload_file);
foreach($lines as $line) {
$read_contents .= $line;
}
$za_onload_array[] = $read_contents;
}
/**
* now read "includes/templates/TEMPLATE/jscript/on_load/on_load_*.js", which would be site-wide settings
*/
$directory_array=array();
$tpl_dir=$template->get_template_dir('.js', DIR_WS_TEMPLATE, 'jscript/on_load', 'jscript/on_load_');
$directory_array = $template->get_template_part($tpl_dir ,'/^on_load_/', '.js');
foreach ($directory_array as $value) {
$onload_file = $tpl_dir . '/' . $value;
$read_contents='';
$lines = @file($onload_file);
foreach($lines as $line) {
$read_contents .= $line;
}
$za_onload_array[] = $read_contents;
}
// set $zc_first_field for backwards compatibility with previous version usage of this var
if (isset($zc_first_field) && $zc_first_field !='') $za_onload_array[] = $zc_first_field;
$zv_onload = "";
if (isset($za_onload_array) && count($za_onload_array)>0) $zv_onload=implode(';',$za_onload_array);
//ensure we have just one ';' between each, and at the end
$zv_onload = str_replace(';;',';',$zv_onload.';');
// ensure that a blank list is truly blank and thus ignored.
if (trim($zv_onload) == ';') $zv_onload='';
/**
* Define the template that will govern the overall page layout, can be done on a page by page basis
* or using a default template. The default template installed will be a standard 3 column layout. This
* template also loads the page body code based on the variable $body_code.
*/
require($template->get_template_dir('tpl_main_page.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_main_page.php');
?>
</html>
<?php
/**
* Load general code run before page closes
*/
?>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
</div></div>
<div class="footerweb">
<div id="footercontent"> <a href="gallery.html">Gallery</a> | <a href="services.html">Services</a> | <a href="available.html">Available</a> | <a href="species.html">Species</a> | <a href="http://www.uptownbirds.com/shoponline/">Shop Online</a> | <a href="#">Contact</a> | <a href="http://www.uptownbirds.com/blog/">Blog</a> | <a href="index.html">Home</a><br />
Copyright 2008 Uptown Birds, LLC | Designed & Developed by <a href="http://www.triplemoonsdesign.com" target="_blank">Triple Moons Design</a> | Cart Powered by <a href="http://zen-cart.com">Zen Cart</a></div>
</div>
</body>
</html>
New Zenner
I switched to the classic template and the problem still exists, so it has nothing to do with my template.
Does anyone know what this problem is?
New Zenner
Exactly the same thing is happening to me. There is 1 product on the site and the LHS menu links bring up a blank page, though you can navigate to the product in via the new product listing on the home page. When the shop is off for maintenance I get a blank screen too and I don't think this is normal.
My debug error says:
[07-Jul-2008 08:19:40] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lbdy105a/public_html/includes/languages/english.php:1401) in /home/lbdy105a/public_html/includes/init_includes/init_templates.php on line 78
[07-Jul-2008 08:19:40] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/lbdy105a/public_html/includes/languages/english.php:1401) in /home/lbdy105a/public_html/includes/functions/functions_general.php on line 44
These have not been altered by me and lines 78 and 44 are empty!
The site is http://arbgames.com.au
Charlie
New Zenner
Hi Stef
I just solved the identical problem! Wizzo!!
It must have been an error in modifying includes/languages/english.php as a fresh upload of the file solved the issue completely.
Charlie
:smartalec:
New Zenner
No, that wasn't my problem. I actually have no idea what the problem was, but I recreated my index.php file (the one I was getting those errors from) and everything worked after that. So when I was editing the other one I may have boo-booed and put something in that wasn't supposed to be there.
New Zenner
MAKE SURE YOUR IMAGE IS RGB!!
If it is CMYK it will stop most of the entire page loading
New Zenner
Huh? No one mentioned anything about it being an image problem (and in fact it isn't). Regardless, the problem is solved and it was far from an image issue.
New Zenner
Perhaps you caould share your soluition then.
New Zenner
I did.
Read post #15.
I took an original index.php file and recreated what I wanted and it worked fine.
Fields marked required must be completed.
Tell staff why this post should be reviewed.