• Getting following error after installing and activating the theme

    Fatal error: Can’t use function return value in write context in /home3/pmamania/public_html/abc.com/wp-content/themes/eventbrite-venue/inc/eventbrite.php on line 385

Viewing 1 replies (of 1 total)
  • Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You should be able to solve the issue by edit the following file:

    Find the following code in the file, around line 385:

    function eventbrite_venue_maybe_include_template( $page_id, $queried_object_id, $template ) {
    	// only redirect if the page id does not match the queried object and if event properties are not specified
    	if ( $page_id && $page_id === $queried_object_id && ( empty( $eb_event ) && empty( $eb_event_id ) ) ) {
    		do_action( 'eventbrite_venue_template_redirect', $page_id, $queried_object_id, $template );
    		include( get_template_directory() . '/' . $template );
    		die();
    	}
    }

    And replace it with the following:

    function eventbrite_venue_maybe_include_template( $page_id, $queried_object_id, $template ) {
    	// only redirect if the page id does not match the queried object and if event properties are not specified
    	$eb_event = get_query_var( 'eb_event' );
    	$eb_event_id = get_query_var( 'eb_event_id' );
    	if ( $page_id && $page_id === $queried_object_id && ( empty( $eb_event ) && empty( $eb_event_id ) ) ) {
    		do_action( 'eventbrite_venue_template_redirect', $page_id, $queried_object_id, $template );
    		include( get_template_directory() . '/' . $template );
    		die();
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘eventbrite-multi fatal error’ is closed to new replies.