SchumacherFM / wordpress-to-hugo-exporter

Hugo is static site generator written in golang. Wordpress is a tool for remote access to your server ;-) ❗️Contributions welcome!
https://gohugo.io
GNU General Public License v3.0
681 stars 95 forks source link

Timeout... I think? #95

Closed wagslane closed 1 year ago

wagslane commented 2 years ago

I have a site with 200+ posts, has this been tested with sites that large?

I'm consistently getting a timeout, is there a way for me to work around that?

SchumacherFM commented 2 years ago

Hey, I have no idea how large sites are which are getting exported but I assume 200+ posts is not that much. You will see more success if you can run this script on the command line of the server with adjusted parameter. Or you download the WP database to your local computer and run it there.

wagslane commented 2 years ago

Turns out cloudflare times out at 100+ second requests... and it looks like I can't turn it off. Is there a reason it was decided to do a long-running HTTP request instead of a download? I didn't have problems with "all In one WP exporter" for example

Rumperuu commented 2 years ago

I was having a similar issue (on shared hosting, so I had no ability to increase the timeout threshold or run the CLI command).

As a workaround, I temporarily renamed my wp-content/uploads/ folder and ran the tool through the WordPress admin panel, which worked (as the issue was that the tool was trying to export all of my Media too).

SchumacherFM commented 1 year ago

closing this due to age. please reopen if the problem still exists.