• Resolved RabidaInternetagentur

    (@rabidainternetagentur)


    Can you maybe help me with my image upload Problem?
    Yesterday i could write posts and upload images without problems. Today i got the email that my wp blog was updated to 4.2.2 and now there is the problem, that all images no matter which filetype / filesize are unable to read.

    Please help.

Viewing 10 replies - 31 through 40 (of 40 total)
  • I’ve two freshen LAMP installation:

    pc A: Debian 7, PHP 5.4.41, WordPress 4.2.2

    pc B: Debian 8, PHP 5.6.9, WordPress 4.2.2

    When I try to upload an image in WordPress via Media->AddNew (media-new.php):

    on pc A OK

    on pc B I’ve got the error ‘The uploaded file was only partially uploaded’

    I put an ‘error_log’ in wp-admin/media-new.php at line 27 and I verify that the $_POST variable is empty:

    error_log(’empty($_POST)=’ . var_export(empty($_POST),true));
    if ( $_POST ) {
    $location = ‘upload.php’;
    if ( isset($_POST[‘html-upload’]) && !empty($_FILES) ) {

    Is a PHP problem?

    EDIT

    I’ve noticed that the problem is the size of file to upload.
    If the file size is less then 8k then it’s ok in pc A and pc B.
    If the file size is over 8k then in pc A is ok but not in pc B.
    After reading many articles, I’ve modified the php.ini file in /etc/php5/apache2filter folder in pc B:

    upload_max_filesize = 20M
    post_max_size = 80M
    memory_limit = 128M

    Restart apache service.
    But the problem remains.

    I’ve also modified the apache2.conf in /etc/apache2 adding:

    LimitRequestFieldSize 5242880
    LimitRequestLine 5242880
    LimitXMLRequestBody 0

    But the problem still remain.

    Where is the problem?

    Hello-

    Same problem here as giorand.

    Debian 7.8
    PHP 5.4.41
    WordPress 4.3
    Image uploads work perfectly

    Debian 8.1
    PHP 5.6.9
    WordPress 4.3
    Image uploads are completely broken

    The WordPress installation is brand new, no plugins, etc.

    Has anyone figured out what the problem is with Debian’s PHP version and WordPress?

    I’ve tried to recreate the LAMP pc B reading this article.

    The section ‘Moduli aggiuntivi’ invite to install many PHP modules (if necessary).
    I don’t install any module, and now WordPress works perfectly.

    I have tried by downgrading wordpress version but still am not able to upload image.

    Hi,

    Same problem here with php 5.6 and wordpress 4.3
    Not able to upload files beyond 5 KB

    Anyone found a solution for that ? (already tried everything ion this thread except a complete reinstall…)

    Thank you

    I’ve removed php 5.6 and reinstalled php 5.5 instead and it’s now working as before.
    When I replaced php 5.6 , apache2filter was removed too (so my php.ini config file is no longer /etc/php5/apache2filter/php.ini but /etc/php5/cli/php.ini), I don’t know if it could be related to the issues I had (file upload and articles truncated when published) but now it works.

    I contacted my host, [moderated] (who are amazing – highly recommend – solved it in 5 minutes) and this is an exact quote about what caused the issue for me – might be the same for you:

    “Yeah! So it looks like the [wordpress] update messed up what’s called the .htaccess file (it basically tells the web server software some specific options for a site/folder). It was blocking all image files, but he’s removed that part of the file so that they load.”

    Now everything is back up and happy…media library is there…images there…no more crap-tastic looking posts void of images.
    contact your host and save yourself the headache – and if what I’m reading about GoDaddy’s attitude is true, switch to a better host…5 minute fix. Thank you, [moderated] and good luck. I hope this helps some of you.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Please let’s not invoke a discussion about which hosting providers are better than others.

    I wasn’t invoking anything…merely responding to the people across all these very similar threads with very similar issues who have complained about the service they received from their hosts while trying to deal with this monster of a nuisance the latest WP update has caused. So you moderate my comment which provided a positive response/possible solution to the issue and thanking the host that solved the problem but you leave the posts (including the use of GoDaddy in mine) that name and shame their hosts for bad behavior and poor customer service untouched. So we can talk crap about a company but not say something nice about another?

    Not trying to pick a fight, go off topic, cause a problem or invoke anything but now I am asking for consistency from the mods. If you’re going to edit my post for mentioning a host in a thread then you should edit them all in every thread, good, bad or otherwise,…because there are many out there and singling out one person who was trying to be helpful is far from consistent.

    Regardless, I hope my solution works for others and that they’re able to get the issue resolved painlessly and quickly rather than pulling their hair out trying to desperately find a solution…and hopefully WP will do something on their end to repair this issue with their update.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Simple, don’t talk crap about a hosting provider to begin with.

    The original poster’s issue was resolved a long time ago. If this solution hadn’t worked for you then you were not facing the same issue. You can create a new thread to discuss your own issue.

    Our Server was running PHP 5.3 – after an upgrade to PHP 5.5 it solved all errors.

Viewing 10 replies - 31 through 40 (of 40 total)
  • The topic ‘Image Upload Error after Update to 4.2.2’ is closed to new replies.