Title: imagecreatefromstring() [function.imagecreatefromstring]:
Last modified: August 20, 2016

---

# imagecreatefromstring() [function.imagecreatefromstring]:

 *  [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/)
 * I have a Multiuse install with about 35 blogs – all are working fine
 * one though is giving me errors that started today… I cannot upload images or 
   add headers
 * when adding a header -I get the following msg:
 * Warning: imagecreatefromstring() [function.imagecreatefromstring]: Empty string
   or invalid image in /home/maindomain.com/public_html/wp-includes/media.php on
   line 254
 * I have researched all over…
 * I had my host increase the memory on php
    I have increased the memory for the
   blog with trouble I have host recompiling PHP and checking GD
 * what else could it be?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/page/2/?output_format=md)

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152428)
 * check the upload space on that blog.
    disable plugins on that blog. check and
   see if it put the image on the server and just didn’t make thumbnails.
 * check and try the same action on another site too.
 *  Thread Starter [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152432)
 * I checked the upload space and increased it to 50mb so only using around 8% now.
 * I disabled all plugins and tested it that way – still did not work
 * I tried on other sites and everything works fine.
 * I seems to have uploaded images and headers someplace – as when i was messing
   around – I found them and deleted them.. but you are right did not create a usable
   image that I could see
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152509)
 * Start reading error logs. 🙂
 *  Thread Starter [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152563)
 * error logs reveal nothing
    host rebuilt PHP and checked GD library
 * I chekced media.php file and nothing different there from new clean copy
 * still only affects one blog from 35
 * I tried again turning off all plug ins…
 * In a theme I can upload a background and that is fine
    but if I upload a header–
   with the option of edting thats where it errors
 * I can upload an image in a post or a pic -and it will put the pic in – but shows
   size 0x0 and i cant edit the pic-
 * I think has something to do with the imagecreate function in the media file –
   but after that thought -I dont know hwere to turn – any ideas?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152571)
 * Same theme as the others?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152573)
 * Try installing this plugin: [http://wordpress.org/extend/plugins/hotfix/](http://wordpress.org/extend/plugins/hotfix/)
 *  Thread Starter [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152587)
 * yes same themes, tried various ones – even default. Which worked previously
 * on themes that have background – can upload them.
 * it seems to be limited to this one blog and to images uploaded that can be edited(
   cropped)
 * will try plug in
 *  Thread Starter [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152588)
 * yeah did not think the plugin would help – and did not – the issues it addresses
   has nothing to do with images…
 * this is very common it seems – when I google entire error msg -TONS of sites 
   appear in google witht his error msg showing – I am so surprised I am only one
   reporting 🙁
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152590)
 * Actually the hotfix DOES have some impact on images (which is why I suggested
   it 😉 ). It was a shot in the dark, though.
 * What version of PHP and GD libraries are we using here?
 *  Thread Starter [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152591)
 * thanks was worth a shot…
 * PHP was recompiled by host – I cant recall version or find it easily – but um
   last I checked was latest version – 5?
 * GD Support => enabled
    GD Version => bundled (2.0.34 compatible) FreeType Support
   => enabled FreeType Linkage => with freetype FreeType Version => 2.4.4 GIF Read
   Support => enabled GIF Create Support => enabled JPG Support => enabled PNG Support
   => enabled WBMP Support => enabled XBM Support => enabled
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152596)
 * Do you know how to make a phpinfo() page? If so, can you make one and tell us
   where it is?
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152597)
 * If it was working previous and now its not… then something changed on the server.
   new plugins, new server settings… we need some details to go on.
 *  Thread Starter [talynndar](https://wordpress.org/support/users/talynndar/)
 * (@talynndar)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152607)
 * here is what shows in phpinfo – I think i did it right?
 * register_globals = off allow_url_fopen = off expose_php = Off max_input_time 
   = 60 variables_order = “EGPCS” extension_dir = ./ upload_tmp_dir = /tmp precision
   = 12 SMTP = relay-hosting.secureserver.net url_rewriter.tags = “a=href,area=href,
   frame=src,input=src,form=,fieldset=” [Zend] zend_extension=/usr/local/zo/ZendExtensionManager.
   so zend_extension=/usr/local/zo/4_3/ZendOptimizer.so rg_emulation=off
 * Andrea – i did test a few plugins since deleted, then uploaded new themes – but
   not using them. Have tried it with all plugins off, have cache turned off. used
   basic theme twenty eleven – which worked early in day to upload a new header,
   then stopped.
 * Host says no recent changes- because its only one blog of many its very confusing.
 * Its almost like the allocated space for the blog ran out – but I checked and 
   increased memory just in case 🙁
 * all help is very much appreciated
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152615)
 * > Its almost like the allocated space for the blog ran out – but I checked and
   > increased memory just in case 🙁
 * allocated space & memory are not the same thing.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 11 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/#post-2152616)
 * talynndar
 * You make a php page called ‘phpinfo.php’ or something and the content of the 
   page is:
 *     ```
       <?php
   
       phpinfo();
   
       ?>
       ```
   
 * Then give us the link. (I will note – leaving a phpinfo page up indefinitely 
   is a bad idea, but it can help a LOT for debugging).

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/page/2/?output_format=md)

The topic ‘imagecreatefromstring() [function.imagecreatefromstring]:’ is closed 
to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 17 replies
 * 4 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/imagecreatefromstring-functionimagecreatefromstring/page/2/#post-2152704)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
