Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

new installation - Page Can Not be Found


doremient

Recommended Posts

I have uploaded and installed. The install went fine. I can access the admin panel and maneuver around, adding categories etc...

However, when I go to the site and I click ona category it gives me a page can not be found page. I'm sure it is just a path I need to fix, but I am not sure which path and which file.

Any help would be greatly appreciated

Link to comment
Share on other sites

http://www.magicalelements.com/catalog/ this is the URL for the main page of the store.

If I click on any link, it gives me a page can not be found error.

This is one of the linked pages

 

http://www.magicalelements.com/catalog/index.php/cPath/25

 

I think your problem is the /cpath/25 part. It shouldn't be there since, when I remove it to the end of index.php (which doesn't really have to be there either) I get your store's main page.

 

If you wish to post your catalog/includes/configure.php file (with the server information at the bottom asterisked out), I'm sure one of us can tell you what to fix

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

I think your problem is the /cpath/25 part. It shouldn't be there since, when I remove it to the end of index.php (which doesn't really have to be there either) I get your store's main page.

 

If you wish to post your catalog/includes/configure.php file (with the server information at the bottom asterisked out), I'm sure one of us can tell you what to fix

 

Richard

 

Thanks

 

Here is the code:

 

<?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.magicalelements.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', 'www.magicalelements.com');

define('HTTPS_COOKIE_DOMAIN', '');

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

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/content/m/e/l/melements/html/catalog/');

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

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

define('DIR_FS_$DOCUMENT_ROOT', 'http://www.magicalelements.com/catalog'); // where the pages are located on the server

 

// define our database connection

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

define('DB_SERVER_USERNAME', '********');

define('DB_SERVER_PASSWORD', '*************');

define('DB_DATABASE', '*******');

define('USE_PCONNECT', 'true'); // use persistent connections?

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

?>

Link to comment
Share on other sites

Thanks

 

Here is the code:

 

<?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.magicalelements.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', 'www.magicalelements.com');

define('HTTPS_COOKIE_DOMAIN', '');

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

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/content/m/e/l/melements/html/catalog/');

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

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

define('DIR_FS_$DOCUMENT_ROOT', 'http://www.magicalelements.com/catalog'); // where the pages are located on the server

 

// define our database connection

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

define('DB_SERVER_USERNAME', '********');

define('DB_SERVER_PASSWORD', '*************');

define('DB_DATABASE', '*******');

define('USE_PCONNECT', 'true'); // use persistent connections?

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

?>

 

Well, it looks right for a store that doesn't have SSL, so, compare it to the configure.php file at catalog/admin/includes/ and make sure they are identical. If not, copy the configure.php file from catalog/includes to catalog/admin/includes and let it overwrite the file there.

 

I don't see any reason, from the file you've provided, that the /index.php/cPath/25 stuff should be tacked on the end.

 

Have you installed any contribs to this installation?

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

Well, it looks right for a store that doesn't have SSL, so, compare it to the configure.php file at catalog/admin/includes/ and make sure they are identical. If not, copy the configure.php file from catalog/includes to catalog/admin/includes and let it overwrite the file there.

 

I don't see any reason, from the file you've provided, that the /index.php/cPath/25 stuff should be tacked on the end.

 

Have you installed any contribs to this installation?

 

Richard

 

The admin/includes/config was different so I copied and pasted, I still get the errors

I haven't installed anything else

Link to comment
Share on other sites

The admin/includes/config was different so I copied and pasted, I still get the errors

I haven't installed anything else

 

 

now my admin console is giving me this error

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/content/m/e/l/melements/html/catalog/admin/includes/application_top.php on line 29

 

Warning: main(includes/configure.php): failed to open stream: No such file or directory in /home/content/m/e/l/melements/html/catalog/admin/includes/application_top.php on line 29

 

Fatal error: main(): Failed opening required 'includes/configure.php' (include_path='.:/usr/local/lib/php') in /home/content/m/e/l/melements/html/catalog/admin/includes/application_top.php on line 29

Link to comment
Share on other sites

The admin/includes/config was different so I copied and pasted, I still get the errors

I haven't installed anything else

 

Ok, one thing I did overlook was that, near the bottom of the configure.php, you have PCONNECT set to true.

 

This isn't reccomended on a shared server. I don't know if this is the cause of the problem, because I've never seen anyone do it.

 

If you're not on a dedicated server, change it to FALSE in both copies of configure.php

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

