WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] media upload error (6 posts)

  1. micharo
    Member
    Posted 2 years ago #

    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!

  2. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Can you post your site URL?

  3. micharo
    Member
    Posted 2 years ago #

    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!

  4. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    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.

  5. micharo
    Member
    Posted 2 years ago #

    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

  6. Krishna
    Volunteer Moderator
    Posted 2 years ago #

    Glad to note that you solved the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic