Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where to edit miss guided file path


Babysweet

Recommended Posts

I have been looking for several hours now, to find that one place where this program is adding to the file path directories that don't exist, I have contemplated just creating these directories and just moving all the files into them, but that is a last resort.

I know there has to be a central location that defined this file path that it is giving me, I just need a little nudge to help me look in the right direction.

this is what the file path should be

http://92engbn.us/ecommerce/os/admin/configuration.php?selected_box=configuration&gID=1&osCAdminID=3f1277f738a1a25060f4deba371948f2&osCAdminID=3f1277f738a1a25060f4deba371948f2

but this is what it is giving me when I am clicking the links in the admin

http://92engbn.us/ecommerce/os/admin/localhost/admin/configuration.php?selected_box=configuration&gID=1&osCAdminID=3a176b5f4f77f7ad578d7f04f53cc325&osCAdminID=3a176b5f4f77f7ad578d7f04f53cc325

notice the extra path entries, "localhost/admin" I need to remove that from whereever in the program it is being defined.

your assistance will prevent my premature baldness, and for that my lady will be much appreciative.

Sincerely,

Joseph Seabert

Link to comment
Share on other sites

the files that you want to look at for the defined paths are the admin and catalog includes/configure.php files.

What you are getting is a common issue with the wrong paths being defined, I have lost count of the number of configure.php files that I have corrected for people, but this must be about a hundred so if you want you can pm these files to me and I will take a look at them 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

well I have done no good.

instead of removing the excess file path I have somehow removed what I didn't want removed.

I wanted to remove what was in red

http://92engbn.us/ecommerce/os/admin/localhost/admin/configuration.php?

but now I have mangaged to do this

 

 

It would help if I new what I was doing, or if I new even what I am supposed to be looking for.

this is how my config.php for admin is currently set, let me know what I should be doing

<?php
/*admin
 $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', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', '');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $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', '/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/');

I have tried to alter define('HTTP_SERVER', ''); but without any results

Sincerely,

Joseph Seabert

Link to comment
Share on other sites

you have no servers defined

 

would this be your server http://92engbn.us

and this the path for catalog /ecommerce/os/catalog/

 

and you would be better to define the absolute paths for the FS root catalog and admin

 

does your catalog side work ok

if yes then post this to help with server names and see if you can find the absolute path something like /home/user/public_html/catalog/ or /usr/local/apache/htdocs these are just examples.

 

If you want you can pm me the relevant info and I will make up the two configure.php files for you

 

<?php
/*admin
$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', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
define('HTTP_CATALOG_SERVER', '');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', $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', '/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/');

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

Archived

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

×
×
  • Create New...