Title: AMP causing fatal errors
Last modified: September 11, 2021

---

# AMP causing fatal errors

 *  Resolved [lbrownie](https://wordpress.org/support/users/lbrownie/)
 * (@lbrownie)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/amp-causing-fatal-errors/)
 * Hello,
    I have had 504 issues on my site all morning. The error seems to come
   from the AMP plugin. Here are the errors from the log:
 * 4 PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to
   allocate 65536 bytes) in /nas/content/live/lbsports/wp-content/plugins/amp/vendor/
   composer/ClassLoader.php on line 480
    3 PHP Fatal error: Allowed memory size 
   of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /nas/content/
   live/lbsports/wp-includes/wp-db.php on line 2022 1 PHP Fatal error: Allowed memory
   size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in /nas/content/
   live/lbsports/wp-includes/wp-db.php on line 2022
 * Can someone help me figure out what is going on to fix it or maybe help me roll
   back to a previous version of the plugin? Thank you

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

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/amp-causing-fatal-errors/#post-14865607)
 * Hello [@lbrownie](https://wordpress.org/support/users/lbrownie/)
 * Thank you for the support topic, please share your site health information using
   [this](https://docs.google.com/forms/d/1JTQmphDlk9YgHpDoFRbHXpkDqv8-QmzTT7MDR4AstyQ/)
   form so we can investigate the issue further
 * Additionally, Add the following line in the wp-config.php file just before the
   line that says ‘That’s all, stop editing! Happy blogging.’ or contact your hosting
   provider to increase your memory limit.
 * `define('WP_MEMORY_LIMIT', '512M');`
 * let me know if this helps.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/amp-causing-fatal-errors/#post-14890511)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to open
   a [new support topic](https://wordpress.org/support/plugin/amp/#new-post) if 
   you require any further assistance.

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

The topic ‘AMP causing fatal errors’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/amp-causing-fatal-errors/#post-14890511)
 * Status: resolved