In one of my plugins, I need to insert about 1000 terms into a custom taxonomy while installing a plugin. I see it's sometimes causing 500 internal server error. How can I split that work or prevent it from giving an error?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
|
||||
|
Are your database tables using the InnoDB engine? If so, and the plugin is just for your website, start a transaction, run the inserts, commit the transaction (or rollback on error).
|
|||||
|
mod_fcgid: read data timeout in 31 seconds, referer: /wp-admin/network/plugins.phpPremature end of script headers: plugins.php, referer: /wp-admin/network/plugins.php– Ünsal Korkmaz Jan 15 at 15:38