Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Internal Page Link Problem


DnJ

Recommended Posts

When I load my site, all the links show up - double

 

Below is the link that shows up when I mouseover Home in the header

 

 

I am just wondering if this would be an error in my configure.php?

 

You can have a look at this mess I have created

 

http://www.naughtypleasuresclub.com

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Link to comment
Share on other sites

This is almost certainly a mistake in your configure.php.

 

Without examining it, I would hazard a guess that in one or more of the defines for subdirectories (for instance DIR_WS_HTTP_CATALOG), you put the full URL instead of just the partial (should be something like '/catalog/').

Link to comment
Share on other sites

Thanks Fritz, just wanted a second opinion before I started changing things

 

That is what I thought as well.

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Link to comment
Share on other sites

I see you are getting there Doug do you want me to do the configure.php files for you

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Steve,

 

Thank you very much for all your help and the offer.

 

Your knowledge with this is amazing.

 

I really hate the errors but if I don't work through all of them I won't learn anything to help others avoid my stupid mistakes.

 

define('DIR_WS_HTTP_CATALOG', '/');

was set to url so doubled the link

 

Thanks again, I am learning as I go, and enjoying all the problems as well

 

<?php
/*
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.naughtypleasuresclub.com/'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://www.naughtypleasuresclub.com/');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', 'http://www.naughtypleasuresclub.com/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '');
define('DIR_WS_IMAGES', 'http://www.naughtypleasuresclub.com/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', 'http://www.naughtypleasuresclub.com/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

There is my current configure.php file sure I will find more problems as I proceed along.

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Link to comment
Share on other sites

Yes, there are several glaring errors in this configure.php. Ignoring the HTTPS, which you will eventually want to enter ...

 

Diving right in, is osC really at the root of your domain? Most of us have it at least one directory down, like at domain.com/catalog/. But if index.php really is at 'http://www.naughtypleasurers.com/index.php', you have done something quite unusual.

 

HTTP_COOKIE_DOMAIN, omit the 'http://'

HTTP_COOKIE_PATH also omit the 'http://', and give just the path within the domain

 

DIR_WS_IMAGES (assuming the catalog really is at the root) should be just '/images/'

 

DIR_FS_CATALOG, omit the 'http://' but are you on a dedicated server? Not likely, so the file system as seen from your host's point of view should be used. For one of my sites at ValueWeb, it looks like '/m8/ramset/catalog/' where m8 is the host server and ramset is the client account; for another site at iPowerWeb, it looks like '/home/sallybar/public_html/catalog' [actual account names altered for privacy]. Anyway, this physical path is something your server should tell you.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...