• Resolved luquiyahni

    (@luquiyahni)


    Hi, I’m setting up a wordpress site. I have it installed on localhost. Since yesterday I have been unable to upload files through the media uploader. When I select the file, it hangs on the “crunching” process. If I go to the media library I can see that it has uploaded successfully. If I use the browser uploader, there are no problems.
    I can also successfully upload a new header image, so I guess the problem is with the “processing” that happens after an image is uploaded.

    I have tried uploading jpgs, pngs, some really small (52px x 52px), and some bigger (400 x 250). Some were 4kb and some 120kb. Tried PDFs too.

    I have another wordpress installation on my localhost which works great.

    I have cleared my browser cache, have tried Chrome and IE, have disabled all my plugins, I have change in wordpress settings my media size to 2200 x 2200.

    Another “symptom” is that if I go to a post and use the add media, and then choose media library, it never shows the content. The loading circle keeps spinning forever, and nothing happens.

    Another important note, the theme I’m using was created by me and it’s my first theme, so maybe I made a change in the last couple of days that is affecting the uploading process?

    Well, thanks to anyone in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter luquiyahni

    (@luquiyahni)

    UPDATE: I did the only thing that I haven’t done yet: choose another theme. That fixes the issue, so the problem has to do with my own theme.

    Now my problem is that I have no idea what could affect the uploader.

    If someone has an idea for were to start looking… thanks!

    Thread Starter luquiyahni

    (@luquiyahni)

    UPDATE 2: The problem seems to be related to functions.php

    But I can’t figure out what is it. Here is the code from functions.php.

    First I have my sidebars. Then some other functions.

    If I delete everything BUT the sidebars, the uploader works correctly. If I add any other function (no matter which I choose), the uploader breaks.

    I’ll keep looking… any suggestion?

    Thread Starter luquiyahni

    (@luquiyahni)

    UPDATE 3: FIXED IT!

    The problem was the HTML comments on the functions.php file.

    I removed all of them and voila!

    Maybe that makes sense to anyone? Maybe the comments have to be in php format? Well, the important thing here is that this issue got fixed.

    Hopes this helps anyone.

    Thanks for sharing your updates! I had the exact same problem and was ready to pull my hair out. I would never have suspected my functions.php file. I removed all white spaces between <?php ?> tags and my upload started working again. Looks like what was breaking it was the non-PHP code including white spaces in functions.php.

    My fix on a 1and1 web hosting plan was to add a file called php.ini in the /wp-admin folder containing the following code:

    max_input_time = 60
    max_execution_time = 120
    upload_max_filesize = 64M
    post_max_size = 64m
    memory_limit = 256M
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Media upload hangs at crunching’ is closed to new replies.