• Here are the error messages I am getting:

    [09-Feb-2026 21:06:09 UTC] PHP Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/sjnjubt9t5d3/public_html/wp-content/plugins/events-manager/classes/em-object.php on line 1838
    [09-Feb-2026 21:06:09 UTC] PHP Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/sjnjubt9t5d3/public_html/wp-includes/shortcodes.php on line 709
    [09-Feb-2026 21:06:09 UTC] PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/sjnjubt9t5d3/public_html/wp-content/plugins/events-manager/classes/em-object.php on line 1845

    I appreciate the help – thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter liberiah

    (@liberiah)

    I reverted back to php 8.0, cleared my static divi files but events manager is still breaking my theme. Is there a way to get it to only perform for the calendar page (not interact with the home page and my divi builder?). Thanks.

    I guess it’s the CSS added for the Events Manager on non Events Manager pages that is causing the problems on your divi builder pages. To prevent this from happening you can add the following code snippet:

    add_action( 'wp_enqueue_scripts', 'dequeue_em_css_conditionally', 100 );

    function dequeue_em_css_conditionally() {
    // Check if we are NOT on an Events Manager page
    // This covers events, locations, categories, tags, and the booking/calendar pages
    if ( ! ( is_singular('event') || is_singular('location') || is_post_type_archive('event') || is_post_type_archive('location') || em_is_event_page() ) ) {
    // Dequeue the main Events Manager CSS
    wp_dequeue_style('events-manager');
    }
    }

    You can use the Code Snippets plugin to add this code snippet.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.