This Help forum is for issues relates to the latest release (1.7.0/1). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page:
  • 1

TOPIC:

undefined function imagecreatefromjpeg 5 years 9 months ago #1

  • frogola
  • frogola's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
After upgrading to 1.7.1 from 1.3.2 the media files didn't display, which was expected per media firewall article, so I copied them from backup to the new location data/media.

Now when I click 'Manage media' in control panel it pops a DataTables ajax warning. I found the following error in the nginx log:

"2015/07/25 01:20:48 [error] 65#65: *243 FastCGI sent in stderr: "PHP message: PHP Fatal error: Call to undefined function Fisharebest\webtrees\imagecreatefromjpeg() in /usr/share/nginx/html/webtrees/app/Media.php on line 199" while reading response header from upstream, client: 76.121.136.16, server: www.mrmr.pro, request: "GET /webtrees/admin_media.php?action=load_json&files=local&media_folder=media/&media_path=&subfolders=include&draw=1&columns%5B0%5D%5Bdata%5D=0&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=true&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=1&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=false&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=2&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=true&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&order%5B0%5D%5Bcolumn%5D=0&order%5B0%5D%5Bdir%5D=asc&start=0&length=10&search%5Bvalue%5D=&search%5Bregex%5D=false&_=1437787248784 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "www.mrmr.pro", referrer: "www.mrmr.pro/webtrees/admin_media.php?fi...media%2F&media_path="

Site info:
url: www.mrmr.pro/webtrees
server: nginx with php5-fpm in docker container
database: mariadb in separate docker container

I tried looking for a place to set the media folder location in webtrees control panel but did not see any such item. Assuming webtrees/data/media is the default. The 'undefined function' error seems unrelated to the media files location.

-Frank

Please Log in or Create an account to join the conversation.

undefined function imagecreatefromjpeg 5 years 9 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14506
I guess your server does not have the php-gd library.

Without it, you cannot create thumbnail images.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

undefined function imagecreatefromjpeg 5 years 9 months ago #3

  • frogola
  • frogola's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 15
Bingo. Thanks for your help.

Please Log in or Create an account to join the conversation.

undefined function imagecreatefromjpeg 5 years 6 months ago #4

Helped me, too. Thank you fisharebest!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum