Wordpress - 自定义帖子无法导出 - 条目太多?

时间:2015-06-13 14:11:32

标签: php wordpress csv wordpress-plugin custom-post-type

我认为这是一个StackOverflow问题而不是ServerFault问题......但如果我错了,那么我道歉!

我正在尝试导出包含大约500,000个条目的自定义帖子类型。当我导出另一个只有几个条目的自定义帖子类型时,它会成功导出。

但第二次我用500,000个条目导出帖子类型(通过工具 - >导出),我收到以下错误:

This webpage is not available
ERR_INVALID_RESPONSE


Firefox can't find the file at
http://website.com/wp-admin/export.php?download=true&cat=0&post_author=0&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&content=card&submit=Download+Export+File.

这是因为WordPress出现500错误:

[12/Jun/2015:10:51:47 -0400] "GET /wp-admin/export.php?download=true&cat=0&post_author=0&post_start_date=0&post_end_date=0&post_status=0&page_author=0&page_start_date=0&page_end_date=0&page_status=0&content=card&submit=Download+Export+File HTTP/1.1" 500 20 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36"

我尝试过增加upload_max_filesize,但遗憾的是这没有效果。我也无法在正常日志中找到任何有用的信息。我暂时在WordPress中启用了调试日志记录,并在我尝试导出时记录了以下错误:

[12-Jun-2015 14:56:40 UTC] PHP Notice: Undefined index: rewrite_withfront in /home/account/public_html/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 265

[12-Jun-2015 14:56:40 UTC] PHP Notice: Undefined index: rewrite_hierarchical in /home/account/public_html/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 266

[12-Jun-2015 14:56:40 UTC] PHP Notice: has_cap was called with an argument that is deprecated since versiaccounton 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home/account/public_html/wp-includes/functions.php on line 3508

[12-Jun-2015 14:56:40 UTC] PHP Notice: Undefined index: page in /home/account/public_html/wp-content/plugins/order-categories/category-order.php on line 20

如何导出该自定义帖子类型中的所有500,000个帖子?

0 个答案:

没有答案