Attaching album picture

Ray George
Ray George
Offline
0
Hi,

I have read a couple of threads similar to this but I still can't see what I'm doing wrong. Uploading albums and creating songs works fine but the image doesn't seem to upload automatically. So tried to attach manually. I can preview the album image in \\\\site\\images\\albums fine (600*600) but when I try to attached using Primary Image (front sleeve, I can browse to the file and apply but when I hit save I get the following message.

Fatal error: Call to undefined function imagecreatefromjpeg() in /c/SHIPLEY/administrator/components/com_muscol/tables/album.php on line 163

When I view album using the admin backend all works fine,except where the image should be, this text displays - replaced sitename with "sitename" for security:

Warning: getimagesize(/c/"sitename"/images/albums/no_image.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /c/"sitename"/components/com_muscol/helpers/graphics.php on line 71

Hope you can help

Regards, Ray
Responses (3)
  • Accepted Answer

    Monday, July 02 2012, 10:50 AM - #Permalink
    0
    hello

    can you check that the GD library is enabled on your PHP server?
    The reply is currently minimized Show
  • Accepted Answer

    Ray George
    Ray George
    Offline
    Monday, July 02 2012, 04:47 PM - #Permalink
    0
    Hi,

    Thanks for the prompt - I'm using a Netgear ReadyNAS Duo as a personal webserver as well as a NAS and I've installed Apache and PHP5 and thought it included the GD library as I can already display pictures and videos. Don't have PHPAdmin installed but after your reply I re-checked the php.ini and to cut a long story short,once I ran "sudo apt-get install php5-gd" and restarted Apache, works fine. Great and thanks again for your fast response.

    Regards

    Ray

    :)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, July 02 2012, 06:49 PM - #Permalink
    0
    ahá!

    ok, great news then :) I'm happy it all ended OK.

    Germi
    The reply is currently minimized Show
Your Reply