Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page won't load anymore


bonhommie

Recommended Posts

Hey all,

 

I was making some changes to my store and i changed the paths in the configure.php files in the catalog and also the admin section. I was planning to move all the osc files from one folder to another but it didn't quite work out, so I decided to leave them where they are.

 

I didn't move files, I only copied to that new location and then deleted them. Then, I changed the configure.php files back to what they used to be, and the website refused to load!

 

the admin works fine like it used to, but the main catalog only loads the header and not any of the rest of the page!! and that goes for every page on the store.

 

I dont think I need a new install cos the header loads! Don't know what to do.

Help!

 

:( :(

Link to comment
Share on other sites

Hey all,

 

I was making some changes to my store and i changed the paths in the configure.php files in the catalog and also the admin section. I was planning to move all the osc files from one folder to another but it didn't quite work out, so I decided to leave them where they are.

 

I didn't move files, I only copied to that new location and then deleted them. Then, I changed the configure.php files back to what they used to be, and the website refused to load!

 

the admin works fine like it used to, but the main catalog only loads the header and not any of the rest of the page!! and that goes for every page on the store.

 

I dont think I need a new install cos the header loads! Don't know what to do.

Help!

 

:( :(

 

can you post the configure file for the catalog removing the database information before you do

Regards

 

Mark A Reynolds

Link to comment
Share on other sites

can you post the configure file for the catalog removing the database information before you do

 

 

Here it is...

to get to the online store go to www.gospeldancer.com/osc and only the header loads fine.

 

<?php
/*
 $Id: configure.php,v 1.2 2005/04/08 13:42:16 andrei Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://gospeldancer.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://gospeldancer.com');
 define('HTTPS_CATALOG_SERVER', 'https://domainame/username');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT']); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/osc/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/osc/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_CLIPS', 'clips/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_CLIPS', DIR_FS_CATALOG . 'clips/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'username');
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE', 'database');
 define('DB_TABLE_PREFIX', 'osc_'); // leave empty '', or enter a prefix (eg. 'osc_') including underscore
 define('USE_PCONNECT', true);
 define('STORE_SESSIONS', '');

////////// CP ADD : Login Form //////////

  define('ADMIN_USERNAME', 'username');
define('ADMIN_PASSWORD', 'password');

session_start();

if( array_key_exists( 'admin_session' , $_SESSION ) and $_SESSION['admin_session'] ) {
	// There is a session : let the user do actions	
}
else {
	// There is no session

	if (isset($HTTP_GET_VARS['admin_username'])) $admin_username = $HTTP_GET_VARS['admin_username'];
	if (isset($HTTP_POST_VARS['admin_username'])) $admin_username = $HTTP_POST_VARS['admin_username'];

	if (isset($HTTP_GET_VARS['admin_password'])) $admin_password = $HTTP_GET_VARS['admin_password'];
	if (isset($HTTP_POST_VARS['admin_password'])) $admin_password = $HTTP_POST_VARS['admin_password'];

	$admin_error = 0;
	$error_text = '';

	if( $admin_username === ADMIN_USERNAME and md5( $admin_password ) === ADMIN_PASSWORD ) {
		// Right credentials given : let the user do actions

		$admin_session = 1;
		$_SESSION[ 'admin_session' ] = 1;
		$HTTP_SESSION_VARS[ 'admin_session' ] = 1;
		session_register( 'admin_session' );
	}
	else {
		// No Right credentials given : print login form
		$admin_error = 1;
		if( ! ( $admin_username == '' and $admin_password == '' ) ) {
			$error_text = 'Plese, supply right username and password.';		
		}
	?>
	<html>
		<head>
			<title>Login</title>
			<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
		</head>
		<body>
		<center>
		<form action="" method="POST">
			<table border="0" width="" cellspacing="0" cellpadding="2">
				<tr align="center">
					<td class="infoBoxContent">
						<b>Login to Administrative Section</b>
					</td>
				</tr>
				<tr align="center">
					<td class="infoBoxContent">
						<b><font color="red"><?php echo $error_text; ?></font></b>
					</td>
				</tr>
				<tr align="center">
					<td class="infoBoxContent">
						<b>Username : </b><input type="text" name="admin_username" value="" />
					</td>
				</tr>
				<tr align="center">
					<td class="infoBoxContent">
						<b>Password : </b><input type="password" name="admin_password" value="" />
					</td>
				</tr>
				<tr align="center">
					<td align="center" class="infoBoxContent">
						<input type="submit" name="login" value="Login" />
					</td>
				</tr>
			</table>
		</form>
		</center>
		</body>
	</html>

	<?php
		exit;
	}
}

////////// CP ADD : Login Form //////////

?>

Link to comment
Share on other sites

should this not be filled in?

 

define('HTTPS_CATALOG_SERVER', 'https://domainame/username');

 

regards

 

mark

 

Hey!

yeah, i just loaded it on another computer and it came up fine. But when u click on a product, then it doesnt show. Also when u go back to the catalog then that doesn't show anymore.

 

I mean, if you go a page and leave that page and click on it again, the page doesnt load anymore. Like maybe it's telling the browser the wrong thing.

 

Could this be the cookies or sessions or what?

 

 

about

define('HTTPS_CATALOG_SERVER', 'https://domainame/username');

 

yeah that stuff is filled in, in the real config file, i just took it out before posting here.

Link to comment
Share on other sites

The configure.php file that you pasted is from your admin not your catalog.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

The configure.php file that you pasted is from your admin not your catalog.

 

yeah, sorry.

 

<?php
/*
 $Id: configure.php,v 1.2 2005/04/08 13:42:18 andrei Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.gospeldancer.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.gospeldancer.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'gospeldancer.com');
 define('HTTPS_COOKIE_DOMAIN', 'gospeldancer.com');
 define('HTTP_COOKIE_PATH', '/osc/');
 define('HTTPS_COOKIE_PATH', '/osc/');
 define('DIR_WS_HTTP_CATALOG', '/osc/');
 define('DIR_WS_HTTPS_CATALOG', '/osc/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_CLIPS', 'clips/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/u5/oopanuga/html/osc/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'username');
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE', 'database');
 define('DB_TABLE_PREFIX', 'osc_'); // leave empty '', or enter a prefix (eg. 'osc_') including underscore
 define('USE_PCONNECT', true); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

You know, I'm beginning to doubt that this problem has to do with configuration, cos even on my computer, the store loads on a fresh browser. But as soon as you go from one page to the other, then they start to blank out.

 

Even though the browser doesn't say "error on page". this is wierd.

 

help!

Link to comment
Share on other sites

It appears that you have gotten it working as the entire page loaded fine for me.

 

I would recommend changing in your includes/configure.php the line:

define('USE_PCONNECT', true);

 

to instead be:

define('USE_PCONNECT', false);

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Link to comment
Share on other sites

  • 2 weeks later...
It appears that you have gotten it working as the entire page loaded fine for me.

 

I would recommend changing in your includes/configure.php the line:

define('USE_PCONNECT', true);

 

to instead be:

define('USE_PCONNECT', false);

 

Well, I hadn't.. but I have now.

 

All I did was disable the 'cache' in Admin >> Cache

and the website now loads fine all the time.

 

But the only thing is.. my categories box NEVER shows up!

everything else loads.... i just installed Chemo's Page Cache V1.5 but the categories box still wont show up even though cache is set to 'true'.

 

I don't know what it is now..

help!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...