Re: JPATH_SITE.DS missing / in the link

Plezi
Plezi
Offline
0
I just moved my site to another server. All is working fine except the path for my thumb pic which are not loading. I am wondering if you guys can help me out with this issue..

JPATH_SITE.DS is missing a / which prevent my thumb picture to load. Here's the code for the image
components/com_muscol/helpers/image.php?file=' .JPATH_SITE.DS.'images'.DS.'artists'.DS. $file .'&width=' . $width .'&height=' . $height ;
and this is what it's showing for the thumb link
components/com_muscol/helpers/image.php?file=/var/www/vhosts/example.comhttpdocs/images/artists/1289453943_t-vice.jpg&width=282&height="..

/ is missing between example.com and httpdocs. How can I place that / there?

Thanks
Responses (15)
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Sunday, August 12 2012, 03:45 PM - #Permalink
    0
    Anyone? I know I don't have a subscription now but I did at one point :P I just to need to know how to fix this simple task. Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, August 12 2012, 04:03 PM - #Permalink
    0
    hello

    this is very strange... JPATH_SITE is a joomla defined variable.

    if it's not there, it means there's something wrong with your joomla installation!!

    is it a new joomla installation?
    maybe you should reinstall...
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Sunday, August 12 2012, 04:55 PM - #Permalink
    0
    Thank you for the reply. I just moved my site to a dedicated server. transferred all my files and database. All is working fine except for the thumbs for artists are not showing. Not sure why...
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 13 2012, 11:32 AM - #Permalink
    0
    can't tell if I don't see it, really...

    please remember your subscription is no longer active...! :S :)
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Monday, August 13 2012, 11:55 AM - #Permalink
    0
    :laugh: I know germi. I plan to get the latest update for my site but for now I want to get this minor thumb broken link working to get started

    here's the link in case you wanna take a look at it.
    http://www.plezilakaytv.com/index.php?option=com_muscol&view=artists&layout=detailed&Itemid=436

    Many thanks.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 13 2012, 12:01 PM - #Permalink
    0
    well apparently the problem is that the thumbs are pointing here...: "..........pltvradio.comhttpdocs.........."

    and clearly there's a / missing, it should be:

    "..........pltvradio.com/httpdocs.........."

    it looks like the JPATH_SITE is missing a "/"character!
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Monday, August 13 2012, 12:05 PM - #Permalink
    0
    This is where I am lost. I don't know how to add / in between from JPATH_Site.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 13 2012, 12:08 PM - #Permalink
    0
    that's the problem: you shouldn't add it! it should be there! there's definitely somehting wrong here...

    well, in any case, you can always manually add it to the helpers.php file
    /components/com_muscol/helpers/helpers.php nlook for the getArtistThumbnailSrc function
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Monday, August 13 2012, 12:12 PM - #Permalink
    0
    I have tried this in helper.php .JPATH_SITE.'/images/artists/'.$file .'&width=' . $width .'&height=' . $height

    Still get the same error
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 13 2012, 12:19 PM - #Permalink
    0
    you should replace the jpath for the real path, not remove the DS...
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Monday, August 13 2012, 12:31 PM - #Permalink
    0
    components/com_muscol/helpers/image.php?file=' ./var/pltvradio.com/httpdocs.ds.'images'.ds.'albums'.ds. $file .'&width=' . $width .'&height=' . $height ;

    I got a blank page with this one. What am I doing wrong? and thanks for helping out on this
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 13 2012, 02:37 PM - #Permalink
    0
    you're not doing this right.

    components/com_muscol/helpers/image.php?file=' .'/var/pltvradio.com/httpdocs'.ds.'images'.ds.'albums'.ds. $file .'&width=' . $width .'&height=' . $height ;
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Monday, August 13 2012, 04:32 PM - #Permalink
    0
    :( this one doesn't work either. It still shows the same link. no change
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 13 2012, 04:38 PM - #Permalink
    0
    then maybe some extra coding is needed.. this is weird, this is NOT a music collection fail, believe me! it's something wrong with the joomla installation... it's very strange that the JPATH_SITE variable is not well defined... I had never seen that.

    listen.. at this point I have to tell you to consider renewing the subscription. although it was no longer active, I tried to help you in anything I can because I understand this is not your fault... but if I have to go down on Joomla code to solve this, this is beyond the technical support I'm giving you now... so I really have to ask you to renew if you want me to log in into your site and take a look at all the joomla settings and everything...

    I hope you understand.. :) :)
    The reply is currently minimized Show
  • Accepted Answer

    Plezi
    Plezi
    Offline
    Monday, August 13 2012, 04:50 PM - #Permalink
    0
    I understand germi. You've been a great help when you didn't have to. I am going to subscribe this week for I need the latest update. Once again, thank you!
    The reply is currently minimized Show
Your Reply