• I have over 30000 users in my database. I went through the majority of support questions/issues and saw the cron job troubleshooting tip. After going through the steps, I finally saw the error message on my server, which is “Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 131072 bytes) in /home/catyco/members.blackgirlsrun.com/wp-content/plugins/buddypress-group-email-subscription/bp-activity-subscription-digest.php on line 90”

    Line 90 points to
    if ( ! isset( $all_activity_items[$sid] ) ) {
    $all_activity_items[$sid] = 1;

    I already increased the memory on the server to 128mb.

    The Daily/Weekly Digest is just blank. However, if I change it to All Emails, we get notifications.

    https://www.ads-software.com/plugins/buddypress-group-email-subscription/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author r-a-y

    (@r-a-y)

    Try increasing your memory limit in wp-config.php:
    https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Edit: Saw that you tried to increase the memory limit.

    In the codex article, this is also mentioned:

    Please note, this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

    Have you tried to contact your host to try and increase your memory limit?

    Thread Starter catyco

    (@catyco)

    Yes, I increased it 128mb. When I tried to 256mb, I exceed my memory allocation ?? and it rebooted the server.

    As I stated earlier, we have about 30K users and a very high activity. We need email notification to trigger for daily/weekly.

    All Email is working. However, users are getting notification from groups they do not belong to (which is a different issue)

    Plugin Author r-a-y

    (@r-a-y)

    During digest execution, the plugin is attempting to get all digest subscriptions for all your users.

    Since you have 30k users and GES needs to fetch subscriptions for users with digest subscriptions, that’s where the memory problems are occurring.

    Digests are currently not optimized for a site of your size.

    We’re also dealing with architectural legacy problems with the way GES is storing its data.

    I’ve opened a ticket on our bug tracker about this:
    https://github.com/boonebgorges/buddypress-group-email-subscription/issues/49

    I know digests are an important feature, but in your case, it might not be feasible to use this feature.

    Currently, I don’t think GES has the ability to disable digests, but it’s something that might have to be added so site admins have the option of disabling it (like in your case).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Daily/Weekly Digest Memory Issue’ is closed to new replies.