• isaacschlueter

    (@isaacschlueter)


    I’ve found a few posts here in the forums that mentioned it taking a really long time to save entries.

    I’ve observed this on my own system. To test it out, and see just *how* long is a long time, I saved an entry on Tuesday afternoon, and it hung. I resolved to leave that tab un-touched in FireFox until it finished.

    After about 10 seconds of waiting (possibly less), it was visible on my site.

    There were a few pings that it had to send. It seemed like those happened after about 1-2 minutes. I visited the sites that I had referenced, and my pingbacks were there in the comments.

    It’s Friday at 5:00 pm, and the tab still says “loading” with the little turning icon.
    ??

    Here’s what I’ve noticed that seems to affect the problem:

    1. If I save a draft or “Save and continue editing”, then any subsequent saves will take forever – even after it’s been published, if I edit the entry to correct a spelling mistake, it’ll never finish saving.
    2. If I save a post as private, then any subsequent saves will take forever.
    3. If I just save it as published right off the bat (which I don’t really like to do, because I prefer to have the chance to re-read an article after I write it), then it takes less than 30 seconds to finish, and all the pings go out fine.

    I tried disabling all of my plugins and then testing again, and after 3 hours of waiting for it to finish, I gave up and figured it was a lost cause.

    So, I’m pretty sure that it’s not a plugin. I’m positive it’s not pings (since those happen just fine in the first minute or less of processing.) Also, I’ve used pings/trackbacks in b2evolution, and it never took longer than a minute or two.

    I think that there is a bug in the WordPress code that leads to an infinite loop if a post is re-saved after being saved as draft or private. (I’m not saying this to criticize or anything, WordPress is lovely and I love it. But I think this is a bona fide bug, not just a slow server or problematic ping or blargy plugin.)

    I’d love to help dig into the problem, and if any devs would like to log into my system to test it out if you can’t repro the problem, just let me know and I’ll make you a login. I just really don’t know where in the code to look to trace through the process. Even a pointer as to where the problem *might* be would be very very helpful. It must be after the pings and database stuff happens. Is there a loop somewhere that it can’t break out of?

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

    (@estjohn)

    Strngely enough mine does that. But if I wait 5 seconds even while it is saving, i can hit the back button, refresh the site and it is there.. even though it seemed to never finish saving.. Mine also responded really sluggish wne I added a lot of pinging sites to options/ writing / update services. I stripped it down to all but 3 and it seemed to go back to normal when creating and saving or editing and saving

    Thread Starter isaacschlueter

    (@isaacschlueter)

    The only pinging site that I have is pingomatic, the default.

    It doesn’t really matter, though. I can turn off pings and plugins, and save a draft with 3 words in it, then publish that draft, and it’ll still be “saving” into next week.

    I’m completely stumped. The only thing that I can think to do is to walk through the code line by line looking for loops that might not be breaking properly, but it’ll take a really long time since I’m not that familiar with that part of the code, and it’s time that I really don’t have.

    :\

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Saving takes forever (well, not forever, but more than a few days)’ is closed to new replies.