Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Big Help needed


everyth5

Recommended Posts

I have recently moved my entire site to a subdirectory. I am planning on making a mainpage that will give you a choice of where to go. Now my site isn't working. I have tried to change the path for the program to access the information needed but am unsure about what really needs to be changed and what is overkill. This is the original code of the configure.php file

 

<?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://everything-asian.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://everything-asian.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'everything-asian.com');

define('HTTPS_COOKIE_DOMAIN', 'everything-asian.com');

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', '/home/everyth5/public_html/');

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

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

 

and this is what I have changed it to

 

<?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://everything-asian.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://everything-asian.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'everything-asian.com');

define('HTTPS_COOKIE_DOMAIN', 'everything-asian.com');

define('HTTP_COOKIE_PATH', '/thailand/dragons/');

define('HTTPS_COOKIE_PATH', '/thailand/dragons/');

define('DIR_WS_HTTP_CATALOG', '/thailand/dragons/');

define('DIR_WS_HTTPS_CATALOG', '/thailand/dragons/');

define('DIR_WS_IMAGES', 'thailand/dragons/images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'thailand/dragons/icons/');

define('DIR_WS_INCLUDES', 'thailand/dragons/includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'thailand/dragons/boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'thailand/dragons/functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'thailand/dragons/classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'thailand/dragons/modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'thailand/dragons/languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'thailand/dragons/pub/');

define('DIR_FS_CATALOG', '/home/everyth5/public_html/thailand/dragons/');

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

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

 

Am I on the right track or should I be changing more? Where?

 

I keep getting the error

 

Warning: main(thailand/dragons/includes/filenames.php) [function.main]: failed to open stream: No such file or directory in /home/everyth5/public_html/thailand/dragons/includes/application_top.php on line 53

 

Fatal error: main() [function.require]: Failed opening required 'thailand/dragons/includes/filenames.php' (include_path='.:/usr/lib/php') in /home/everyth5/public_html/thailand/dragons/includes/application_top.php on line 53

 

Hope someone can help me with this problem.

 

Thank you in advance.

Kel

Link to comment
Share on other sites

Remove the change you made in all of these lines:

define('DIR_WS_IMAGES', 'thailand/dragons/images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'thailand/dragons/icons/');
define('DIR_WS_INCLUDES', 'thailand/dragons/includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'thailand/dragons/boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'thailand/dragons/functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'thailand/dragons/classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'thailand/dragons/modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'thailand/dragons/languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'thailand/dragons/pub/');
define('DIR_FS_CATALOG', '/home/everyth5/public_html/thailand/dragons/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'thailand/dragons/pub/');

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Remove the change you made in all of these lines:
define('DIR_WS_IMAGES', 'thailand/dragons/images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'thailand/dragons/icons/');
define('DIR_WS_INCLUDES', 'thailand/dragons/includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'thailand/dragons/boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'thailand/dragons/functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'thailand/dragons/classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'thailand/dragons/modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'thailand/dragons/languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'thailand/dragons/pub/');
define('DIR_FS_CATALOG', '/home/everyth5/public_html/thailand/dragons/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'thailand/dragons/pub/');

 

Jack

Thank you Jack. What changes should I make and in what files in order for the new subdirectory to only access the files within itself and not through the root directory?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...