Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin works - Site doesn't


peekaboo

Recommended Posts

Posted

I have reinstalled an old site. I was able to upload the database and install all the files which allows me access to the admin section, which seems to work. However, the site itself doesn't come up in a browser. It site appears to be modified or perhaps an older version.

 

I could really use some help from someone handy in php.

 

I could offer a few bucks to get me on my way.

 

The url is nunavikcreations.com

Posted

I think you need a bit more detail in your post,

 

did you upload just the admin files or the whole lot?

have you modified any of the files? if not you could do a fresh install and then import your database to that.

when you view the catalog do you get any errors?

Have you changed BOTH configure.php files?

Posted

i am having similar problems, the only diffrence is when a person goes to the url, they get the following...

 

 

Warning: mysql_connect(): Access denied for user: 'elitebag_osc2@localhost' (Using password: YES) in /home/elitebag/public_html/store2/includes/functions/database.php on line 19

Unable to connect to database server!

 

i did nothing to the server and everything that i have tried does not work... the site was up and operational.... any suggestions...

 

I think you need a bit more detail in your post,

 

did you upload just the admin files or the whole lot?

have you modified any of the files? if not you could do a fresh install and then import your database to that.

when you view the catalog do you get any errors?

Have you changed BOTH configure.php files?

=========

Thanks,

 

William.

Posted

Sorry to be so vague.

 

I've uploaded all the catalog files I'd saved from this site and then reinstalled the mysql database. The admin panel works but the site itself does not.

 

This is not a standard OScommerce site and has either been modified or was an older version. I don't know since I'm new to this software.

 

I've had permissions across the site set to even 777 but it has made no difference.

 

I even called the host server to make sure there were no access problems, although, I'm not totally convinced, since ht access, ht group and ht password files seem to be everywhere.

 

I can tell that the index.php file is read and that it asks, in part, for information from layout.php. (It reads the <!-- header //--> tag from that file which I altered once to make sure) I've pasted the two files below:

 

 

index.php (in the root directory)**********************

 

<?

global $page_name, $store_name, $insert_java;

 

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

 

 

layout.php (which is in the /includes/ directory) ******************

 

 

<!-- 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 //-->

Posted

This is a 'loaded' or template driven version of osCommerce, and unless you know what it is, or someone can tell by the filenames what it is then I think you will be out of luck in getting this problem sorted. Sorry.

 

This is an instance of something that can cause prolems

 

$insert_java;

 

If this is actually calling for Java to be run (not javascript) then most shared servers do not allow Java content.

 

Vger

Archived

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

×
×
  • Create New...