Album Thumbnail Not Appearing

0
Problem:

In the administrator section the album thumbnail image does not display.
Traced the problem to this:

function image($file, $alt , $image_attr){
if (is_array($image_attr)) {
$image_attr = JArrayHelper::toString($image_attr);
}
return 'img src="'.$file.'" alt="'.$alt.'" '.$image_attr.' /';
}


Solution:

function image($file, $alt , $image_attr){
if (is_array($image_attr)) {
$image_attr = JArrayHelper::toString($image_attr);
}
return 'img src="/'.$file.'" alt="'.$alt.'" '.$image_attr.' /';
}


helpers.php line 359. ( line 327 seems like it could have worked as well )

This is a bit of a hack.

---
Your bb code blocks are eating the image tag in the return method.
---

My question is has anyone else noticed this or did it somehow only happen on my system?
Responses (5)
  • Accepted Answer

    Sunday, April 01 2012, 10:44 AM - #Permalink
    0
    hmm.. no I have never noticed it.. hasn't happened to me..!

    so, could you solve it?

    are you working in a subdomain?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 01 2012, 04:22 PM - #Permalink
    0
    Instead of:
    components/com_muscol/helpers/image.php?file=/home/account/public_html/images/albums/img.JPG&width=40&height=

    We get:
    administrator/components/com_muscol/helpers/image.php?file=/home/account/public_html/images/albums/img.JPG&width=40&height=

    And of course :
    administrator/components/com_muscol/helpers/image.php does not exist so the image does not appear.

    Making the path absolute instead of relative fixed it. And no we are not on a subdomain.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 01 2012, 04:23 PM - #Permalink
    0
    wel.. ok! thanks for the heads up. I'll take a look at it right away.

    it's strange because on a preivous version we had solved a very similiar issue...! I'm surprised you found that again.. ! :S
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 01 2012, 04:28 PM - #Permalink
    0
    What if any information would you want from me? I initially had 2.2 then upgraded to 2.2.1 then to 2.3.

    The upgrade was performed with the joomla extension manager J 1.5.26.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 01 2012, 04:29 PM - #Permalink
    0
    ok thanks for the info!
    The reply is currently minimized Show
Your Reply