Export entries gives me a 500 internal server error

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
koltregaskes
Regular
Posts: 59
Joined: Tue Jan 30, 2007 8:31 am
Location: Thatcham, Berkshire, UK
Contact:

Export entries gives me a 500 internal server error

Post by koltregaskes »

I'm trying to export my entries to a WordPress blog but when I click to export I receive a 500 internal server error.

Any ideas what this means and how to fix it? And is this the best way to export? I'm only after my entries (i.e. not comments, etc.).

Kol
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Export entries gives me a 500 internal server error

Post by garvinhicking »

Hi!

First of all, of course the question: Why do you want to switch? Maybe there's something we can improve in s9y or tell you about plugins you didn't know about that can achieve what you want?

About yout question: A 500 internal server error can mean a PHP timeout because maygbe the memory or time limit of your server is reached when exporting many entries. You might need to ask your provider for the php error logs to deduce the full error message.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
koltregaskes
Regular
Posts: 59
Joined: Tue Jan 30, 2007 8:31 am
Location: Thatcham, Berkshire, UK
Contact:

Post by koltregaskes »

Hi Garvin,

I'm keeping the blog but it will have another purpose.

I don't have access to the error logs but my provider has logged in as me and reproduced the error they say I need to optimize my scripts relative to memory usage and CPU time. Their system automatically stops scripts that use too many system resources.

Programming Limits:
CPU : 6 seconds @ 100%
Memory : 10240KB (10MB)
Numerical Processes : 12

So what do I need to do? I have nearly 600 entries.

Kol
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hehe, that's easy to say from the provider, but the export simply "dumps" all entries and thus has a high memory usage. The export cannot currently be done in "chunks", so you would actually need an importer from the new blog system you import from, like serendipity offers importers from more a dozen systems, and those can directly access the foreign database. If your future blogtool can simply do the same, that would be the easiest thing to do.

If that is not an option, you might need custom PHP coding for your case. The s9y database structure is easy, so with some little PHP and MySQL knowledge you might even achieve results?

Sadly my own free time is limited, and I can only work on using serendipity, not switching away from serendipity ;) I can offer commercial/contract work though (either through me or the company I work for) if this is an option for you.

Or, of course, someone else here on the forums is able to provide a simply export script, that would be appreciated as well.

Some time ago I was thinking to create a unified Blog export script, but in your case with so many script runtime restrictions that exporter even would have not properly worked.

Maybe you can talk your provider into raising the limit for the few minutes when you create the export.


Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
koltregaskes
Regular
Posts: 59
Joined: Tue Jan 30, 2007 8:31 am
Location: Thatcham, Berkshire, UK
Contact:

Post by koltregaskes »

Sorry not coding experience, will have to ask the provider but I doubt they'll do that.

Thanks anyway, Garvin.

Kol
Post Reply