Forums / Basic Configuration / Image not being added to products since using easypopulate

Image not being added to products since using easypopulate

Views: 2,184

Results 1 to 16 of 16
5 Apr 2013, 5:09 AM
#1
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Image not being added to products since using easypopulate

I attempted to install easy populate csv but the install failed and now when I add products the image is not being added. Also if I use filezilla to add a new folder for images the folder will not show up in zc admin. Help!!! I'm using zc 1.5.1:blush: on http://www.genuinepc.com
On the manufacturer selector select Lenovo and you will see the product with no image.

5 Apr 2013, 1:16 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image not being added to products since using easypopulate

Are you sure the image:
/images/acer/laptop_90x90.jpg

is on the server?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Apr 2013, 2:00 PM
#3
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

Ajeh:

Are you sure the image:
/images/acer/laptop_90x90.jpg

is on the server?

The images does not load when I add a product. When I use my ftp a look in the folder the image is not there and if I use the ftp tool to put the image there zc still does not display the image.

5 Apr 2013, 2:04 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image not being added to products since using easypopulate

Check that your directories and subdirectories:
/images
/images/acer

are writable ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Apr 2013, 3:10 PM
#5
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

Ajeh:

Check that your directories and subdirectories:
/images
/images/acer

are writable ...

Yes they are writable they are all 755

5 Apr 2013, 3:35 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Image not being added to products since using easypopulate

If you manually edit the Product for:
Lenovo Notebook 59359143 IdeaPad G585
/index.php?main_page=product_info&cPath=4_6&products_id=35

Do you see an image on the Preview?

If you look via FTP, do you see an image on the server for:
/images/133419.jpg

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Apr 2013, 3:47 PM
#7
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

No the image is not shown in the preview and no it is not on the server and if I manually put it on the using ftp it still does not show up on the product.

5 Apr 2013, 3:54 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Image not being added to products since using easypopulate

If this is affecting all products when you try to edit them in your admin, then it's possible that the cause is that you've been changing your configure.php file contents and the paths are no longer valid.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Apr 2013, 4:03 PM
#9
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

If I go to another product that has a working image I do see the image in the preview. If it is caused by the configure.php how do I fix it?

5 Apr 2013, 4:07 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Image not being added to products since using easypopulate

If you have two products which are behaving differently then it's a problem with your data (and that probably means your easypopulate imported it blindly without validation because it assumed you put the right data in your import source), so let's back up and compare EVERYTHING about those two products.

a) what EXACTLY is the image field set to in both?
b) does that image path exist on your server?
c) do the files actually exist on the server at that path?
d) what else is different between the two products, other than description/price?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Apr 2013, 4:22 PM
#11
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

a) the image field is set to image name (not sure if thats the answer you are looking for)
b) yes the image path does exist but If I add any new directories on the server inside the main image folder I cannot see the folder when I click the drop-down when adding or editing a product.
c) after attempting to add the image through zc no the image does not exist on the server. I have also tried to place the image there manually using my ftp tool successfully but the image still does not show up on the front end.
d) I don't have 2 exact products behaving differently. I attempted to install easy populate csv and after attempting that install every product I try to add appears like the one in question.

5 Apr 2013, 4:23 PM
#12
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

DrByte:

If you have two products which are behaving differently then it's a problem with your data (and that probably means your easypopulate imported it blindly without validation because it assumed you put the right data in your import source), so let's back up and compare EVERYTHING about those two products.

a) what EXACTLY is the image field set to in both?
b) does that image path exist on your server?
c) do the files actually exist on the server at that path?
d) what else is different between the two products, other than description/price?

Do you think I should try restoring from backup? I do have the a backup of everything including the database.

5 Apr 2013, 5:13 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Image not being added to products since using easypopulate

[email protected]:

a) the image field is set to image name (not sure if thats the answer you are looking for)
I was more interested in specifics of both products.

[email protected]:

b) yes the image path does exist but If I add any new directories on the server inside the main image folder I cannot see the folder when I click the drop-down when adding or editing a product.I'm not all that surprised. It doesn't show sub-sub-sub directories.

[email protected]:

c) after attempting to add the image through zc no the image does not exist on the server. I have also tried to place the image there manually using my ftp tool successfully but the image still does not show up on the front end.Those are two different issues. Even uploading the image separately makes no difference if you don't put it into the exact place you told Zen Cart to look for it.

[email protected]:

