• Yes, I read the sticky post.

    Here’s my problem: (I have tried this in IE 7 and FF 2.0.0.13, and someone on another computer using Safari 3.1 tried too)

    1. I have a page with 56 attached images.
    2. I open the media uploader (by clicking on “add an image”), and tab over to “Gallery (56)”.
    3. I scroll down to the pictures at the bottom of the list (being the ones I uploaded first).
    4. I click “Show” to open the image information.
    5. I change the title(or anything else for that matter)
    6. I click on “Save all changes”.
    7. I wait for it to load (about 5 to 10 seconds).
    8. I scroll down to the image I just edited, only to find that nothing has changed. This happens when I try to edit any picture beyond the 37th one.

    Here’s what I have done to try to fix it:

    1. I reinstalled wordpress 2.5 (redownloaded the zip file, deleted the wp-admin and wp-includes directory, then uploaded all files, overwriting the ones in the root directory)
    2. I uploaded the fixed link-template.php file to the wp-includes directory (even though I wasn’t getting anny actual errors)
    3. I cleared my browser cache and restarted my computer… twice
    4. I updated flash
    5. I uploaded the IE fix (which did fix the javascript errors I had been getting in IE, but didn’t fix the 37th image problem)
    6. I disabled all plugins
    7. I added an .htaccess file to disable mod_security, following the directions in the sticky
    8. I tried on multiple installations of wordpress on two different hosting accounts (same server unfortunately)
    9. I swore profusely at my computer

    None of these things (not even number 9, suprisingly) have affected the problem even slightly. Is it possible that it’s an issue with my host? What kind of thing would cause that? The host is running Apache 1.3.39, PHP 4.4.7 and mySQL 5.0.45.

    If anyone has ANY ideas about what might be causing this, please feel free to speak up. I will not scoff at even the most ridiculous notions. I just want to get this fixed so I can edit more than the last 37 pictures on a page (BTW, I can edit them using the media library tab (since it only shows 10 per page), but it is annoying to scroll through my entire collection just to edit 10 pictures at a time).

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Stevish

    (@stevish)

    Update: I contacted my host, and so far, they have not found a fix.

    I have also tried a fresh install of WP and I have no php.ini files (something my host asked)

    Are there any php settings that could be causing the problem (like maximum upload size, register_globals, etc)?

    Thread Starter Stevish

    (@stevish)

    UPDATE: My host has officially given up. They do not have the time to go line-by-line through all the WordPress code to find out what they need to change. Does anyone have ANY ideas about what kind of settings on a server may be causing this problem?

    Thread Starter Stevish

    (@stevish)

    Thanks to all the people who have responded to this post, I’ve finally figured it out! Thanks a lot, I couldn’t have done it without you (Oh wait… I did do it without you).

    The answer seems to be in the max_execution_time setting. The server I am on is set to max_execution_time = 30, which apparently is too small for WordPress’ media uploader. I changed it to max_execution_time = 60 and everything has been working fine. I have tested it on up to 73 images (more than double what I used to be able to do).

    So the fix is to add this line to your php.ini file:

    max_execution_time = 60

    If you don’t have a php.ini file, make one that has this text in it:

    [php]
    max_execution_time = 60

    That’s it! Then upload it to your server (I’m not sure, but you may have to upload it to each folder that needs it, which, as far as I can tell, is only the wp-admin folder. Please someone correct me if I’m wrong).

    I’m going to post something on the trac to see if some WordPress coding can be changed in order to make it work with max_execution_time: 30, because the script that ran didn’t take anywhere near 30 seconds, so it seems to me that it’s not an issue involving timing out.

    Thread Starter Stevish

    (@stevish)

    Nope… I was wrong. Please stand by as I try to figure out the REAL issue.

    Thread Starter Stevish

    (@stevish)

    ok I found it. The WP image uploader doesn’t play well with the Suhosin extension. So if you are reading this because you’ve had this problem, ask your host if they are running the suhosin extension, and how you can disable it.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Could you give more details on how to disable it or how you made it work?

    Thread Starter Stevish

    (@stevish)

    First I had to get a copy of the php.ini file that my server used. I didn’t have direct access to it, so I wrote a script that got it:

    <?php
    $myFile = "/usr/local/lib/php.ini";
    $fh = fopen($myFile, 'r');
    $theData = fread($fh, filesize($myFile));
    fclose($fh);
    ?>
    
    <pre>
    <?php echo $theData; ?>
    </pre>

    I copy and pasted the whole thing into my own php.ini file.

    Then I searched through that for anything with “Suhosin” in it, and added a “;” before it (to comment it out. Deleting the line would work too).

    Then I uploaded it to my wp-admin directory.

    I think that’s it!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot edit pictures after number 37 in media uploader’ is closed to new replies.