Title: Gateway timeout errors when using AIOS
Last modified: May 16, 2023

---

# Gateway timeout errors when using AIOS

 *  Resolved [mluzvdb](https://wordpress.org/support/users/mluzvdb/)
 * (@mluzvdb)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/gateway-timeout-errors-when-using-aios/)
 * Since like 1,5 month I am experiencing gateway timeout errors on all websites
   that I manage when trying to use migrate db in combination with AIOS. I did a
   lot of testing and was able to reproduce it with the steps described in the post:
   [https://wordpress.org/support/topic/gateway-time-out-error-3/](https://wordpress.org/support/topic/gateway-time-out-error-3/)
 * It seems to have something to do with the AIOS plugin combined with migrate db.
   All plugins and the WP installations are completely up to date.
 * Is there anyone who has experience with something like this and knows if there
   are settings in AIOS that can cause this?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [aporter](https://wordpress.org/support/users/aporter/)
 * (@aporter)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/gateway-timeout-errors-when-using-aios/#post-16742511)
 * Hi,
 * This could be the same issue as this:
   [https://wordpress.org/support/topic/audit-log-breaks-database-exports/](https://wordpress.org/support/topic/audit-log-breaks-database-exports/)
   The timeline matches up to when we added the audit log that contains serialized
   stack traces.You could confirm by removing all the data in the audit log (if 
   doing this via the database do not delete the table) and then trying to use the
   other plugin.Best Wishes,Ashley
 *  Thread Starter [mluzvdb](https://wordpress.org/support/users/mluzvdb/)
 * (@mluzvdb)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/gateway-timeout-errors-when-using-aios/#post-16742591)
 * I cleared all rows of that table in the database and as expected the database
   export now works!
 * So it is indeed the same issue. Is there any way to clear the audit log in the
   AIOS wp admin or can it only be cleared in the database?
 *  Plugin Support [aporter](https://wordpress.org/support/users/aporter/)
 * (@aporter)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/gateway-timeout-errors-when-using-aios/#post-16742639)
 * Hi,
   You can bulk delete rows via the UI currently but if theres lots of rows 
   you will want to use the define AIOWPSEC_AUDIT_LOG_PER_PAGE to increase the page
   size.e.g define(‘AIOWPSEC_AUDIT_LOG_PER_PAGE’, 100);You can add that define to
   your wp-config.php careful if you copy and paste from here the format on the ‘
   gets messed up and causes problems.Right now the page size is 15 (next release
   increases this to 100 by default)
 * The next release will also add a delete all option for easier clearing of that
   log.
   The next release is currently going through testing and should be out soon.
   Best Wishes,Ashley

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Gateway timeout errors when using AIOS’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [aporter](https://wordpress.org/support/users/aporter/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/gateway-timeout-errors-when-using-aios/#post-16742639)
 * Status: resolved