Ok, one thing I did overlook was that, near the bottom of the configure.php, you have PCONNECT set to true.

 

This isn't reccomended on a shared server. I don't know if this is the cause of the problem, because I've never seen anyone do it.

 

If you're not on a dedicated server, change it to FALSE in both copies of configure.php

 

Richard

 

I changed it to false.

I still can not access pages from the links.

Now myAdmin page gives me this error:

 

Parse error: parse error, unexpected T_STRING in /home/content/m/e/l/melements/html/catalog/admin/includes/configure.php on line 15

 

Here is the code for that:

 

 

<?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.magicalelements.com'); '); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_WS_ADMIN', '/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', '/home/content/m/e/l/melements/html/catalog/');

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

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

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('DIR_FS_DOCUMENT_ROOT', '/home/content/m/e/l/melements/html/catalog/'); // 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 our database connection

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

define('DB_SERVER_USERNAME', '*************');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '*********');

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

I changed it to false.

I still can not access pages from the links.

Now myAdmin page gives me this error:

 

Parse error: parse error, unexpected T_STRING in /home/content/m/e/l/melements/html/catalog/admin/includes/configure.php on line 15

 

Here is the code for that:

<?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.magicalelements.com'); '); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_WS_ADMIN', '/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', '/home/content/m/e/l/melements/html/catalog/');

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

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

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('DIR_FS_DOCUMENT_ROOT', '/home/content/m/e/l/melements/html/catalog/'); // 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 our database connection

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

define('DB_SERVER_USERNAME', '*************');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '*********');

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

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

?>

 

Ok, my ISP is, obviously, having FTP issues at the moment, so I can't get a look at the two configure files to re-confirm that they are absolutely identical.

 

It's been a long day and I might have missed something that was not terribly obvious and screwed up your admin. I don't know for sure.

 

If you feel safe in sending me your server info by PM, I will redo the install of your store as I MIGHT be the cause of the admin problem. If so I apologize and I want to make it right by you. Do you still have the install folder there? If not, I can re-upload it.

 

Since I have installed my store succesfully (several times, actually LOL) and a couple of other people's store on here, chances are extremely good that I will get your store installed correctly as well.

 

It's the least I can do.

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

I'm afraid you've been on a total wild goose chase. All you needed to do was to go to your osCommerce admin panel --> My Store and set 'Use Search Engine Friendly URL's' back to false - which is what they were set to in the first place.

 

Hopefull you kept an unedited copy of the configure.php file which is now messed up.

 

Vger

Link to comment
Share on other sites

I changed it to false.

I still can not access pages from the links.

Now myAdmin page gives me this error:

 

Parse error: parse error, unexpected T_STRING in /home/content/m/e/l/melements/html/catalog/admin/includes/configure.php on line 15

 

Here is the code for that:

<?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.magicalelements.com'); '); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_WS_ADMIN', '/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', '/home/content/m/e/l/melements/html/catalog/');

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

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

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('DIR_FS_DOCUMENT_ROOT', '/home/content/m/e/l/melements/html/catalog/'); // 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 our database connection

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

define('DB_SERVER_USERNAME', '*************');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '*********');

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

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

?>

 

Raymie,

 

I have rebuilt your catalog/admin/includes/configure.php file by inserting your information into a copy of my copy of the same file, allowing for the fact that you don't have SSL as seen below

 

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ 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://www.magicalelements.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.magicalelements.com');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/content/m/e/l/melements/html/catalog/'); // 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', '/home/content/m/e/l/melements/html/catalog/admin');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', '/home/content/m/e/l/melements/html/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/');

// define our database connection
define('DB_SERVER', ***************); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', '********');
define('DB_SERVER_PASSWORD', '*************');
define('DB_DATABASE', '*******');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Just cut it and paste it into your catalog/admin/includes/configure.php, fill in your server info, and it should take care of those errors that showed up after I incorrectly told you to overwrite it with the one from catalog/includes.

 

I'm sure that, if you follow VGer's instructions concerning setting the safe URLs to false, your store will come up fine.

 

I am also retiring from attempting to help people out as I haven't worked with the program long enough to know all the little tricks and results of incorrect settings as some of the long-timers, so, I will everyone in their capable hands and just concentrate on getting my store ready for launching.

 

I am, again, sorry for any inconvenience I caused you while trying to help.

 

Richard

No Good Deed EVER Goes Unpunished

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...