Title: Memory Errors
Last modified: August 21, 2016

---

# Memory Errors

 *  Resolved [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/memory-errors-1/)
 * I receive this error on activating:
 * _The plugin generated 508 characters of unexpected output during activation. 
   If you notice “headers already sent” messages, problems with syndication feeds
   or other issues, try deactivating or removing this plugin._
 * Then I receive this error in the Shortcode Builder:
 * _Fatal error: Allowed memory size of 262144000 bytes exhausted (tried to allocate
   87 bytes) in …/wp-includes/meta.php on line 778_
 * (All plugins disabled using default WP theme)
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/memory-errors-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/memory-errors-1/page/2/?output_format=md)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129454)
 * Hi Austin,
    This is strange, how many plugins did you have installed? And you’ve
   never seen this error before? What if you de-activate all plugins except for 
   Ajax Load More?
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129518)
 * As I indicated above, all my plugins where disabled and I tried several themes
   including the default WordPress themes. I also tried downloading/uploading from
   both the WP admin and via FTP several times to insure the files did not become
   damaged upon download. I have not seen this error before and I did not have your
   plugin installed before. We have 4 servers with Rackspace so we have a ton of
   memory and power.
    (Ajax Load More v2.1.1 WP 3.9.1)
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129546)
 * I had one of our developers on the other side of the world try this on a independent
   setup and they received the same errors.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129560)
 * That’s unfortunate, I’m not sure how I can debug this as I haven’t had anyone
   else mention this on here or the GitHub repo.
 * I guess it’s possible there is a memory leak somewhere… Any chance you would 
   provide me access to your servers (FTP and WP?)
 * If so, my email is darren.cooney [@] gmail [dot] com
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129700)
 * The cause of this error is because we have over 5000 posts and over 7000 tags.
   Your plugin is trying to load all the tags in the drop-down menu in the options
   page. Even people with a couple hundred tags could get this error, depending 
   on their server.
 * You need to add “lazy loading” for the tag list. So it only loads 20 or so at
   a time. Or better yet, loose the drop-down and just use a text field that will
   take a comma separated list of tags.
 * If you have a solution to this issue I will gladly buy you extensions.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129701)
 * It wasn’t the tags (although that didn’t help) it was the authors. We have over
   50,000 members that it was trying to load in that drop-down. After removing it
   from the shortcode-builder.php (lines 208 – 226) the error went away.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129702)
 * Oh wow. That’s really interesting, I didn’t really think about a site with that
   may authors or tags.
 * I’ll have to think about a way to handle this going forward.
 * Thanks for posting back about this!
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129703)
 * I have seen plugins that use something like infinite scrolling to load items 
   in a dropdown. However if you have thousands of users, tags, etc. it may be a
   pain to load them all to find the one you want.
 * Another choice would be to just query those that have permissions to post (authors,
   admins, etc.). We only have about a dozen of those.
 * Having said that, I think you should just keep it simple by using a comma separated
   list. Like you do for the “Exclude” field.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129705)
 * So after downloading your new update I’m guessing you have no plans on fixing
   this?
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129706)
 * Wasn’t on the road map for this release, but possible in a future release – this
   plugin isn’t my full time job, so please cut me some slack if I don’t get to 
   your request immediately 🙂
 * Also, I have to take into account the other users of the plugin, you are the 
   first user to bring this issue up so I’m not seeing this as a serious issue.
 * That said, in the meantime you could always modify the shortcode builder to suit
   your needs, the file is in /ajax-load-more/admin/shortcode-builder/
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129707)
 * Just wondering. You had marked this issue resolved.
 * I was waiting to buy the add-on. If it was not for that I would not even have
   mentioned the request a second time. I’m not one to complain about something 
   offered for free, but because you are charging for the add-on I would want it
   to work without having to hack it (even though you are charging a fair price).
 * I just thought it would be an easy fix that should not effect any current operating
   plugins. I may have been the first user to have the amount of members/tags to
   pinpoint the issue. However that does not mean it is not taxing the servers of
   others to something less than a breaking point without them knowing.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129708)
 * Can you think of an easier way to fix this other than to add lazy loading of 
   cat, tag and author values?
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129709)
 * The easiest and maybe best way is using a comma separated list. Like you do for
   the “Exclude” field.
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129710)
 * Yea, that’s definitely the easiest way for users who understand category slugs.
   I’m considering adding a checkbox setting field that would be something like:
 * [x] Dynamically populate categories, tags and authors in shortcode builder.
 * If you uncheck it, I could provide a open textfield.
 *  Thread Starter [Austin Nichols](https://wordpress.org/support/users/fiq/)
 * (@fiq)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/memory-errors-1/#post-5129711)
 * As long as the default is the text-field that could work. I don’t think Categories
   would ever be an issue unless someone had a very strange way of organizing posts.
   Although tags and members is one of those things that grow overtime.

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/memory-errors-1/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/memory-errors-1/page/2/?output_format=md)

The topic ‘Memory Errors’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 20 replies
 * 3 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/memory-errors-1/page/2/#post-5129718)
 * Status: resolved