Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • hello,
    my wordpress 2.5.1 suffer from the exact same problem you described. i tried many things, i even copied the whole linux-vserver (gentoo) running that wordpress (because its a production site, not good when you disable plugins on that) but on the copy, strange, the problem does not occur.

    i think its geerally related to load/traffic.

    any solution out there? i’ll post anything i might find.

    I ran into the same problem and fixed it (somewhat dirty) by editing wp-admin/includes/media.php, i changed the line 841 from

    $form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type=$type&tab=type&post_id=$post_id";

    to

    $form_action_url = "/wp-admin/media-upload.php?type=$type&tab=type&post_id=$post_id";

    this changes the upload form action-url from an absolute to a relative one, the (stupid) absolute url had https://.. (without s) hardcoded. this then leads to an uploading error when submitting the form, because apache rewrites the request and sends a code 302, which generates another request to the correct url (with s) but, strange, without POST data.

    see my fix as “worksforme”, there might be a better solution. for example to exclude /wp-admin/media-upload.php from being rewritten by apache (but then the uploads will not be transmitted securely).

    edit: this is for wordpress 2.5.1

Viewing 2 replies - 1 through 2 (of 2 total)