• Resolved micharo

    (@micharo)


    Hi,
    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
    624

    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you post your site URL?

    Thread Starter micharo

    (@micharo)

    Sorry – no
    The site is under maintenance mode on a production server.
    But you cannot see anything there since the error show up in the wp-admin.

    Still need help!

    Sorry, without seeing your site I cannot tell you anything. The problem can come up for many reasons.
    Possibly, someone else may know, and tell you what’s happening. Wait for some time. Bye.

    Thread Starter micharo

    (@micharo)

    Hi,

    I could figure out my problem.

    add_image_size( 'orbit-custom', array( 'width' => 660, 'height' => 440 ) );

    During the development process we tested out different slider plugins. The above code was in the function.php of the child theme, but we used a different slider at the end and deleted the plugin but not this line of code.

    solved

    Glad to note that you solved the problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘media upload error’ is closed to new replies.