Skip to content

Instantly share code, notes, and snippets.

@ethiel88
Created April 1, 2021 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethiel88/05ffdbc0532c9e005b8d55e8b18d6b21 to your computer and use it in GitHub Desktop.
Save ethiel88/05ffdbc0532c9e005b8d55e8b18d6b21 to your computer and use it in GitHub Desktop.
Fix Memory exhausted DIVI and The events calendar plugin
// wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Rewrite.php
//This file is causing an infinite loop because never ends, seems to be recursive so I've added this one line 71
if(!in_array($encoded, $base_group)) // <--- This line I've added
$base_group[] = $encoded;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment