• Resolved Be Dark

    (@b_dark)


    I deactivated all of my plugins and I still have this problem!!! Why this happen with the new version ONLY?! If is in some themes the problem plz somebody the solution!!!

    After I upgraded the wp to 3.5, i can’t upload any photo! I am getting http error on the post every time I upload a image, and on “media>add new” it freezes on 100%.

    http://img201.imageshack.us/img201/8166/httperror.jpg

Viewing 15 replies - 1 through 15 (of 27 total)
  • Thread Starter Be Dark

    (@b_dark)

    Also, if i try to upload photo via browser uploader i get

    503 Service Unavailable

    The server is temporarily busy, try again later!
    Powered By LiteSpeed Web Server
    LiteSpeed Technologies is not responsible for administration and contents of this web site!

    Thread Starter Be Dark

    (@b_dark)

    This is my functions.php of my theme can you tell me where is the problem?

    I started uploading many photo sizes, at first I thought that it uploads without any http error those that were smaller in size. So, I compressed to a smaller size photos with big dimensions and it kept having http error. So I decided to upload photos with different dimensions and I saw the problem is with the dimensions of images.. specific any photo over than 511(width) i got http error , and any image uploaded less than 511(width) didn’t had any http error.
    So with simple logic thinking, the premium theme have incompatibility with wordpress 3.5 with the photo dimensions when you are uploading.

    [Excessive code moderated. Please use a pastebin]

    Thread Starter Be Dark

    (@b_dark)

    Thread Starter Be Dark

    (@b_dark)

    Please someone help me, I’ve tried everything!

    Sorry no one had a chance to help you before, did you try it with the 2012 theme activated or have you checked to see if your theme has released an update? 3.5 is much more strict about some javascript rules and caused some sites to break.

    Thread Starter Be Dark

    (@b_dark)

    hi Andrew Bartel,
    “did you try it with the 2012 theme activated ” I do not understand what do you mean.

    Thread Starter Be Dark

    (@b_dark)

    yes i have check and says me is ok with 3.5. but in my case i have problems with the theme and wp 3.5

    Thread Starter Be Dark

    (@b_dark)

    We find the problem , the problem is on

    line 131
    add_image_size('theme-thumb', 520, 497, true);

    lines 267-275

    if (function_exists('add_theme_support')) {
        add_theme_support('post-thumbnails');
        set_post_thumbnail_size(150, 250); // default Post Thumbnail dimensions
    }
    
    if (function_exists('add_image_size')) {
        add_image_size('post-thumb', 310, 9999); //300 pixels wide (and unlimited height)
        add_image_size('widget-thumb', 220, 180, true); //(cropped)
    }

    When we took them off it didn’t show any “HTTP error” when we uploaded a photo on media.

    on function.php of Twenty Twelve
    use

    // This theme uses a custom image size for featured images, displayed on "standard" posts.
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop

    without giving any “HTTP error”

    is strange, do you know why is this happening? And how can I fix it?

    This is the exact issue I am having. Did you find a solution?

    Thread Starter Be Dark

    (@b_dark)

    not yet :/

    For me it appears to be this line in particular:

    add_image_size( 'recent-posts', 98, 119, true );

    When I changed it to 100 pixels, it works again.

    add_image_size( 'recent-posts', 100, 119, true );

    edit: I have about 5 other add_image_size functions that work perfectly, just this one was giving me trouble.

    Thread Starter Be Dark

    (@b_dark)

    i don’t know why any of the wordpress developer team they haven’t answer yet, i think only them know the solution for this issue

    Hey,

    Ran into the same issue… did troubleshooting for the last several hours until I finally landed on the post thumbnail section in my functions.php being the issue. I wish I had a complete solution here, but I don’t, and I’m wondering if for some people if it’s a bug with their theme, or something that is messed up in WordPress 3.5.1…

    Let’s just say I did the most common sense things that are told to everyone on how to solve problems… ie deactivate/activate plugins, re-install the version of wordpress, etc. I went through and checked my javascript and jquery that I have manually installed (deleted the enques, uploaded image and got the same result as always: http error).

    I figured it’s something to do with my theme because the 2012 theme works wonderfully. Finally I deleted everything in functions.php. I then uploaded an image and it worked perfectly. From there, I went through trial and error of deleted each different section and then uploaded an image, but to no avail, still the same “http error”: jquery, navigation, sidebars, shortcodes didn’t work, until I got to post thumbnails… and this is where I am now…

    here is what my code looks like (this is what I believe causes the http error for me):

    // Featured Thumbnails
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 210, 210 );
    add_image_size( 'featured', 260, 260, true ); // Located on FRONT PAGE
    add_image_size( 'quicks', 160, 160, true ); // Located on FRONT PAGE

    Because when I take away the “true” in the add_image_size, everything uploads fine and no error.

    // Featured Thumbnails
    	add_theme_support( 'post-thumbnails' );
    	set_post_thumbnail_size( 210, 210 );
    add_image_size( 'featured', 260, 260 ); // Located on FRONT PAGE
    add_image_size( 'quicks', 160, 160 ); // Located on FRONT PAGE

    The solution of taking out the “true” would be fine if this was just my site, because I don’t mind cropping images to fit properly, but I don’t expect any clients to do the same. I’d much rather them be able to upload an image of any dimension and have wordpress crop it for them… isn’t that what makes wordpress (and other CMS’ special?).

    I’m wondering if this is the same issue that you guys are having, and if there have been any luck finding solutions. Would love to get to the bottom of this.

    Please post your own topics. Posting in an existing, resolved, topic actually prevents us from being able to track issues by topic. Added to which, your problems – despite any similarity in symptoms – may be completely different.

    Okay… my apologies… was just trying to help with whatever info I could.

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘HTTP Error on image upload after upgrade to 3.5’ is closed to new replies.