Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

moving to different server - everything but images ok


denisejeffers

Recommended Posts

I moved an osCommerce site from one server to another, and modified the name (client wanted a new domain name and faster server).

I downloaded the orignal files to my workstation and uploaded in the same heirchary.

I modified all the old names (host/user/password/dbname) to the new names

 

Everything connects and displays fine EXCEPT THE IMAGES? I don't understand why if they are in the same heirchary/locations as the last server.

 

On my server the files are found in osCommerce\catalog\images

 

Can someone point me to the correct files as I looked at the admin/includes/configure.php what I believe to be is correct:

 

 

 

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

 

You can view what I mean at - http://www.allfashionsunglasses.com/osCommerce/catalog/

Link to comment
Share on other sites

admin/includes/configure.php will not affect Your user side.

 

For user side chek if images folder in includes has images and the property of the image folder and all images.

Plus no htaccess is placed in the image folder.

 

also

http://allfashionsunglasses.com/catalog/im...er%20Flames.jpg

 

should have been

http://allfashionsunglasses.com/catalog/os...er%20Flames.jpg

so Your configure.php which is in oscommerce/catalog/includes has a wrong value for HTTP_SERVER or for CATALOG.

 

Satish

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

Make sure you upload the image files in binary mode when you FTP upload to the new server. The rest of the text files can be sent in ASCII mode. Your FTP client may do this all automatically, but if you uploaded the images in ASCII, you will get some wierd results.

Link to comment
Share on other sites

admin/includes/configure.php will not affect Your user side.

 

For user side chek if images folder in includes has images and the property of the image folder and all images.

Plus no htaccess is placed in the image folder.

 

also

http://allfashionsunglasses.com/catalog/im...er%20Flames.jpg

 

should have been

http://allfashionsunglasses.com/catalog/os...er%20Flames.jpg

so Your configure.php which is in oscommerce/catalog/includes has a wrong value for HTTP_SERVER or for CATALOG.

 

Satish

 

 

Satish, thank you however I am somewhat confused but I believe you are on the right track.

First my images are found in directory osCommerce/catalog/images (I can test it with http://allfashionsunglasses.com/osCommerce...ages/poker.jpg)

 

I've re-uploaded the images in binary format although I use FileZilla and it normally does it automatically, but I redo the upload to confirm.

 

I've attempted to modify my catalog/includes/configure.php multiple ways with no luck.

 

I noticed the HTTP_SERVER was never set so I set it as follows

 

define('HTTP_SERVER','http://allfashionsunglasses.com'); (or should I leave it blank)

 

Then I noticed HTTP_CATALOG_SERVER wasn't set (and still isn't set but I believe may be ok)

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

 

I then set the FS_DOCUMENT_ROOT as follows (but I don't see any DIR_WS_DOCUMENT_ROOT which I suspect may be ok, since all refer backs point to FS_DOCUMENT_ROOT:

 

So if I'm starting with

define('DIR_FS_DOCUMENT_ROOT', 'http://allfashionsunglasses.com/osCommerce');

 

then with the following settings I thought I'd translate to the correct CATALOG position:

 

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

so I thought DIR_FS_CATALOG would translate to 'http://allfashionsunglasses.com/osCommerce/catalog/

 

for define('DIR_WS_CATALOG_IMAGES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . 'images/');

 

I thought would translate to 'http://allfashionsunglasses.com/osCommerce/catalog/images/ which is where the images reside

 

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); should translate to 'http://allfashionsunglasses.com/osCommerce/catalog/images/ as well - which is where the images reside

 

 

 

When I right-mouse click on an image box (since the images still aren't displaying it shows it is looking for it at http://allfashionsunglasses.com/catalog/im.../oscommerce.gif which leads me to believe it isn't using FS_CATALOG since it has osCommerce/catalog in the definition.

 

Any other thougths?

Link to comment
Share on other sites

Satish, thank you however I am somewhat confused but I believe you are on the right track.

First my images are found in directory osCommerce/catalog/images (I can test it with http://allfashionsunglasses.com/osCommerce...ages/poker.jpg)

 

I've re-uploaded the images in binary format although I use FileZilla and it normally does it automatically, but I redo the upload to confirm.

 

I've attempted to modify my catalog/includes/configure.php multiple ways with no luck.

 

I noticed the HTTP_SERVER was never set so I set it as follows

 

define('HTTP_SERVER','http://allfashionsunglasses.com'); (or should I leave it blank)

 

Then I noticed HTTP_CATALOG_SERVER wasn't set (and still isn't set but I believe may be ok)

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

 

I then set the FS_DOCUMENT_ROOT as follows (but I don't see any DIR_WS_DOCUMENT_ROOT which I suspect may be ok, since all refer backs point to FS_DOCUMENT_ROOT:

 

So if I'm starting with

define('DIR_FS_DOCUMENT_ROOT', 'http://allfashionsunglasses.com/osCommerce');

 

then with the following settings I thought I'd translate to the correct CATALOG position:

 

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 

so I thought DIR_FS_CATALOG would translate to 'http://allfashionsunglasses.com/osCommerce/catalog/

 

for define('DIR_WS_CATALOG_IMAGES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . 'images/');

 

I thought would translate to 'http://allfashionsunglasses.com/osCommerce/catalog/images/ which is where the images reside

 

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); should translate to 'http://allfashionsunglasses.com/osCommerce/catalog/images/ as well - which is where the images reside

 

When I right-mouse click on an image box (since the images still aren't displaying it shows it is looking for it at http://allfashionsunglasses.com/catalog/im.../oscommerce.gif which leads me to believe it isn't using FS_CATALOG since it has osCommerce/catalog in the definition.

 

Any other thougths?

 

In addition to having 2 installations of the osc, looks like you have a few things mixed up.

 

First, DIR_FS_CATALOG should be an absolute path, not a web link. It should be something like /home/www/osCommerce/catalog or something similar.

 

Change your DIR_WS_CATALOG to /osCommerce/catalog/.

 

At some point you'll probably want to get rid of the duplicate installation also.

 

If you still have problems, post your complete configuration file (without your database info) and we can try to correct it.

 

Ed

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...