Title: Call to undefined function imagecreatefromstring()
Last modified: February 10, 2017

---

# Call to undefined function imagecreatefromstring()

 *  [pete-sch](https://wordpress.org/support/users/pete-sch/)
 * (@pete-sch)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-imagecreatefromstring/)
 * Plugin version 3.2.0
 * Dear Support,
 * The plugin crashes the website when the metadata generation is enabled.
 * `[10-Feb-2017 16:22:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined
   function imagecreatefromstring() in /.../wp-content/plugins/wp-structuring-markup/
   includes/wp-structuring-display.php:220`
 * We use a GD free hosting, since **GD is not a requirement for a WordPress install**.
   Our site runs on ImageMagick, which is fully supported by WordPress.
 * I did not found any mention of the GD extension requirements in your descriptions,
   and I read all the Description, Installation and Other Notes sections.
 * Please rewrite the thumbnail generator code to match the WordPress standards:
 * [https://codex.wordpress.org/Class_Reference/WP_Image_Editor](https://codex.wordpress.org/Class_Reference/WP_Image_Editor)
   
   [https://bhoover.com/wp_image_editor-wordpress-image-editing-tutorial/](https://bhoover.com/wp_image_editor-wordpress-image-editing-tutorial/)
 * Or add a detection routine (function_exists) for GD to avoid website crashes.
 * Thanks,
    Pete

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [miiitaka](https://wordpress.org/support/users/miiitaka/)
 * (@miiitaka)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-imagecreatefromstring/#post-8792633)
 * Hi [@pete-sch](https://wordpress.org/support/users/pete-sch/),
 * Thanks for the bug report.
    Check the contents and fix it.
 * Please wait.
 * Thank you.
 *  Plugin Author [miiitaka](https://wordpress.org/support/users/miiitaka/)
 * (@miiitaka)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-imagecreatefromstring/#post-8828955)
 * Hi [@pete-sch](https://wordpress.org/support/users/pete-sch/),
 * Bug fixed Version 3.2.1 released.
    Please upgrade and try it.
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Call to undefined function imagecreatefromstring()’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-structuring-markup_a79c6f.svg)
 * [Markup (JSON-LD) structured in schema.org](https://wordpress.org/plugins/wp-structuring-markup/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-structuring-markup/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-structuring-markup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-structuring-markup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-structuring-markup/reviews/)

## Tags

 * [Crash](https://wordpress.org/support/topic-tag/crash/)
 * [gd](https://wordpress.org/support/topic-tag/gd/)
 * [imagemagick](https://wordpress.org/support/topic-tag/imagemagick/)
 * [wp_image_editor](https://wordpress.org/support/topic-tag/wp_image_editor/)

 * 2 replies
 * 2 participants
 * Last reply from: [miiitaka](https://wordpress.org/support/users/miiitaka/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/call-to-undefined-function-imagecreatefromstring/#post-8828955)
 * Status: not resolved