0
Problem:
In the administrator section the album thumbnail image does not display.
Traced the problem to this:
Solution:
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?
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
-
Accepted Answer
0Instead 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. -
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 »