• 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://www.ads-software.com/plugins/ajax-load-more/

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    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

    (@fiq)

    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

    (@fiq)

    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

    (@dcooney)

    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

    (@fiq)

    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

    (@fiq)

    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

    (@dcooney)

    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

    (@fiq)

    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

    (@fiq)

    So after downloading your new update I’m guessing you have no plans on fixing this?

    Plugin Author Darren Cooney

    (@dcooney)

    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

    (@fiq)

    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

    (@dcooney)

    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

    (@fiq)

    The easiest and maybe best way is using a comma separated list. Like you do for the “Exclude” field.

    Plugin Author Darren Cooney

    (@dcooney)

    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

    (@fiq)

    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)
  • The topic ‘Memory Errors’ is closed to new replies.