Zen Cart Logo
Forums / General Questions / Images not showing in IE 8 under admin account

Images not showing in IE 8 under admin account

Locked

Views: 1,733

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
18 Jun 2010, 7:06 PM
#1
mduros avatar

mduros

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

Images not showing in IE 8 under admin account

Hi I am new at this so please bear with me. I have searched the FAQ and forum thoroughly and tried to implement some fixes even though they didn't really apply to our problem. And no they did not fix them.

Our ZenCart store was compromised several months back. I cannot tell you the version number, but that it had not had security updates in awhile. My friend then asked me to handle the security and updating of the store on a regular basis. So, this is when I came in and I really don't know any more on the history or the setup of the site or store configuration. The former webmaster is fixing all of this up for the store owner. I am just making sure that it is patched, secure and functioning properly. So in the future I'll know far more about it.

The store is the current version 1.3.9 I think it is, and has customized categories, products and images. It does not reside under the main site directory but within a store directory. I have already renamed the admin file and made the necessary changes to the mysecretadminname /includes/configure.php file. The store by all appearances was set up and functioning properly, however, when the store owner logged into the admin panel and gave me the password we discovered that the the admin screen does not show the product images, but shows a broken image in IE 8. It works fine for me and I use Firefox. Since the store owner uses and wants to continue using IE 8 I need to fix this glitch.

The store is located here: http://almostnaturalfishfood.us/
Thank you so much for any help you can give me. I have spent hours looking at faqs and help files and tweaked the code in several places trying to fix this but nothing works.
Take care,
Mary.

18 Jun 2010, 7:36 PM
#2
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

Mary,

what is your /admin/includes/configure.php file. Can you post the information without your database information?

19 Jun 2010, 4:17 AM
#3
mduros avatar

mduros

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

This is my most current version. I have been taking /store out, putting it back in, etc. Doesn't make a difference in IE either way. Always shows correctly in Firefox. IE seems to be wanting to see the images at /store/***/images but the correct image folder is /store/images/

Is it possible that the actual images need to be under /store/***/images? I haven't tried that for fear that it would break the proper viewing in Firefox.

I hope you can follow the text below. And that it is enough to tell what I am doing wrong. I am weary about posting any identifiable information due to the past hacking.

Thanks for any guidance you can give me.
Mary.

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** 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. ***********/ // 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 ... // 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_ADMIN', '/store/***/'); define('DIR_WS_CATALOG', '/store/'); define('DIR_WS_HTTPS_ADMIN', '/store/***/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); I have also tried: define('DIR_WS_ADMIN', '/***/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', '/***/'); 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) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN', '/home/accountname/public_html/store/***/'); define('DIR_FS_CATALOG', '/home/accountname/public_html/store/'); And: define('DIR_FS_ADMIN', '/home/accountname/public_html/***/'); define('DIR_FS_CATALOG', '/home/accountname/public_html/'); 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/');
19 Jun 2010, 4:36 AM
#4
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

Ok, try this change this:

define('DIR_WS_ADMIN', '/store//');
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_ADMIN', '/store/
/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

to this:

define('DIR_WS_ADMIN', '/store/admin/');
define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_ADMIN', '/store/admin/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

let me know if it works

20 Jun 2010, 12:37 AM
#5
mduros avatar

mduros

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

Thanks so much for the suggestion. But that did not work. In fact, I couldn't get to the admin panel after I did that. It suggested that I check the configure.php file, etc. Here, I am attaching a couple of screenshots of the catalog category/product view in both IE and Firefox. I am not even sure if FF looks right since I have never been in this program before. I was hoping to get this done for him soon, but I am thinking that I need to get the book maybe to see screen shots of what it should look like. I have just been assuming that Firefox is showing everything properly. Thanks!
Take care,
Mary.

20 Jun 2010, 2:48 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Images not showing in IE 8 under admin account

They are not showing in either ... they are just not showing "louder" in IE so that you see the errors standout on the images ...

I am not sure why your images are not showing, click right on the red X in IE and see what it says on the path and filename that it is trying to load ...

Can you load the file directly in the browser?

Is it actually on the server in the path where it is being called from?

20 Jun 2010, 3:40 PM
#7
mduros avatar

mduros

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

