Skip Navigation

[Resolved] Warning: imagecreatefromstring(): Data is not in a recognized format

This thread is resolved. Here is a description of the problem and solution.

Problem:

View one of my listings, but recently this error started showing up:
imagecreatefromstring(): Data is not in a recognized format.

Solution:

PHP GD library supports BMP file type only after PHP version 7.2, so you will consider upgrade your webserver PHP version to 7.2 or above, see PHP document.

Relevant Documentation:

http://php.net/manual/en/function.imagecreatefrombmp.php

(PHP 7 >= 7.2.0)

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by michaelH-21 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1212728

I am trying to: View one of my listings, but recently this error started showing up

Link to a page where the issue can be seen: hidden link

I expected to see: No WARNINGS on the page.

Instead, I got: Warning: imagecreatefromstring(): Data is not in a recognized format in /home1/eliteev1/public_html/wp-content/plugins/types/vendor/toolset/types/embedded/views/image.php on line 486

This looks to show up multiple times, one per the number of images on the page. The images look properly and display, just errors show at the top of each listing.

#1212899

Hello,

The problem you mentioned above is abnormal, please try these:

1) Here is a document about Toolset "Server Requirements"
https://toolset.com/toolset-requirements/
Please make sure your webserver satisfy all requirements of above document

2) In case it is a compatibility problem, please deactivate other plugins(except Toolset plugins), and switch to wordpress default theme 2019, and test again

3) If the problem still persists, please provide copy(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1213187

I realized these images are .bmp files. When swapping for .jpg, this issue went away. Does Toolset not support this image type?

#1213539

Thanks for the details, PHP GD library supports BMP file type only after PHP version 7.2, so you will consider upgrade your webserver PHP version to 7.2 or above, see PHP document:

hidden link
(PHP 7 >= 7.2.0)

#1214016

My issue is resolved now. Thank you!