Fatal error: memory exhausted when trying to create a recurring event

Home Forums Calendar Products Events Calendar PRO Fatal error: memory exhausted when trying to create a recurring event

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #1333060
    Marci Marshall
    Participant

    I’ve read all the other forum threads on this topic, and all of them suggest increasing server memory limit to 512M and deactivating all other plugins. I’ve tried both, and neither work. When I try to create a recurring event, even with just one additional recurrence, I get this error:

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in /…/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php on line 131

    I am running the latest version of both events calendar and events calendar pro as of 8/9/17

    #1333378
    Andras
    Keymaster

    Hello Marci,

    Thanks for using our plugins and welcome to the forums!

    I checked your site and immediately bumped into an error message:

    <b>Notice</b>: Constant WP_MAX_MEMORY_LIMIT already defined in <b>/home/deploy/staging-insider.energytrust.org/wp-config.php</b> on line <b>99</b>

    Try to remove that setting from wp-config.php and check if that helps.

    I would think this isn’t so much our plugin misbehaving as it is something with server settings and limits. Unless there are some other bugs. I’d recommend going to https://sitecheck.sucuri.net/ and running a check there as well.

    Please let me know how you end up and we can look further is the issue persists.

    Cheers,
    Andras

    #1342560
    Marci Marshall
    Participant

    I removed the setting from wp-config.php, yet the issue still persists. I also ran a security check and found nothing out of the ordinary.

    #1343345
    Andras
    Keymaster

    Hello Marci,

    I’m sorry this is still happening.

    As a first I’d kindly like to ask you to update to the latest versions of the plugins if you didn’t yet do so. Thank you!

    There are couple of things we can still look at to find out more of this issue.

    Please open the developer tools in your browser (usually F12 or Ctrl+Shift+I) and switch to the “Console” tab. Then try to create a recurring event and check if you get any error messages in the console. If yes, please send me a screenshot of that.

    The second thing we can try is enabling “WP_DEBUG”. For this you will need to open your wp-config.php file and look for the line:

    define('WP_DEBUG', false);

    and change it to

    define('WP_DEBUG', true);

    Then try to create a recurring event and see if you get any error messages on the screen. If yes, please send me a screenshot.

    After the testing don’t forget to set it back to “false” otherwise your visitors might get some error messages on the front-end.

    Thanks,
    Andras

     

    #1346819
    Marci Marshall
    Participant

    I have WP_DEBUG turned on. Nothing appears in the console before I am directed to a blank page that has nothing except this message:

    Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in /home/deploy/staging-insider.energytrust.org/wp-content/plugins/events-calendar-pro/src/Tribe/Recurrence.php on line 94

    #1347635
    Andras
    Keymaster

    Hell Marci,

    Are you getting these error messages on your staging site http://staging-insider.energytrust.org/ ?

    If yes, could you please update the calendar plugins to the latest version and check if you are still having the issue?

    Thanks,
    Andras

    #1348199
    Marci Marshall
    Participant

    I’ve updated all events calendar plugins to the latest version and I’m still seeing the issue.

    #1348537
    Andras
    Keymaster

    Hello Marci,

    I’m sorry we still didn’t manage to move too much forward. Rest assured, I’m going to stay with you until we find a solution for this.

    I checked your http://staging-insider.energytrust.org/events-cal/community/add page and that shows a Fatal error on the page.

    There I also realized that you have some overrides in place for the calendar. Might be they are not compatible with the newer versions of our plugins.

    The best way to check that is to switch to a default theme like twentyseventeen and check if the issues persist. (Also deactivating all other plugins would be helpful to eliminate any compatibility issues coming from them.)

    Another possibility of checking would be to rename the “tribe-events” folder under “/wp-content/themes/etoinsider/tribe-events” to something else, so the overrides in “tribe-events” don’t kick in.

    Please check this as next and when testing please check both 1) creating a recurring event; and 2) the community/add page whether the fatal error is still there.

    If the issue persists then …

    1. … please give me the details of the event and the recurrence rules that you want to create, so I can try to test.

    2. … is there possibly another site where we could test / reproduce this issue? This would help us see whether it is unique to the current staging site or a more generic issue.

    Though I really hope disabling the customizations will take us a step forward.

    Cheers,
    Andras

    #1352791
    Marci Marshall
    Participant

    The issue still persists even after renaming the tribe-events folder to something else. Regarding the details of the recurrence, I just try to create an event with a single recurrence (clicking the “Once” button and selecting a date in the next month). Then I click publish and I see the same error. The issue is also present on https://insider.energytrust.org, which is hosted on the same server.

    #1353398
    Andras
    Keymaster

    This reply is private.

    #1358012
    Marci Marshall
    Participant

    This reply is private.

    #1358178
    Andras
    Keymaster

    This reply is private.

    #1359147
    Marci Marshall
    Participant

    This reply is private.

    #1359392
    Andras
    Keymaster

    This reply is private.

    #1359656
    Marci Marshall
    Participant

    This reply is private.

Viewing 15 posts - 1 through 15 (of 17 total)
  • The topic ‘Fatal error: memory exhausted when trying to create a recurring event’ is closed to new replies.