Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New pictures not showing! Help!


jailaxmi

Recommended Posts

I had to move my store to a new server, installed everything again and transferred all my files, database, updated the configure files, etc. Everything seems to be working fine, except that when I upload a new image (for a new product) it doesn't show on the site, even though it appears in the images folder (so it appears to have uploaded fine). I checked the permissions for the images folder and it is 777.

 

Any ideas on how to solve this issue would be greatly appreciated!!! Thanks!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Your paths might not be correct in your configure.php files.

 

If you right click the missing image and select "properties", what does it say for the location?

 

something like http://yoursite.com/catalog//images/yourpic.jpg --> would be a common problem (the extra slash between 'catalog' and 'images'.). It could pick up an extra slash like that from the paths in configure.php.

 

That would be my first guess.

 

Hmmm I read that again and I'm assuming your old pics are showing up, just not the new ones?

 

I would still check the configure files...just an idea.

Link to comment
Share on other sites

Your paths might not be correct in your configure.php files.

 

If you right click the missing image and select "properties", what does it say for the location?

 

something like http://yoursite.com/catalog//images/yourpic.jpg --> would be a common problem (the extra slash between 'catalog' and 'images'.). It could pick up an extra slash like that from the paths in configure.php.

 

That would be my first guess.

 

Hmmm I read that again and I'm assuming your old pics are showing up, just not the new ones?

 

I would still check the configure files...just an idea.

 

Thanks for your idea. When I checked the properties for a missing picture it said: http://ayurvedayogashop.com/images/imageca...divinelight.jpg

 

This is the same path all pictures are showing. Is this correct (images/imagecache/picture.jpg), or should it be just /images/picture.jpg? If so, where do I change that? I doesn't show on the confifure.php files.

 

Thanks for any ideas!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Thanks for your idea. When I checked the properties for a missing picture it said: ayurvedayogashop.com/images/imagecache/bk_divinelight.jpg]http://ayurvedayogashop.com/images/imagecache/divinelight.jpg[/url]

 

This is the same path all pictures are showing. Is this correct (images/imagecache/picture.jpg), or should it be just /images/picture.jpg? If so, where do I change that? I doesn't show on the confifure.php files.

 

Thanks for any ideas!

 

jailaxmi

 

The html_output.php file had: ? $image = DIR_WS_IMAGES . 'imagecache' . $thumbfile and I changed the 'imagecache' to 'images' everywhere I found it in the file. All the pictures are showing on the site.

 

Now, the new pictures follow this path: ayurvedayogashop.com/images/pictureX.jpg but the old pictures (the ones that were uploaded before the move) say: ayurvedayogashop.com/images/images/pictureX.jpg!!

Any ideas on what is going on and if this is alright?

 

Thanks!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

The html_output.php file had: ? $image = DIR_WS_IMAGES . 'imagecache' . $thumbfile and I changed the 'imagecache' to 'images' everywhere I found it in the file. All the pictures are showing on the site.

 

Now, the new pictures follow this path: ayurvedayogashop.com/images/pictureX.jpg but the old pictures (the ones that were uploaded before the move) say: ayurvedayogashop.com/images/images/pictureX.jpg!!

Any ideas on what is going on and if this is alright?

 

Thanks!

 

jailaxmi

 

Sorry, I forgot to mention that the images/images path is only showing in the index (ayurvedayogashop.com/index.php). Everywhere else the pictures seem to have the right path.

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

I was too slow...I see the answers to my questions now. Let me take another look :)

 

Did you get it fixed? I don't see any missing pictures. :huh:

 

I didn't notice the imagecache folder on any of your existing pics, either..

 

I did see some that were in images/images/thepic.jpg

 

and some others that were just in images/thepic.jpg

 

Either way, if you have an image folder within another image folder, the 2nd (inner) folder needs to have its permissions set too (755 if it works, or 777 only if you have to)

Link to comment
Share on other sites

On a closer look, I guess you have some sort of thumbnail contribution installed?

 

I would still say it probably has something to do with permissions on the image folder that you have inside of the other image folder? Were you able to check that?

Link to comment
Share on other sites

On a closer look, I guess you have some sort of thumbnail contribution installed?

 

I would still say it probably has something to do with permissions on the image folder that you have inside of the other image folder? Were you able to check that?

 

Thanks for your suggestions! I don't have any thumbnail contribution installed, but I found a second images folder inside the images folder and deleted it. It was just a repeat.

 

