Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site Doesn't Show


peekaboo

Recommended Posts

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

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!

 

 

check in index.php

 

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

Treasurer MFC

Link to comment
Share on other sites

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

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..)

 

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

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

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');

?>

 

 

 

are you using some kind of template contribution ?

Treasurer MFC

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...