peekaboo Posted December 20, 2004 Share Posted December 20, 2004 Hello, I just re-loaded an entire site, including the database. I have access to the admin panel and that all appears to work but the first page of the site doesn't show up. If I view source of the blank page, the only text is <!-- header //-->. Could you please tell me what might be the problem, and how to go about fixing it. Thanks! Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 Hello, I just re-loaded an entire site, including the database. I have access to the admin panel and that all appears to work but the first page of the site doesn't show up. If I view source of the blank page, the only text is <!-- header //-->. Could you please tell me what might be the problem, and how to go about fixing it. Thanks! <{POST_SNAPBACK}> check in index.php <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> Treasurer MFC Link to comment Share on other sites More sharing options...
peekaboo Posted December 20, 2004 Author Share Posted December 20, 2004 Hi, I have no code like that in either the index.php that's on the server root (public_html) or in the administration directory. Should I be looking elsewhere or am I missing code for some odd reason (it was an identical back up copy..) Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 Hi, I have no code like that in either the index.php that's on the server root (public_html) or in the administration directory. Should I be looking elsewhere or am I missing code for some odd reason (it was an identical back up copy..) <{POST_SNAPBACK}> this should definitely be in your catalog/index.php file. <?php require(DIR_WS_INCLUDES . 'header.php'); ?> and this is somewhere otherwise it would not be in your output. <!-- header //--> Treasurer MFC Link to comment Share on other sites More sharing options...
peekaboo Posted December 20, 2004 Author Share Posted December 20, 2004 Hi, I tried adding the code you suggested but it made no difference. I'm not sure if I put it in the right location though. (thanks for replying so quickly btw) This is the index.php which resides at the document root: <? global $page_name, $store_name, $insert_java; <!-- header //--> require('includes/application_top.php'); if (isset( $HTTP_GET_VARS['pageID'])){ $page_file = $HTTP_GET_VARS['pageID']; //get the php file name with .php extention define('PAGE_NAME' , $page_file); //set it up as a constant //echo "yes"; }else{ define ('PAGE_NAME' , FILENAME_DEFAULT); //set up default file name for use, if something goes wrong... //echo "no"; } //----------special exceptions if (PAGE_NAME == FILENAME_CHECKOUT_PROCESS){ include(FILENAME_CHECKOUT_PROCESS); exit; } if (PAGE_NAME == FILENAME_DOWNLOAD){ include(FILENAME_DOWNLOAD); exit; } if (PAGE_NAME == FILENAME_INFO_SHOPPING_CART){ include(FILENAME_INFO_SHOPPING_CART); exit; } if (PAGE_NAME == FILENAME_LOGOFF){ include(FILENAME_LOGOFF); exit; } if (PAGE_NAME == FILENAME_POPUP_IMAGE){ include(FILENAME_POPUP_IMAGE); exit; } if (PAGE_NAME == FILENAME_POPUP_SEARCH_HELP){ include(FILENAME_POPUP_SEARCH_HELP); exit; } if (PAGE_NAME == FILENAME_REDIRECT){ include(FILENAME_REDIRECT); exit; } //----------end special exceptions require(DIR_WS_LANGUAGES . $language . '/' . PAGE_NAME); if (PAGE_NAME == FILENAME_PASSWORD_FORGOTTEN){ if ($HTTP_GET_VARS['action'] == 'process') { include(DIR_WS_TOP . PAGE_NAME); } else { require(DIR_WS_INCLUDES . 'layout.php'); } }else{ if (file_exists(DIR_WS_TOP . PAGE_NAME)) include(DIR_WS_TOP . PAGE_NAME); // OSC_TOP_CODE_HERE if ((PAGE_NAME == FILENAME_CREATE_ACCOUNT_PROCESS) || (PAGE_NAME == FILENAME_ACCOUNT_EDIT_PROCESS)){ if ($error == true) { $processed = true; require(DIR_WS_INCLUDES . 'layout.php'); }else{ include(DIR_WS_BOTTOM . PAGE_NAME); // OSC_BOTTOM_CODE_HERE } }else{ require(DIR_WS_INCLUDES . 'layout.php'); } } require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 Hi, I tried adding the code you suggested but it made no difference. I'm not sure if I put it in the right location though. (thanks for replying so quickly btw) This is the index.php which resides at the document root: <? global $page_name, $store_name, $insert_java; <!-- header //--> require('includes/application_top.php'); if (isset( $HTTP_GET_VARS['pageID'])){ $page_file = $HTTP_GET_VARS['pageID']; //get the php file name with .php extention define('PAGE_NAME' , $page_file); //set it up as a constant //echo "yes"; }else{ define ('PAGE_NAME' , FILENAME_DEFAULT); //set up default file name for use, if something goes wrong... //echo "no"; } //----------special exceptions if (PAGE_NAME == FILENAME_CHECKOUT_PROCESS){ include(FILENAME_CHECKOUT_PROCESS); exit; } if (PAGE_NAME == FILENAME_DOWNLOAD){ include(FILENAME_DOWNLOAD); exit; } if (PAGE_NAME == FILENAME_INFO_SHOPPING_CART){ include(FILENAME_INFO_SHOPPING_CART); exit; } if (PAGE_NAME == FILENAME_LOGOFF){ include(FILENAME_LOGOFF); exit; } if (PAGE_NAME == FILENAME_POPUP_IMAGE){ include(FILENAME_POPUP_IMAGE); exit; } if (PAGE_NAME == FILENAME_POPUP_SEARCH_HELP){ include(FILENAME_POPUP_SEARCH_HELP); exit; } if (PAGE_NAME == FILENAME_REDIRECT){ include(FILENAME_REDIRECT); exit; } //----------end special exceptions require(DIR_WS_LANGUAGES . $language . '/' . PAGE_NAME); if (PAGE_NAME == FILENAME_PASSWORD_FORGOTTEN){ if ($HTTP_GET_VARS['action'] == 'process') { include(DIR_WS_TOP . PAGE_NAME); } else { require(DIR_WS_INCLUDES . 'layout.php'); } }else{ if (file_exists(DIR_WS_TOP . PAGE_NAME)) include(DIR_WS_TOP . PAGE_NAME); // OSC_TOP_CODE_HERE if ((PAGE_NAME == FILENAME_CREATE_ACCOUNT_PROCESS) || (PAGE_NAME == FILENAME_ACCOUNT_EDIT_PROCESS)){ if ($error == true) { $processed = true; require(DIR_WS_INCLUDES . 'layout.php'); }else{ include(DIR_WS_BOTTOM . PAGE_NAME); // OSC_BOTTOM_CODE_HERE } }else{ require(DIR_WS_INCLUDES . 'layout.php'); } } require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> <{POST_SNAPBACK}> are you using some kind of template contribution ? Treasurer MFC Link to comment Share on other sites More sharing options...
peekaboo Posted December 20, 2004 Author Share Posted December 20, 2004 I'm not sure if it's from a template file. I've inherited this site. Link to comment Share on other sites More sharing options...
boxtel Posted December 20, 2004 Share Posted December 20, 2004 I'm not sure if it's from a template file. I've inherited this site. <{POST_SNAPBACK}> well, this is sure not your standard index.php. Suggest you have a little talk with the guys who gave you this. Treasurer MFC Link to comment Share on other sites More sharing options...
peekaboo Posted December 20, 2004 Author Share Posted December 20, 2004 Unfortunately, they are unavailable. I have to fix it somehow. Link to comment Share on other sites More sharing options...
peekaboo Posted December 20, 2004 Author Share Posted December 20, 2004 I've noticed that the file layout.php in the includes folder is read but the information stops there. I've posted that file below in the hopes that someone can figure out why the page doesn't show. (I altered the "<!-- header //--> " part to just to test if there was a difference in the page source when I ask for the site in my browser, which there was). It appears that the header.php file in the layout directory and the header.php file aren't included. Ideas? <!-- header //--> <? require(DIR_WS_INCLUDES.'layout/header.php'); ?> <? require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table width="775" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><img src="<?=DIR_WS_IMAGES_COMMON?>spacer.gif" width="4" height="4" border="0"></td> </tr> <!-- fetch submenu ---> <?php include (DIR_WS_INCLUDES.'layout/submenu.php'); ?> <tr> <td> <!-- left_navigation //--> <? // require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> <!-- body_text //--> <? if (file_exists(DIR_WS_BODY . PAGE_NAME)){ include(DIR_WS_BODY . PAGE_NAME); } ?> <!-- body_text_eof //--> <!-- right_navigation //--> <? //require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <? require(DIR_WS_INCLUDES.'layout/footer.php'); ?> <!-- footer_eof //--> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.