I hadn't noticed before my first post, but the images in the admin area are not showing! (they weren't even before I deleted the second folder). So if I upload an image for a product or category it says the file has been uploaded, but it doesn't show in the admin area, as it used to. I couldn't find anything in the admin/includes/html_output.php file with an error like I did in the main html_output.php, so I am not sure where this is coming from. It seems that there is some misconfiguration somewhere that is preventing the images folder to connect correctly with the admin area.

 

Any ideas?

 

Thanks!!!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

I hadn't noticed before my first post, but the images in the admin area are not showing! (they weren't even before I deleted the second folder).

Check your catalog/admin/includes/configure.php file

 

look for

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

 

this is the product/manufacturers/catagory image path for admin

 

scot

Link to comment
Share on other sites

Check your catalog/admin/includes/configure.php file

 

look for

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

 

this is the product/manufacturers/catagory image path for admin

 

scot

 

I checked and it is correct. Any other ideas?

 

Thanks!!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

If your admin is ssl secure you will need to use an absolute address in

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

scot

 

I don't think it is SSL secure. I don't even know how to make it SSL secure, but it says on the main admin panel that I am not protected by a secure SSL connection.

 

If I look at the "properties" of any broken picture in the admin area it shows the following path: ayurvedayogashop.com/home/user/public_html/images/picture.jpg and it also says that the size of the file is unknown becaus it is not cached.

 

Any ideas or suggestions?

 

Thanks!!!

 

jailaxmi

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

What happens when you try to upload a new picture in admin?

 

scot

 

I get the message "Success: File upload saved successfully" and the picture shows up in the images folder and on the site, but it doesn't show in the 'preview' or the product/category box in the admin panel.

 

Yol

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Double check this address in admin/configure.php and make sure it's correct

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

the address shown above is just a generic sample and yours is probably different, depending on your host, you can check with them to make sure it's correct.

However it should match whatever you have in : catalog/includes/configure.php

define('DIR_FS_CATALOG', '/home/user/public_html/');

except the final /admin/ part of the path.

 

If this doesn't work post both configure.php files without database, and password, etc.

 

scot

Link to comment
Share on other sites

  • 2 weeks later...
Double check this address in admin/configure.php and make sure it's correct

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

the address shown above is just a generic sample and yours is probably different, depending on your host, you can check with them to make sure it's correct.

However it should match whatever you have in : catalog/includes/configure.php

define('DIR_FS_CATALOG', '/home/user/public_html/');

except the final /admin/ part of the path.

 

If this doesn't work post both configure.php files without database, and password, etc.

 

scot

Hi Scot,

 

I hadn't had a chance to reply until today, but I really appreciate you tryint to help me here. Here is my includes/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://ayurvedayogashop.com'); // eg, http://localhost - should not be empty for productive servers

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

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

define('HTTP_COOKIE_DOMAIN', 'ayurvedayogashop.com');

define('HTTPS_COOKIE_DOMAIN', 'ayurvedayogashop.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/username/public_html/');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'db_username');

define('DB_SERVER_PASSWORD', 'db_password');

define('DB_DATABASE', 'database');

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

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

?>

 

And here is the admin/includes/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://ayurvedayogashop.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://ayurvedayogashop.com');

define('HTTPS_CATALOG_SERVER', 'https://ayurvedayogashop.com');

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

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

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

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

define('DIR_WS_CATALOG', '/home/username/public_html/'); // absolute path required

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

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', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'db_username');

define('DB_SERVER_PASSWORD', 'db_password');

define('DB_DATABASE', 'database');

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

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

?>

 

Any ideas?

 

Thanks!

 

Yol

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Hi Yol

 

It looks like you are set up on a shared server is this correct? If so, the addresses you have set for fot https. are for dedicated server/certificate. If you are on a shared server ask your host what the correct address path is for ssl.

In addition try the following changes:

Admin/includes/configure.php

define('DIR_FS_DOCUMENT_ROOT', '/home/username/public_html'); // remove forward slash at end (after public_html)

define('DIR_WS_CATALOG', '/'); // remove everything but forward slash

 

scot

Link to comment
Share on other sites

Hi Yol

 

It looks like you are set up on a shared server is this correct? If so, the addresses you have set for fot https. are for dedicated server/certificate. If you are on a shared server ask your host what the correct address path is for ssl.

In addition try the following changes:

scot

That last change did the trick!!! Thanks so much!!! I really appreciate all your help.

 

Yol

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...