Jump to content

Recommended Posts

Posted (edited)

I can't get my thumbnails to work now because apparently:

Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/username/public_html/thumb.php on line 43

It's sooo incredibly important that I have this working for my website. It worked everyday I've checked the site until right now. If I can't generate these thumbnails, the site will look extremely ugly and I'll lose new visitors.

 

What is happening? Please help! :)

Edited by TCH-David
Posted

You need to submit a ticket to the Help Desk and ask them to recompile PHP with all of the options normally used on TCH servers. Looking at phpinfo() on your server, the 'Configure Command' section only shows the following:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--prefix=/usr' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--with-mysql=/usr' '--enable-discard-path' '--with-pear' '--enable-sockets' '--enable-track-vars' '--enable-versioning' '--with-zlib'
The server hosting my account shows the following:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--enable-wddx' '--with-zip' '--with-zlib'

The '--with-gd' option missing from your server's PHP configure command is why the imagecreatefromjpeg() function does not work on your server now, but as you can see above, your server is missing a lot more than that. The Help Desk should be able to quickly take care of this once you bring it to their attention.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...