greengeek
greengeek
Offline
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.
Responses (15)
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Saturday, October 30 2010, 07:45 PM - #Permalink
    0
    Have you seen this issue before? Any ideas on a fix?
    The reply is currently minimized Show
  • Accepted Answer

    Ljupco
    Ljupco
    Offline
    Monday, November 01 2010, 02:20 PM - #Permalink
    0
    Same happens at my site ... simple fix for my problem was using Static images instead using Dynamic (backend MC parameters)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 01 2010, 02:59 PM - #Permalink
    0
    yes, 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
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Wednesday, November 03 2010, 01:45 AM - #Permalink
    0
    How would I go about doing option #2? It only is affecting this single module. I would hate to have all thumbnails in MC load slower, if only this module is having the problem.
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Friday, November 05 2010, 03:16 AM - #Permalink
    0
    Just an update. Option #1 does make the album artwork load. :) But you are right, it does take longer for the image to load. Instead of near instantly, it does take a second or two, so one can see each one load.

    Option #2 may be a better choice. What code would I need to change for option #2?
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Saturday, November 06 2010, 08:44 PM - #Permalink
    0
    Any updates on this?
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Wednesday, November 10 2010, 04:56 AM - #Permalink
    0
    Hello, any word on this?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 10 2010, 04:20 PM - #Permalink
    0
    hello 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
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Thursday, November 11 2010, 02:34 AM - #Permalink
    0
    Nope, 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
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 13 2010, 12:18 PM - #Permalink
    0
    yeessss you are 100% right

    on the helpers.php line 301 you also need to replace:

    JPATH_SITE

    for:

    str_replace("\\\", "/", JPATH_SITE)

    and that will solve it
    The reply is currently minimized Show
  • Accepted Answer

    greengeek
    greengeek
    Offline
    Saturday, November 13 2010, 09:07 PM - #Permalink
    0
    Cool, that fixed it. Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Eric
    Eric
    Offline
    Tuesday, November 16 2010, 04:34 AM - #Permalink
    0
    I 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/
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 16 2010, 10:26 AM - #Permalink
    0
    I think your configuration on this module is wrong.. what number of albums have you? put a small number.. like 10
    The reply is currently minimized Show
  • Accepted Answer

    Eric
    Eric
    Offline
    Tuesday, November 16 2010, 08:05 PM - #Permalink
    0
    i have it set to 10...same result??...I put everything back to the original installed state (helper.php 7 images.php), bro can you help me out my client wants that mod a couple places in the site so i'm stuck until I can get that going...

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Alexander
    Alexander
    Offline
    Sunday, April 17 2011, 05:05 AM - #Permalink
    0
    The reply is currently minimized Show
Your Reply