• I’m experimenting with some alternate CMS systems, partly for fun, partly for… well, okay, JUST for fun. Anyway, I want to get my whole weblog into the new one, but it does not have a wordpress import plugin yet. As such, I wanted to do an export to rss2, which it does support, and then import that.

    The problem is, my web host does not allow me enough memory to succeed at this directly. I get an error “Allowed memory size of 41943040 bytes exhausted (tried to allocate 352203 bytes)” when I attempt to create an RSS feed with my whole blog in it. I don’t really have access to the controls on this host, so this memory limit is, as far as I’m able to determine, immutable.

    I tried forcing php to flush its output buffers after each entry, but that was not sufficient to save me, I still get the error beyond a certain number of entries. Things that I’ve read here and there on the net suggest that it might be WP loading the entire resultset into memory at once, which is too much for the PHP memory limit. Is there a way to force the backend to load entries in smaller chunks so that it can work with this memory limitation? I have about 320 entries, so it’s not a small chunk of text.

    Thanks!

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

    (@offline)

    I’d just like to nudge this one up again, in case it got missed.

    Has anyone got any ideas how I could work around this limitation?

    Moderator James Huff

    (@macmanx)

    Why not just move your database? Backup the old blog’s database and restore it into the new blog? https://tamba2.org.uk/wordpress/backup/

    Thread Starter offline

    (@offline)

    Well, the obvious answer to that is that I’m not moving it to another wordpress. The less-obvious answer is, I don’t have another server that I can use to do this migration available to me.

    I’d like to do exactly what offline tried to do unsucessfully—export his entire blog into RSS format. I’m not sure about the memory issues but I’ll see what happens. However, I have no idea how to export the entirety of a blog into RSS. Searched these forums and can’t find an answer. Anyone point me to the right place?

    soulhuntre

    (@soulhuntre)

    * bump *

    Any answers here?

    Moderator James Huff

    (@macmanx)

    If your server can handle it, go to Options/Reading, set the number of posts to display in the syndicated feed to the total number of posts on your blog, then view your RSS feed in a browser, and save the output. Unfortunately, this may be too much for your server, and it may display an out of memory error. If this happens, then you will not be able to export your blog via RSS.

    soulhuntre

    (@soulhuntre)

    That, sadly, appears to be the case. I am going to have to write this *sigh*.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Memory-limited export to RSS feed’ is closed to new replies.