WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
Fatal error: Call to undefined function imagecreatefromjpeg() (4 posts)

  1. dover88
    Member
    Posted 3 years ago #

    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?

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  3. dover88
    Member
    Posted 3 years ago #

    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()?

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic