Support » Plugin: WP Photo Album Plus » [Plugin: WP Photo Album Plus] Fatal error: Call to undefined function imagecreatefromjpeg()

  • I get this message when i try to upload picture.

    Fatal error: Call to undefined function imagecreatefromjpeg() in /home/user/public_html/blog/wordpress/wp-content/plugins/wp-photo-album-plus/wppa_class_resize.php on line 183

    I checked line 183 and all it says is:

    * @Param-1: strPath – String – The path to the image

    Any advice?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    line 183 of wppa_class_resize.php reads:

    return imagecreatefromjpeg($strImagePath);

    It is obvious that the php you run does not contain the function imagecreatefromjpeg().

    What is your php version? You can see that at the top of the Photo Albums -> Settings screen.
    It should be 4 or higher.

    Note from the php documentation:

    Note: JPEG support is only available if PHP was compiled against GD-1.8 or later.

    Check this with your hosting provider.

    Thanks for getting back. I checked my PHP. It’s current version is 5.2.9. How can tell if my PHP was complied against GD 1.8 or later? And is it possible to add the function imagecreatefromjpeg()?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The function imagecreatefromjpeg() is an internal function of php, so it can only be added by upgrading the php version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Fatal error: Call to undefined function imagecreatefromjpeg()’ is closed to new replies.