Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error on images when moving to new server


ajpeters

Recommended Posts

Posted

I am moving from one server to another and also upgrading 2themax. I got it moved over, and started making upgrade changes. I am now getting an error everytime II switch to a catalog. The images do not show up. I am sure it in the config.phpofile

 

Please see http://www.shopeyecandy.biz. it should match http://www.frenchpresents.com.

 

here is my current config

<?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.shopeyecandy.biz'); // eg, http://mysql.hostcentric.com - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.shopeyecandy.biz');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/frenchpr/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/frenchpr/public_html/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/frenchpr/public_html/'); // absolute path required

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

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

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '');

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

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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

 

 

// define our database connection

define('DB_SERVER', 'blah.blah.blah); // eg, mysql.hostcentric.com - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'blah-blah);

define('DB_SERVER_PASSWORD', 'blahblahblah');

define('DB_DATABASE', 'blah_osc1');

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

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

?>

Posted

It appears my cpath is incorrect on this page. It It is supposed to come from application_top.php.

 

I am moving from one server to another and also upgrading 2themax. I got it moved over, and started making upgrade changes. I am now getting an error everytime II switch to a catalog. The images do not show up. I am sure it in the config.phpofile

 

Please see http://www.shopeyecandy.biz. it should match http://www.frenchpresents.com.

 

here is my current config

<?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.shopeyecandy.biz'); // eg, http://mysql.hostcentric.com - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.shopeyecandy.biz');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', '/home/frenchpr/public_html/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/frenchpr/public_html/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/frenchpr/public_html/'); // absolute path required

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

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

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '');

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

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('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

 

 

// define our database connection

define('DB_SERVER', 'blah.blah.blah); // eg, mysql.hostcentric.com - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'blah-blah);

define('DB_SERVER_PASSWORD', 'blahblahblah');

define('DB_DATABASE', 'blah_osc1');

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

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

?>

Posted

You've got some kind of crazy redirect to https taking place on your site - and https is not defined so you end up with this:

 

image link = http://https_server/images/Apron-b&w-murval.jpg

 

base href = <base href="HTTPS_SERVER/"> (should be "http://www.yourdomain.com")

 

By the way the configure.php file you posted is your admin/includes/configure.php file - so if you have that loaded up in place of your includes/configure.php file then that may have something to do with your problem!

 

Vger

Archived

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

×
×
  • Create New...