Sidebar not visible after updating TEC to 4.2.5

Home Forums Calendar Products Events Calendar PRO Sidebar not visible after updating TEC to 4.2.5

Viewing 15 posts - 1 through 15 (of 22 total)
  • Author
    Posts
  • #1153122
    Hans-Gerd
    Participant

    Hi,
    after updating TEC to 4.2.5 the sidebar is not visible on websites showing events. We are using the theme enfold.
    When installing TEC 4.2.4 anything is ok.
    When installing another theme (for example logger) also anything is ok.

    Best regards
    Hans-Gerd

    #1153429
    Cliff
    Member

    Hi Hans-Gerd.

    Thanks for the details.

    We do not provide support for Enfold theme, but my best guess is that your site has some extra styling/coding implemented that’s now conflicting — or they need to update the Enfold theme for our latest version.

    I’d suggest asking their support if there are any known conflicts with our latest version and if they can recreate the issue you’ve reported.

    Please let me know how it turns out.

    #1153494
    Hans-Gerd
    Participant

    Hi Cliff,
    thanks for answer.
    I will check this with the support of enfold and contact perhaps here again.

    Best regards
    Hans-Gerd

    #1153553
    Cliff
    Member

    Sounds good. I’ll leave this open for now, but please note that threads get Closed automatically after a couple weeks of inactivity. If it does get Closed, please open a new thread, adding your current problem description and also linking back to this thread.

    Thank you!

    #1153563
    Hans-Gerd
    Participant

    This reply is private.

    #1153567
    Cliff
    Member

    This reply is private.

    #1153627
    Hans-Gerd
    Participant

    This reply is private.

    #1153642
    Cliff
    Member

    Thanks for the extra information. Let’s wait to see what their support says…

    #1154113
    Hans-Gerd
    Participant

    Hi Cliff,
    sorry that I write here once more, but I think that I have found a possible cause:

    The reason for missing sidebar seem to be the file ..\the-events-calendar\src\Tribe\templates.php:
    There is encoded from line 624 following in the version 4.2.5:

    } else {
    	$file = apply_filters( 'tribe_events_template', $file, $template );
    }

    When exchanging this file for the file from 4.2.4, everything is OK (also possibly it is to extinguish the abovementioned lines).

    May be it has to do with the fact that the child theme path is wrong. But I tested some possibilities wihtout success.
    See here:

    How to display the sidebar in Events Calendar pages?


    and

    The event calendar issues

    Our child path is: ../wp-content/themes/enfold-childtheme_1/
    In this path the files ‘default-template.php’ and ‘single-event.php’ from enfold are stored.

    Thank you for your patience.

    Best regards
    Hans-Gerd

    #1154547
    Cliff
    Member

    Thanks for that info. I saw a code snippet at each of those links. Did using one of those make things work for you?

    #1154664
    Hans-Gerd
    Participant

    Hi Cliff,
    thanks for answer.

    I saw a code snippet at each of those links. Did using one of those make things work for you?

    We have used the code snippet from the first link since the conversion on enfold as theme.
    Without this snippet the sidebar will not be shown till TEC 4.2.4.
    Since TEC 4.2.5 it doesn’t work any more. It is not executed ‘default-template.php’ and ‘single event.php’ any more from child theme (including code to show the sidebar), but from parent theme.

    If deleting the snippet from ..\the-events-calendar\src\Tribe\templates.php in TEC 4.2.5 as described above anything works fine and the sidebar is shown.

    Unfortunately I didn’t received up to now an answer from kriesi.

    Beste regards
    Hans-Gerd

    • This reply was modified 9 years, 8 months ago by Hans-Gerd.
    #1155040
    Cliff
    Member

    Please let me know if I understand you correctly:

    • you have had that code snippet in place all this time
    • since updating to 4.2.5, the code snippet no longer works as it did before
    • adding the line 624 edit you previously mentioned in version 4.2.5 makes your snippet work again

    Is all this correct?

    #1155180
    Hans-Gerd
    Participant

    Hi Cliff,
    thanks for answer and your assistance.

    you have had that code snippet in place all this time

    yes
    here the snippet in functions.php:

    	add_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2);
    	
    	function avia_events_tempalte_paths($file, $template)
    	{
    		$redirect = array('default-template.php' , 'single-event.php' , 'pro/map.php' );
    		
    		if(in_array($template, $redirect))
    		{
    			$file = AVIA_EVENT_PATH . "views/".$template;
    		}
    		
    		return $file;
    	}
    

    since updating to 4.2.5, the code snippet no longer works as it did before

    yes – absolutely

    adding the line 624 edit you previously mentioned in version 4.2.5 makes your snippet work again

    No, this is not correct: Deleting the following code in version 4.2.5. In 4. 2. 4 this was not yet in ..\the-events-calendar\src\Tribe\templates.php

    
    } else {
        $file = apply_filters( 'tribe_events_template', $file, $template );
    }
    

    Best regards
    Hans-Gerd

    #1155532
    Cliff
    Member

    Thank you, again.

    I had one of our developers take a look and I believe the best course of action is to have the Enfold developers reach out to us if they would like us to modify anything in our code.

    Thanks again for your effort on this topic.

    #1155639
    Hans-Gerd
    Participant

    Hi Cliff,
    thanks for your answer and your patience.

    Andy from enfold wrote: “Please deactivate all plugins one by one to check which one is causing this issue and let us know if this solves the problem.”

    I have deactivated all plugins one by one up to the TEC-plugins and checked if one is causing the issue. Unfortunately this doesn’t solve the problem.

    Post Link: http://www.kriesi.at/support/topic/sidebar-not-visible-after-updating-the-events-calendar-to-4-2-5/

    Best regards
    Hans-Gerd

Viewing 15 posts - 1 through 15 (of 22 total)
  • The topic ‘Sidebar not visible after updating TEC to 4.2.5’ is closed to new replies.