Title: memory problem
Last modified: February 19, 2018

---

# memory problem

 *  [johnbrace](https://wordpress.org/support/users/johnbrace/)
 * (@johnbrace)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/memory-problem-6/)
 * Hi, after upgrading to the new version of this plugin (version 0.9.82.1) I get
   the following error message on all AMP pages on the site (fatal error is in bold):
 * Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
   72 bytes) in var/sites/j/johnbrace.com/public_html/wp-includes/wp-db.php on line
   2516
 * Disabling the plugin fixes the problem. But does anyone know how to solve it (
   so I can use this plugin)? Or should I just revert to an earlier version?
 * Thanks
 * John Brace

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

 *  [pablogarces](https://wordpress.org/support/users/pablogarces/)
 * (@pablogarces)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/memory-problem-6/#post-9990261)
 * Same problem here, Google just started to show problems
 * I increased the memory to 512M and no way, it is still not working, just the 
   homepage, every single post is showing the amp version, but the home is not working
 *  Thread Starter [johnbrace](https://wordpress.org/support/users/johnbrace/)
 * (@johnbrace)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/memory-problem-6/#post-9990294)
 * Yes I got an email from Google too about the AMP pages.
 * I looked up the line it refers to in the code. It’s to do with creating new arrays
   in the database. Quite why the error is being triggered though I’m not sure (
   yet).
 * It’s useful to know that pages other than the homepage aren’t affected.
 * Maybe it could be because the homepage doesn’t have a path and filename like 
   the other pages do and the lack of this causes the problem? I’m not really sure.
   What are the main differences in this version of the plugin compared to the previous
   version.
 * Are you running https:// on your site too? Could that be the issue?
 *  [pablogarces](https://wordpress.org/support/users/pablogarces/)
 * (@pablogarces)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/memory-problem-6/#post-9990388)
 * Yes, i’m running https, i just reinstalled 0.9.74, and everything is fine now,
   I hope they can let us know what is happening here
 * The error that shows the page is
 *  <style amp-custom>
    <br /> <b>Fatal error</b>: Allowed memory size of 134217728
   bytes exhausted (tried to allocate 1048576 bytes) in <b>/home/laweb/public_html/
   wp-includes/class-wp-comment-query.php</b> on line <b>893</b><br />
 *  [frenchomatic](https://wordpress.org/support/users/frenchomatic/)
 * (@frenchomatic)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/memory-problem-6/#post-9990602)
 * Try re-saving permalinks. I had problems with the home page showing until I did
   that.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/memory-problem-6/#post-10038910)
 * Hi [@pablogarces](https://wordpress.org/support/users/pablogarces/)
 * That error is coming because of the memory allocation in the server. It’s got
   nothing to do with the AMP, I would recommend you get in touch with your hosting
   company.
 * Hope that helps, if not, then let me know.

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

The topic ‘memory problem’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/memory-problem-6/#post-10038910)
 * Status: not resolved