Yeah, I have looked at the path. They are not looking for the folder in the right place. I only have a minute here, so they are looking for them in xxx/images rather than images/xxx. I am thoroughly perplexed by this, though my understanding of this particular program is lacking, I do know the basics here and how to change config files to make them work, etc. I did find a screen shot of how the category page is supposed to look last night so see that it is not drawing properly in either browser. Later today I am going to try to copy the images into the directory that the browsers keep on wanting to see them in and see if that fixes it. If not, I'm going to do a reinstallation of ZenCart which I probably should do anyway to learn how this program is set up, and how it should look. I installed it on my website to try it out but since it didn't have any "live" data, etc. the experience wasn't as fruitful as I had hoped. I am still a little lost here... :)
Take care,
Mary.

20 Jun 2010, 4:02 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Images not showing in IE 8 under admin account

If you could post your configure.php files, from the server, without your username, password or admin directory name here for:
/includes/configure.php

/admin/includes/configure.php

we can look to see if there is anything obvious with the configure.php files ...

20 Jun 2010, 11:01 PM
#9
mduros avatar

mduros

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

Below is the text from both configure.php files. I hope this helps. Thanks so much everyone!
Mary.

STORE/INCLUDES/CONFIGURE.PHP

<?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** 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://www.almostnaturalfishfood.us/'); define('HTTPS_SERVER', 'https://www.almostnaturalfishfood.us/'); // 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', 'store/'); define('DIR_WS_HTTPS_CATALOG', 'store/'); 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', '/home/accountname/public_html/store/'); 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', 'zen_'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'mysecretdatabaseun'); define('DB_SERVER_PASSWORD', 'mysecretdatabasepwd'); define('DB_DATABASE', 'mysecretdatabase'); // define('DB_DATABASE', 'mysecretdabase3'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // 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', '/home/accountname/public_html/store/cache'); // EOF STORE/ADMIN/INCLUDES/CONFIGURE.PHP <?php /** * @package Configuration Settings circa 1.3.8 * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ /*************** 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. ***********/ // 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 * * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following: */ define('HTTP_SERVER', 'http://almostnaturalfishfood.us'); define('HTTPS_SERVER', 'https://almostnaturalfishfood.us'); define('HTTP_CATALOG_SERVER', 'http://almostnaturalfishfood.us'); define('HTTPS_CATALOG_SERVER', 'https://almostnaturalfishfood.us'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); define('ENABLE_SSL_ADMIN', '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_ADMIN', '/store/mysecretadmin/'); define('DIR_WS_CATALOG', '/store/'); define('DIR_WS_HTTPS_ADMIN', '/store/mysecretadmin/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); 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) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN','/home/accountname/public_html/store/mysecretadmin/'); define('DIR_FS_CATALOG', '/home/accountname/public_html/store/'); 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', 'zen_'); define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', 'mysecretdatabaseun'); define('DB_SERVER_PASSWORD', 'mysecretdatabasepwd'); define('DB_DATABASE', 'mysecretdatabase'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'db'); // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage // 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', '/home/accountname/public_html/store/cache'); // EOF
21 Jun 2010, 12:49 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Images not showing in IE 8 under admin account

First ... the URLs should not have the trailing slashes ... example, these:

define('HTTP_SERVER', 'http://www.almostnaturalfishfood.us/');
define('HTTPS_SERVER', 'https://www.almostnaturalfishfood.us/');

should be changed to:

define('HTTP_SERVER', 'http://www.almostnaturalfishfood.us');
define('HTTPS_SERVER', 'https://www.almostnaturalfishfood.us');

These, should have the slashes:

define('DIR_WS_CATALOG', 'store/');
define('DIR_WS_HTTPS_CATALOG', 'store/');

and should be:

define('DIR_WS_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');

21 Jun 2010, 5:11 PM
#11
mduros avatar

mduros

New Zenner

Join Date:
Jun 2010
Posts:
9
Plugin Contributions:
0

Re: Images not showing in IE 8 under admin account

Thanks everyone! Well, after all of the great tips and suggestions failed, I worked a bit with my test site last night and came to the conclusion that the site configuration just would not find the images where they were located. How and why it was configured that way we don't know, it could have been done while we were cleaning up the site from being hacked, etc.? Maybe it was a by-product of the site being compromised...? But in the end I fixed the problem by copying the contents of the store/image directory into the store/"admin"/image directory. Everything appeared as it should be after I did this with no additional tweaking of the configure file.

I'm sure I'll be back with more questions and participate once I get a grasp on things. Thanks so much again!
Take care,
Mary.

21 Jun 2010, 8:42 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Images not showing in IE 8 under admin account

You should really try to find out what is wrong with your site as that is not how Zen Cart works ... :unsure: