0
I just added a bunch of album cover art using the Album Manager in the back end. It looks like all the cover art is showing up correctly in all pages and mods, except for the Random and featured albums module (charts) module. It is just giving me a "File not found" message in each of its boxes. I can still click on the link and it will go to the album page, and that page shows the cover art correctly.
What is interesting is the link it is using to show the cover art. It links it to this: http://MY-WEBSITE.com/components/com_muscol/helpers/image.php?file=C:webserverwwwimagesalbums88240790_500.jpg&width=150&height=
Any ideas? This is happening on both win7 and winxp and on both the latest versions of firefox and chrome. The webserver is a windows box running apache.
What is interesting is the link it is using to show the cover art. It links it to this: http://MY-WEBSITE.com/components/com_muscol/helpers/image.php?file=C:webserverwwwimagesalbums88240790_500.jpg&width=150&height=
Any ideas? This is happening on both win7 and winxp and on both the latest versions of firefox and chrome. The webserver is a windows box running apache.
Responses (15)
-
Accepted Answer
-
Accepted Answer
0yes, I've seen this once.
what happens is this:
the URL of the images (its a dynamic image) has this form:
/components/com_muscol/helpers/image.php?file=PATH_TO_YOUR_IMAGE
the thing is that, in WINDOWS, PATH_TO_YOUR_IMAGE will include "\" characters to separate directories (instead of UNIX's "/")
and, for some reason, it seems like some JAVASCRIPT code, related to JQuery, strips theese slashes, I dont know why. I had seen this behavior only once before.
now, to solve this.
we can try 2 things
1) MC 2.1 includes a new system to create thumbnails... but its completely disabled, and you cannot enable it on parameters. the only difference is that the URL for the thumbnails is created differently. it will avoid the windows problem, but the images can take a LITTLE longer to load (if a thumbnail loads in 0.1s, for instance, using this system may take 1.3s or something like that.). you can give it a try, if you want.
to ACTIVATE this new (BETA) thumbnail mode, you must open helpers.php, go to line 297 and you'll see:
$system = false ;
you must change for
$system = true ;
give it a try and let me know
2) option 2 is make a small modification on the current thumbnail mode to avoid this anoying "\" character problem in windows. if you want to try this one, let me know.
Germi -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0hello greengeek. sorry for delay; I was out.
ok here we go for option 2:
on helpers/helpers.php, line 301, there are three DS. replace it for "/"
now open helpers/image.php
line 12 you find this: $imageFile = $_GET['file'];
replace it for:
$imageFile = str_replace("/","\\\",$_GET['file']);
that should do the job...
but remember.. this will work ONLY for WINDOWS installations!!
let me know -
Accepted Answer
0Nope, that did not fix it. But it does look like it is getting closer to a fix.
Without fix, I get:
image.php?file=C:webserverwwwimagesalbums88240790_500.jpg&width=150&height=
With fix, I get:
image.php?file=C:webserverwww/images/albums/88240790_500.jpg&width=150&height=
What it needs to be:
image.php?file=C:/webserver/www/images/albums/88240790_500.jpg&width=150&height=
Looks like it is still missing the first few slashes in the file path. Any ideas where to change the code to add these?
Thanks -
Accepted Answer
-
Accepted Answer
0I tried option 1 & 2, but the images are still not showing up and the scrolling part is doing some weird stuff too...here is a link any suggestions??? http://inspiredsociety.com/soulradio/ -
Accepted Answer
-
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »