• Resolved byronfox

    (@byronfox)


    Need help with an issue where the code below was breaking the day view. My calendar has alot of events per day and it seemed that the code below was having issues with this. (Maybe due to $new_title coming back as an array).

    —————————————————————————
    In search console I had the following error:

    “Failed to load resource: the server responded with a status of 500 (Internal Server Error)”

    —————————————————————————

    In my error log I had the following errors/warnings:

    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_week() in wp-content/themes/white-fox-studios-profile/functions.php:73, referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: Stack trace:, referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: #0 wp-includes/class-wp-hook.php(288): filter_events_title(‘Events for Marc…’), referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: #1 wp-includes/plugin.php(208): WP_Hook->apply_filters(‘Events for Marc…’, Array), referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: #2 wp-content/plugins/the-events-calendar/src/Tribe/Template_Factory.php(289): apply_filters(‘tribe_events_ti…’, ‘Events for Marc…’, ‘Events’, ‘-‘), referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: #3 wp-includes/class-wp-hook.php(286): Tribe__Events__Template_Factory->title_tag(Array), referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: #4 wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array), referer: /events/
    [Mon Mar 18 12:51:16 2019] [warn] [client xx.xxx.xxx.xx] mod_fcgid: stderr: #5 wp-includes/general-template.php(1073): apply_filters(‘document_title_…’, Array), referer: /events/

    —————————————————————————

    Here is the code I commented out and it started working again…

    /**
    final public function title_tag( $title, $sep = null ) {
    // WP >= 4.4 has deprecated wp_title. This conditional (and the lower one) adds support for
    // the new and improved wp_get_document_title method and subsequent document_title_parts filter
    if ( ‘document_title_parts’ === current_filter() ) {
    $sep = apply_filters( ‘document_title_separator’, ‘-‘ );
    $the_title = $title[‘title’];
    } else {
    $the_title = $title;
    }

    $new_title = $this->get_title( $the_title, $sep );
    $the_title = apply_filters( ‘tribe_events_title_tag’, $new_title, $the_title, $sep );

    if ( ‘document_title_parts’ === current_filter() ) {
    $title[‘title’] = $the_title;
    return $title;
    }

    return $the_title;
    }
    */
    —————————————————————————

    I tried deactivating all plugins and the issue still existed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there,

    Thanks for reaching out 😀

    Day view is part of our premium products which I’m afraid I’m unable to support here due to WordPress.org rules. Please reach out on the Help Desk.

    Take care,
    Ed 🤘

    Ed

    (@erishel)

    Hey there,

    Since this topic has been inactive for a while, I’m going to go ahead and mark as resolved. Don’t hesitate to reopen or create a new topic if you still need help! 😄

    Take care,
    Ed 🤟

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Day View 500 Error’ is closed to new replies.