• I have built a custom wordpress theme for someone, and a problem has emerged since upgrading to 3.0.1.

    I can upload pictures fine to his blog using the flash uploader from my computer. He can’t from his computer however. We both use OS X on a Mac. (I’m on 10.6.4, not sure what he is using).

    An “HTTP Error” is returned. The uploaded picture has a size of 0x0 pixels, uploads very quickly and appears very large in galleries (if at all).

    I have tried reinstalling 3.0.1.

    I have tried the image-upload-http-error-fix plug-in.

    He has updated to latest Flash player (same one I’m using), and has also tried to upload a picture from the same address using a PC.

    Still the error returns…

    Please help, as he is losing faith in WordPress…

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • This is a symptom of your server running WordPress on PHP4
    You need to turn on PHP5 on your server.

    Are you running wordpress on 1and1?

    Had a similar problem on Blacknight, WordPress was unable to write to the wp-content/uploads folder and add media, returned a http error. I went into my sites control panel and enabled PHP4 support as a CGI application. PHP5 was set to run as an Apache module. That did the trick.

    Dear davidizor,

    So I’m having the same problem on my wordpress as well. Everything was fine until this morning. Nothing changed that I know of, but I can no longer create new posts, upload pictures, or leave comments. My hosting company is 1and1. When I try and create a new post, usually after typing the title it will auto generate a permalink. It doesn’t now and when I try to save draft it just takes me back to my wordpress admin dashboard screen. When I try to upload images it gives me the HTTP Error in red. Finally when I try to comment on the posts it takes me to a 404 page error, and when I try to comment in the admin section of wordpress on user’s replies it shows a red number one in parenthesis next to the cancel button. Any help would be greatly appreciated. Thanks in advance.

    @careace

    see if this link helps

    Dear davidizor,

    Thanks for the quick response. I’m not the most advanced at WordPress, but would I find that .htaccess under the edit themes section of the site? and if so, I can’t see one in the theme files, so how would I go about creating one? If any of those are basic questions just say so and I’ll look on google to find how to do it so I dont waste your time. Thanks.

    careace,
    Here is a pre-made file that you can use, with directions on how to add it to your server.

    1. Download the file htaccess.txt to your desktop
    2. Remove the “.txt” depending on what operating system you have it may ask you if you want to remove the “.txt” click yes.
    3. With you FTP client, upload the renamed file to the directory where WP is installed
    4. once you successfully uploaded it to your server you will then need to rename it again to add a ” . ” at the beginning of the file name so it would read “.htaccess”

    if all went well, you should be able to use the media browser again..

    let me know how it goes..

    Cheers,
    Dave

    Dear Dave,

    So I’ve been trying to get ftp access to our site and just now as able to log on. Upon doing so I saw that we have both an .htcaccess file and a .htcaccess1 file.

    This is what the .htcaccess file had in it

    AddType x-mapp-php5 .php

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    and this is what the .htcaccess1 had in it

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    After adding the line of code to the .htcaccess file on the bottom, I tried to go to the admin page of our WordPress and got the following page:
    <?php
    /**
    * Dashboard Administration Panel
    *
    * @package WordPress
    * @subpackage Administration
    */

    /** Load WordPress Bootstrap */
    require_once(‘admin.php’);

    /** Load WordPress dashboard API */
    require_once(ABSPATH . ‘wp-admin/includes/dashboard.php’);

    wp_dashboard_setup();

    wp_enqueue_script( ‘dashboard’ );
    wp_enqueue_script( ‘plugin-install’ );
    wp_enqueue_script( ‘media-upload’ );
    wp_admin_css( ‘dashboard’ );
    wp_admin_css( ‘plugin-install’ );
    add_thickbox();

    $title = __(‘Dashboard’);
    $parent_file = ‘index.php’;
    require_once(‘admin-header.php’);

    $today = current_time(‘mysql’, 1);
    ?>

    <div class=”wrap”>
    <?php screen_icon(); ?>
    <h2><?php echo esc_html( $title ); ?></h2>

    <div id=”dashboard-widgets-wrap”>

    <?php wp_dashboard(); ?>

    <div class=”clear”></div>
    </div><!– dashboard-widgets-wrap –>

    </div><!– wrap –>

    <?php require(ABSPATH . ‘wp-admin/admin-footer.php’); ?>

    So I’m kind of stuck now, and due to my lack of knowledge of WordPress, don’t know where to go from here. Thanks so much again for helping.

    P.S. I also copied over the exact file that you gave me, and I got the same result of not being able to log into my admin dashboard and it returning that page of code that you can see above.

    careace,
    If you would like you can contact me directly at [email removed]
    I may be able to help you trouble shoot some more

    Davidizor advice sounds concise and easy to follow, however, i cant even get the htaccess folder i created to show up in FTP. You said to DOWNLOAD the file. The only 2 ways i could figure out how to do that was 1. click on it, it opens in a chrome page. If i drag it to my desktop it appears as a chrome file. 2. after it opens paste the contents into notepad and save it as htaccess on my desktop. either way the file doesn’t show in FTP. Right clicking the file name in your note above, does not give me a download option. can someone help me get past what must be obvious so i can try this fix?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘HTTP error on image upload’ is closed to new replies.