Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

404 Page not Found problem


shanafourde

Recommended Posts

When someone tries to order or login on my site they get this error:

 

Not Found

 

The requested URL /catalog/HTTPS_SERVER/catalog/login.php was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

Apache/1.3.33 Server at www.revengeunlimited.com Port 80

 

The path to the page seems to be wrong:

revengeunlimited.com/catalog/HTTPS_SERVER/catalog/login.php?action=process&osCsid=cf33b17306cbf9698a5e6c850ad34b72

 

Here is what my config file in the catalog says:

define('HTTP_SERVER', 'http://revengeunlimited.com');

  define('HTTP_CATALOG_SERVER', '');

  define('HTTPS_CATALOG_SERVER', '');

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

  define('DIR_FS_DOCUMENT_ROOT', '/home/reveng2/public_html'); //$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', '/catalog/admin/');

  define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

  define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

 

Can anyone help?

Link to comment
Share on other sites

When someone tries to order or login on my site they get this error:

The path to the page seems to be wrong:

revengeunlimited.com/catalog/HTTPS_SERVER/catalog/login.php?action=process&osCsid=cf33b17306cbf9698a5e6c850ad34b72

 

Here is what my config file in the catalog says:

Can anyone help?

 

I have the exact same problem. I have been able to set the catalog up and all the other settings but as soon as you try to login or create an account or click on checkout after selecting items the browser just goes to the following

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

 

--------------------------------------------------------------------------------

 

Please try the following:

 

If you typed the page address in the Address bar, make sure that it is spelled correctly.

 

Open the revengeunlimited.com home page, and then look for links to the information you want.

Click the Back button to try another link.

Click Search to look for information on the Internet.

 

 

 

HTTP 404 - File not found

Internet Explorer

 

The files are there. I have even tried to access them with [email protected]/catalog/whateverfile.php and I get the same message.

I too hope someone can help.

Link to comment
Share on other sites

I have the exact same problem. I have been able to set the catalog up and all the other settings but as soon as you try to login or create an account or click on checkout after selecting items the browser just goes to the following

The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

 

--------------------------------------------------------------------------------

 

Please try the following:

 

If you typed the page address in the Address bar, make sure that it is spelled correctly.

 

Open the revengeunlimited.com home page, and then look for links to the information you want.

Click the  Back button to try another link.

Click  Search to look for information on the Internet.

HTTP 404 - File not found

Internet Explorer

 

The files are there. I have even tried to access them with [email protected]/catalog/whateverfile.php and I get the same message.

I too hope someone can help.

 

 

Hello,

Yours is an HTTPS site and your config file has

define('HTTP_SERVER', 'http://revengeunlimited.com');

 

and no define for HTTPS_SERVER kindly add tghis line

define('HTTPS_SERVER', 'http://revengeunlimited.com');

and the Constant that is coming on the url will be replaced.

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Hello,

Yours is an HTTPS site and your config file has

define('HTTP_SERVER', 'http://revengeunlimited.com');

 

and no define for HTTPS_SERVER kindly add this line

define('HTTPS_SERVER', 'http://revengeunlimited.com');

and the Constant that is coming on the url will be replaced.

 

Hi, I don't have a config file under catalog and forgive me but both of the statements you wrote look the same.

Thanks.

Link to comment
Share on other sites

The file you posted is configure.php in your catalog/admin/includes/ folder

 

Look for configure.php in your /catalog/includes/ folder and add the line that was mentioned, i.e.

define('HTTPS_SERVER', 'http://revengeunlimited.com');

 

to it, or make sure if it's already there that it is exactly as above.

Link to comment
Share on other sites

I don't have a dedicated SSL server because the site only uses PayPal. I changed the two configure files to this, but I still get the same error.

 

define('HTTP_SERVER', 'http://revengeunlimited.com');

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

  define('HTTPS_CATALOG_SERVER', 'http://revengeunlimited.com');

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

  define('DIR_FS_DOCUMENT_ROOT', '/home/reveng2/public_html'); //$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', '/catalog/admin/');

  define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

  define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

Link to comment
Share on other sites

I don't have a dedicated SSL server because the site only uses PayPal. I changed the two configure files to this, but I still get the same error.

 

The file you are looking at is the admin configure.php file, that controls the admin part not the shop.

 

go to catalog/includes

 

there is a configure.php in there, it is different from the admin configure file so dont copy and paste between the two

 

  define('HTTP_SERVER', 'http://revengeunlimited.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://revengeunlimited.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
...

 

if ENABLE_SSL is set to true make it false, it should not then try to go to HTTPS_SERVER, but if it does set that line accordingly (as you dont have SSL in the example I have set it to http if you had SSL it would https).

 

Hope that helps.

Link to comment
Share on other sites

I had changed both the catalog/admin/includes/configure.php and catalog/includes/configure.php. However, they both do look exactly the same. The version of oscommerce I have is 1.13 does that matter?

 

define('HTTP_SERVER', 'http://revengeunlimited.com');

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

  define('HTTPS_CATALOG_SERVER', 'http://revengeunlimited.com');

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

  define('DIR_FS_DOCUMENT_ROOT', '/home/reveng2/public_html'); //$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', '/catalog/admin/');

  define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

  define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

Link to comment
Share on other sites

I had changed both the catalog/admin/includes/configure.php and catalog/includes/configure.php. However, they both do look exactly the same. The version of oscommerce I have is 1.13 does that matter?

 

The clue really is in the error you are getting

 

HTTPS_SERVER

 

where in your configure.php does it appear defined :blink: , correct it doesn't you need to DEFINE it.

 

your configure.php for the shop should look like this

<?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://yoursite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'http://yoursite.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_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', '/what/ever/path/it/is');
 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', '****');
 define('DB_SERVER_PASSWORD', '****');
 define('DB_DATABASE', 'whatever');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
?>

I would suggest you download another copy of osCommerce and take the configure.php file from that, amend it and upload to your site.

Link to comment
Share on other sites

the only other change to my site I have made recently is that my hosting company changed the document root path (it was nts/home/reveng2/public_html now it is home/reveng2/public_html). I checked the path on catalog/admin/includes/configure.php and catalog/includes/configure.php and catalog/php.ini. Are there any other files I need to check?

Link to comment
Share on other sites

the only other change to my site I have made recently is that my hosting company changed the document root path (it was nts/home/reveng2/public_html now it is home/reveng2/public_html). I checked the path on catalog/admin/includes/configure.php and catalog/includes/configure.php and catalog/php.ini. Are there any other files I need to check?

 

This is a wind up isnt it :angry:

 

please, please, please add a line like this to your shops configure.php

 

define('HTTPS_SERVER','http://revengeunlimited.com');

 

but I really do suggest you get the correct configure.php file, who knows what else will be broken.

 

You have been given ALL the information you need to fix this, there is nothing more we can do for you.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...