Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installs fine, but no links work...


chance_11

Recommended Posts

Posted

I just finished the install which completed successuflly with no errors. I have re-instaled a few times tying to fix it without droping the database or anything like that. I don't think that matters, but I wanted to add it. When I get to the last install page the buttons return 404 not found. I can get to each page manually, but every link is broken, as it gives this for a url:

 

http://www.mysite.com/catalog/admin/://www...5cae1a6c791874d

 

Anyone know why the url's are comming out like this? (I chenged my server from the real name to mysite) I have looked through the configuration.php, but didn't see any problems.

 

Thanks for any help,

 

Sam

Posted

This will be a path issue in the configure.php files

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.

Posted

Thanks, but that doesn't tell me anything I didn't know already, so let me ask again.

 

Does anyone know what the syntax is trying to do?

 

Is there a good faq on exactly how the paths are used and need to be configured?

 

I have followed the install php script to the letter, and it left some paths blank. The documentation in the config files are not very helpful. Is there somewhere else I can look?

Posted

LOL

 

http://www.mysite.com sure gets a lot of hits from this board. :lol:

 

If you won't post your actual url so we can see what's going on you're not going to get a lot of help.

 

No one likes to work blindfolded.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
LOL

 

http://www.mysite.com sure gets a lot of hits from this board. :lol:

Yikes! Whoever owns that site is really wasting a good thing too. Page Rank of 7! ARGH! I'd be putting up some killer affiliate links or something. :o

Posted

Looks like you have a path set to ://www*something that isn't supposed to be. Many of the paths are set relative to the admin and store directories, and it looks like (from the post) that it's set to the whole url.

Hope that helps.

Posted

when you talk about paths being set - the osCommerce system doesn't seem to have any path configuration settings in the configuration menu.... where are you talking about?

Posted
when you talk about paths being set - the osCommerce system doesn't seem to have any path configuration settings in the configuration menu.... where are you talking about?

The paths are set in two files. catalog/incudes/configure.php and in a stock install

 

catalog/admin/incudes/configure.php

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Sorry for not posting the actual links. Without knowing the application very well, I'm a little worried about security. I guess I could just wipe it out and start again. Here's what I'm getting now:

 

http://www.carputersolutions.com/catalog/admin/

 

This page works fine, but the links all do this:

http://www.carputersolutions.com/catalog/a...figuration&gID=. . .

 

I just don't understand why it's throwing the path in there 2 times. Can anyone tell me which config file the second www.carputersolutions is comming from? Any suggestions would be greatly appreciated! Sam

 

Here's the admin/includes/configure.php file:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

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

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/admin'); // where the pages are located on the server

define('DIR_WS_ADMIN', 'www.carputersolutions.com/catalog/admin'); // absolute

path required

define('DIR_FS_ADMIN', '/home/carputer/carputersolutions.com/catalog/admin/');

// absolute pate required

define('DIR_WS_CATALOG', 'www.carputersolutions.com/catalog/'); // absolute pa

th required

define('DIR_FS_CATALOG', '/home/carputer/carputersolutions.com/catalog/'); //

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

 

 

Here's the catalog/includes/configure.php:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', '://'); // eg, http://localhost - should not be empty fo

r 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', 'www.carputersolutions.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/home/carputer/carputersolutions.com/cookies');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', 'catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

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/carputer/carputersolutions.com/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted

define('HTTP_SERVER', 'www.carputersolutions.com'); // eg, http://localhost - should not be empty for productive servers

 

define('HTTP_COOKIE_PATH', '/catalog/'

define('DIR_WS_CATALOG', '/catalog/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

I made thoes changes, but it didn't help. In the admin file that line now reads:

 

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

 

and the catalog file now has:

define('HTTP_SERVER', 'www.carputersolutions.com'); // eg, http://localhost -

should not be empty for productive servers

define('HTTP_COOKIE_PATH', '/catalog/');

 

Any other suggestions, or did I do the above correctly?

Posted

Wrong! ;)

 

define('HTTP_SERVER', 'http://www.carputersolutions.com'); // eg, http://localhost - should not be empty for productive servers

Archived

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

×
×
  • Create New...