PDA

View Full Version : Images Not Showing in IE6


joannet256841
08-11-2009, 09:52 PM
Hi,

I have implemented PowerCMS into a client's store and notice that images that are uploaded via the system are not showing in IE6.

I have applied the updated config file, but this hasn't solved the issue.

Here are some of the settings in the WA_Globals.php file:

$WAGLOBAL_localRoot = "/cms/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/cms/"; //relative path to your PowerCMS files on your remote server.

//iRite Images upload settings
$WAGLOBAL_Images_Folder = "../images/"; //relative path to your images folder.

The images are being uploaded into the main images file in the root of the server, which is how we want it.

In Firefox and IE7, the images are showing correctly and the reference is www.examplewebsite.com/images/image1.jpg.

However, in IE6, the image reference is showing as www.examplewebsite.com/../images/image1.jpg, and as such the images aren't showing (red x instead).

When I change the reference in the WA_Globals.php file to images/, images can't be uploaded anymore and the images folder that opens is part of the iRite editor. So the other images are not there, since they are in the images folder in the root of the server.

Can you please help?

Thanks

Jason Byrnes
08-12-2009, 12:57 PM
If the upload path is set to:
$WAGLOBAL_Images_Folder = "../images/"

it will add the ../ to the paths regardless of the browser that is being used.


it should not make a difference whether you are using IE 6 or 7. Do you have a link where I could see the problem to investigate what is going wrong?


If the image upload is failing with the upload path set to "images/", there is mot likely a permissions error on that directory. It could be set to read only or the permisins do not allow for write access.

joannet256841
08-12-2009, 11:46 PM
Thanks for your response.

When I changed the path to just images/, and changed the permissions on the appropriate images folder, it works perfectly.

Thanks!

Jason Byrnes
08-13-2009, 09:30 AM
Ok, great. glad to hear it is working.