d) I don't have 2 exact products behaving differently. I attempted to install easy populate csv and after attempting that install every product I try to add appears like the one in question.You said you have some products that behave correctly, and others which do not.
I was asking about the difference between those two products (or maybe you'd rather I said "between those two scenarios"). Specifics are needed.

I'm pretty sure you're just not putting the right path in for the image. You CAN type in the path, without using the dropdown.

Also, what's the complete (except for passwords) content of both your admin and non-admin configure.php files? Post the content here.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Apr 2013, 6:02 PM
#14
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

DrByte:

I was more interested in specifics of both products.

I'm not all that surprised. It doesn't show sub-sub-sub directories.

Those are two different issues. Even uploading the image separately makes no difference if you don't put it into the exact place you told Zen Cart to look for it.

You said you have some products that behave correctly, and others which do not.
I was asking about the difference between those two products (or maybe you'd rather I said "between those two scenarios"). Specifics are needed.

I'm pretty sure you're just not putting the right path in for the image. You CAN type in the path, without using the dropdown.

Also, what's the complete (except for passwords) content of both your admin and non-admin configure.php files? Post the content here.

Admin Configure:smile:

<?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2013-01-10 12:59:06 */ /*************** NOTE: This file is similar, but DIFFERENT from the "store" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ /** * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN: * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries: */ define('HTTP_SERVER', 'http://genuinepc.com'); define('HTTPS_SERVER', 'https://genuinepc.com'); define('HTTP_CATALOG_SERVER', 'http://genuinepc.com'); define('HTTPS_CATALOG_SERVER', 'https://genuinepc.com'); // secure webserver for admin? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_ADMIN', 'false'); // secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes). define('ENABLE_SSL_CATALOG', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) $t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path']; define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); 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', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/'); //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/hermes/bosweb/web231/b2319/ipw.ntspbcom/public_html/zengpc/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/hermes/bosweb/web231/b2319/ipw.ntspbcom/public_html/zengpc/logs'); 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_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_CHARSET', 'utf8'); define('DB_SERVER', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'zengpc'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/hermes/bosweb/web231/b2319/ipw.ntspbcom/public_html/zengpc/cache'); // Define the webserver and path parameters // Main webserver: eg-http://www.your_domain.com - // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com // HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ // EOF **Non-admin Configure **:smile: <?php /** * @package Configuration Settings circa 1.5.1 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * File Built by zc_install on 2013-01-10 12:59:06 */ /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/ /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com define('HTTP_SERVER', 'http://genuinepc.com'); define('HTTPS_SERVER', 'https://genuinepc.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/hermes/bosweb/web231/b2319/ipw.ntspbcom/public_html/zengpc/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', '/hermes/bosweb/web231/b2319/ipw.ntspbcom/public_html/zengpc/logs'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_CHARSET', 'utf8'); define('DB_SERVER', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'zengpc'); // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/hermes/bosweb/web231/b2319/ipw.ntspbcom/public_html/zengpc/cache'); // EOF
5 Apr 2013, 10:52 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Image not being added to products since using easypopulate

Those look pretty much fine.

So, pick two products, one whose image appears as you expect it to, and one which doesn't.

What's the image path showing in your admin edit screen?
What's the actual path to the image according to your FTP server?
Then figure out the actual real URL to directly show the image ... such as https://www.example.com/images/fred.jpg ... for both, and post both of those here. I'm gonna click on that link, and if the link doesn't bring up an image, then that's something you'll need to fix before we go further, by uploading it correctly via FTP.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Apr 2013, 3:08 PM
#16
collin_ntspb_com avatar

collin_ntspb_com

New Zenner

Join Date:
Mar 2007
Location:
West Palm Beach, FL.
Posts:
95
Plugin Contributions:
0

Re: Image not being added to products since using easypopulate

DrByte:

Those look pretty much fine.

So, pick two products, one whose image appears as you expect it to, and one which doesn't.

What's the image path showing in your admin edit screen?
What's the actual path to the image according to your FTP server?
Then figure out the actual real URL to directly show the image ... such as www.example.com/images/fred.jpg ... for both, and post both of those here. I'm gonna click on that link, and if the link doesn't bring up an image, then that's something you'll need to fix before we go further, by uploading it correctly via FTP.

this is the path for the one that doesn't work (Image Name: lenovo/133419.jpg)
this is the one that does work (Image Name: acer/B113-M-6460.jpg)

I have to add all the images manually using ftp. The problem is not zencart, when I attempted to install easy populate csv it set off an error on my server so my host knows what the problem is and is working to fix it.

Thank you for all your help, your time is greatly appreciated.