Guest Posted November 17, 2006 Posted November 17, 2006 This site has been online for several months and has been working just fine. The only thing that has recently changed are the intro pictures on the first page and the header image to show Christmas stuff. ONLY THE IMAGES WERE CHANGED... their names were not changed. No changes were made to any of the rest of the pages..none none none The new header picture was showing when first uploaded two days ago and the site had no issues. Now, all of a sudden the header is missing!!!! Nothing there. I have looked at the index.php and it shows everything that should be there. I looked at header.php in includes and things are where they should be...BUT WHY IS IT NOT WORKING????? This is a busy site and it has GOT TO BE FIXED... please tell me where to start!!!! The address is www.tinasonthestrand.com
Guest Posted November 17, 2006 Posted November 17, 2006 Looks like header.php is an empty file apart from a table tag: <!-- header //--> </table><!-- header_eof //--> (from your page source) DOWNLOAD the file and let us see :) Sonia
Guest Posted November 17, 2006 Posted November 17, 2006 Looks like header.php is an empty file apart from a table tag: <!-- header //--> </table><!-- header_eof //--> (from your page source) DOWNLOAD the file and let us see :) Sonia
Guest Posted November 17, 2006 Posted November 17, 2006 Looks like header.php is an empty file apart from a table tag: <!-- header //--> </table><!-- header_eof //--> (from your page source) DOWNLOAD the file and let us see :) Sonia Not sure what you want to see...I am so tired from looking for the problem but here is the ../includes/header.php contents <?php /* $Id: header.php,v 1.36 2002/08/15 17:29:47 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2001 osCommerce Released under the GNU General Public License // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { tep_output_warning(WARNING_INSTALL_DIRECTORY_EXISTS); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { tep_output_warning(WARNING_CONFIG_FILE_WRITEABLE); } } */ // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { tep_output_warning(WARNING_SESSION_DIRECTORY_NON_EXISTENT); } elseif (!is_writeable(tep_session_save_path())) { tep_output_warning(WARNING_SESSION_DIRECTORY_NOT_WRITEABLE); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { tep_output_warning(WARNING_SESSION_AUTO_START); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { tep_output_warning(WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT); } } ?> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0> <!--DWLayoutTable--> <TR> <TD height="111" COLSPAN=3 valign="top"><table width="94%" border="1" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <TD height="111" valign="top" bordercolor="#FFCCCC" bgcolor="#8C6300"> <img src="../images/header/masthead.jpg" width="1004" height="160"></TD> </tr> </table></TD> </TR> <TR> <TD width="483" height="28"> <IMG SRC="../images/header/header_06.gif" WIDTH=483 HEIGHT=28 ALT=""></TD> <TD width="490" valign="top"><table width="88%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <TD width="43" height="28" valign="top"> <a href="index.php"><IMG SRC="../images/header/header_07.gif" ALT="" WIDTH=51 HEIGHT=28 border="0"></a></TD> <TD width="84" valign="top"> <a href="products_new.php"><IMG SRC="../images/header/header_08.gif" ALT="" WIDTH=84 HEIGHT=28 border="0"></a></TD> <TD width="73" valign="top"> <a href="account.php"><IMG SRC="../images/header/header_09.gif" ALT="" WIDTH=73 HEIGHT=28 border="0"></a></TD> <TD width="55" valign="top"> <a href="advanced_search.php"><IMG SRC="../images/header/header_10.gif" ALT="" WIDTH=55 HEIGHT=28 border="0"></a></TD> <TD width="80" valign="top"> <a href="shopping_cart.php"><IMG SRC="../images/header/header_11.gif" ALT="" WIDTH=80 HEIGHT=28 border="0"></a></TD> <TD width="73" valign="top"> <a href="conditions.php"><IMG SRC="../images/header/header_12.gif" ALT="" WIDTH=73 HEIGHT=28 border="0"></a></TD> <TD width="74" valign="top"> <a href="mailto:[email protected]"><IMG SRC="../images/header/header_13.gif" ALT="" WIDTH=74 HEIGHT=28 border="0"></a></TD> </tr> </table></TD> <TD width="34"> <IMG SRC="../images/header/header_14.gif" WIDTH=34 HEIGHT=28 ALT=""></TD> </TR> </TABLE> <?php } ?> <?php if ($HTTP_GET_VARS['error_message'] != '') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo urldecode($HTTP_GET_VARS['error_message']); ?></td> </tr> </table> <?php } if ($HTTP_GET_VARS['info_message'] != '') { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo $HTTP_GET_VARS['info_message']; ?></td> </tr> <?php } ?> </table>
Guest Posted November 17, 2006 Posted November 17, 2006 Here is the part in the index.php file that has the header info...and it shows something there that for some reason is not showing up in the online page source code? <body background="images/monkeypuzzle-1074706181.jpg" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" align="center"> <tr> I'm so confused!! :(
Guest Posted November 17, 2006 Posted November 17, 2006 Your main header content is within this conditional statement: if ($banner = tep_banner_exists('dynamic', '468x50')) { This means that if you dont have a 468x50 banner enabled in admin, it wont show anything within that condition. I can see the errant table tag at the end of your file - it should be within the following conditional: if ($HTTP_GET_VARS['info_message'] != '') { You can remove the banner conditional (PLUS its closing tag!) Sonia
Guest Posted November 17, 2006 Posted November 17, 2006 Your main header content is within this conditional statement: if ($banner = tep_banner_exists('dynamic', '468x50')) { This means that if you dont have a 468x50 banner enabled in admin, it wont show anything within that condition. I can see the errant table tag at the end of your file - it should be within the following conditional: if ($HTTP_GET_VARS['info_message'] != '') { You can remove the banner conditional (PLUS its closing tag!) Sonia
Guest Posted November 17, 2006 Posted November 17, 2006 ????? Which do I delete... EXACTLY... I see both of these tags...
Guest Posted November 17, 2006 Posted November 17, 2006 ????? Which do I delete... EXACTLY... I see both of these tags... if ($banner = tep_banner_exists('dynamic', '468x50')) { dont forget its closing tag } or you will get a parse error Sonia
Guest Posted November 17, 2006 Posted November 17, 2006 OMG... I'm just remembering... It might be there WAS a banner in the banner manager and I deleted it because it said Os Commerce something or other. I didn't think I was using it. Could that have been it that was allowing the header to show up? Was that the 'banner'? GRRRR... If it was, how do I get it back in there. Nope, that can't be... I want the header...it shows in the index.php that I had pasted above. *sigh* anyone have an aspirin?
Guest Posted November 17, 2006 Posted November 17, 2006 YIPPEEE SKIPPEEEEE.... *doing happy dance*... IT WORKED... THANK YOU THANK YOU THANK YOU.... *spitting out aspirin* Now tell me why this might have happened? please?
Guest Posted November 17, 2006 Posted November 17, 2006 Yes, that is the reason. It is a simple thing to remove the code, however you could create a new banner just using pixel_trans.gif (a 1 pixel transparent image you will find in your images diretory). Be sure to put the banner in or define the banner group as 468x50 Sonia
Guest Posted November 17, 2006 Posted November 17, 2006 Yes, that is the reason. It is a simple thing to remove the code, however you could create a new banner just using pixel_trans.gif (a 1 pixel transparent image you will find in your images diretory). Be sure to put the banner in or define the banner group as 468x50 Sonia I think I'll leave it like it is...it's working.. :) I'll just remember NOT to do the banner thing in the next store I set up next week. This is my third os commerce site and I learn something new everytime. Thank you again.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.