Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What the *&^# Happened?


garysgal

Recommended Posts

NOW look at my site!!! https://www.familymemoriesandmore.com/cart/. Click on any link and the page can't be displayed, and the redirect address is SCREWY.

 

I've already emailed them about the "permissions" at the top - they keep defaulting the configure.php file to 777, even though I've changed it a dozen times...

 

But why on earth are the redirects so screwed up? Is this something *I* did or something on my server's side?

 

ACK! I'm so close to converting my site over to this one and this went and happened! Grrr...

Link to comment
Share on other sites

Looks like you might have mixed up the two config files /catalog/includes/configure.php and /catalog/admin/includes/configure.php.

 

Just check what they should contain in the original osC and load a version with the correct entries for your site back up to the server.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Maybe that backup file has the same problem...

 

Open your /catalog/includes/configure.php and check that you have these entries:

 

  define('DIR_WS_HTTP_CATALOG', '/cart/');
 define('DIR_WS_HTTPS_CATALOG', '/cart/');

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

I didn't have those lines, but adding them still gives me the errors when I click on any link in the cart... here's what my configure.php looks like (and I do have the https:// set up for www.familymemoriesandmore.com):

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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.familymemoriesandmore.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.familymemoriesandmore.com');

define('HTTPS_CATALOG_SERVER', 'https://www.familymemoriesandmore.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/garysgal/public_html'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/cart/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/garysgal/public_html/cart/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/cart/'); // absolute path required

define('DIR_FS_CATALOG', '/home/garysgal/public_html/cart/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

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_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'garysgal_osc1');

define('DB_SERVER_PASSWORD', 'xxxxxx');

define('DB_DATABASE', 'garysgal_osc1');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Link to comment
Share on other sites

The configure file you posted looks like it's the one for /cart/admin/includes/configure.php and not the one for /cart/includes/configure.php.

 

The two lines I posted earlier are not in. But anyway, it's the wrong data in it.

 

Try this:

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright ? 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.familymemoriesandmore.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.familymemoriesandmore.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '.familymemoriesandmore.com');
 define('HTTPS_COOKIE_DOMAIN', '.familymemoriesandmore.com');
 define('HTTP_COOKIE_PATH', '/cart/');
 define('HTTPS_COOKIE_PATH', '/cart/');
 define('DIR_WS_HTTP_CATALOG', '/cart/');
 define('DIR_WS_HTTPS_CATALOG', '/cart/');
 define('DIR_WS_IMAGES', 'images/');
 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/garysgal/public_html/cart/');
 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', 'garysgal_osc1');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'garysgal_osc1');
define('USE_PCONNECT', 'false'); // use persisstent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

NOW look at my site!!! https://www.familymemoriesandmore.com/cart/. Click on any link and the page can't be displayed, and the redirect address is SCREWY.

you moved to https from http : http still displays i.e.: http://familymemoriesandmore.com/cart/prod...;products_id=63 and now the paths to https are all muddled

one-click installation..

Dave's info

Link to comment
Share on other sites

Good to see it's working properly. Just check that your admin is working fine too.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Of course it's better if your access to the admin is encrypted. I didn't change anything in my admin/includes/configure.php to make it use https. I just login with https://www.mydomain.com/admin/... After that all links within the admin are SSL encrypted. Just try it.

 

abra

The First Law of E-Commerce: If the user can't find the product, the user can't buy the product.

 

Feedback and suggestions on my shop welcome.

 

Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...