I get the following error when uploading a image:
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in xxx/wp-includes/media.php on line 1012
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in xxx/wp-includes/media.php on line 430
Warning: imagejpeg() expects parameter 1 to be resource, boolean given in xxx/wp-includes/media.php on line 461
I checked the values of the parameters of the imagecreatetruecolor() in the media.php
first request 150,150
second request 300,300
third request 1024,1024
fourth request 1,0
These are the values from the wp-admin ->Settings -> Media
But the last request has 1,0
I think this is the cause, but I cannot figure out why this is happen.
I also contacted the server admin and asked of any changes to the GD library - NO
Any help appreciated!