• Resolved Wildcard

    (@thenewguy_14)


    So I switch to the updated views and none of my events load in the calendar I have a custom theme that I coded from scratch so I know there is a theme conflict but I have no idea how to figure out what it is I have deactivated all of the plugins except ACF PRO and the events calendar and still they don’t show up. I switch to twenty twenty one them and they work there so I know its the theme but how to I find what is causing it I have 0 errors or warnings in debug mode. Is there some special js i need or something?

    So I am using the old views of the events calendar and I have made some interesting mods to the templates and I can not get them to translate to the new views.

    Do I really need to switch the the new views if everything is working as is?

    Will the old views still load ok after they get rid of the support for them?

    if I don’t update the plugin then everything should be ok right?

    • This topic was modified 3 years, 8 months ago by Wildcard.
Viewing 4 replies - 1 through 4 (of 4 total)
  • @thenewguy_14 thank you for reaching out!

    First some good news: we are going to extend the deadline to fully deprecate updated views to let everyone deal with such glitches (events not showing up).

    Second of all, we are very interested in fixing such bugs. If you don’t mind, could you share a copy of your theme (using a dropbox link) via email? That would benefit everyone. You can send it to [email protected]

    As for the mods, you are right, those will not carry over to the new views without some work. As you can imagine, our ability to support customizations is limited, but we are always interested in making sure that our customers can tweak things to their liking. Therefore, if you had an example of what you are struggling to reproduce, that would be very helpful.

    You do not need to switch to the new views, but we will fully remove those from the plugin in 2022. So yes, in theory, not updating will work. However, the caveat is that there might come a point where the old version of our plugin is no longer compatible with WordPress.

    Best regards,
    Geoff

    Thread Starter Wildcard

    (@thenewguy_14)

    So its a custom theme that I have been building/using for 7 years now so I went in and turned off all plugins and it was still glitching. So I went into my functions and incs files and started turning?files off and? and getting rid of functions. I found that?
    I have a function for the search input for blogs that was breaking the calendar

    add_filter( 'pre_get_posts', 'searchfilter' );
    /* Search box that just searches posts */
    function searchfilter( $query ) {
    	if ( $query->is_search && ! is_admin() ) {
    		$query->set( 'post_type', array(
    			'post',
    		) );
    	}
    	return $query;
    }
    

    I believe I used it so that on the blog page it just searches posts. I don’t really use it anymore so i just got rid of it. But I am not sure why that function breaks the calendar.

    As for the mods I got the list view and single page translated pretty easily. The next thing is trying to get the month view to output in list form for each month.

    here is the live page using the V1 views.
    https://erwc.org/events/month/

    I am pretty sure I can get it to work after reviewing the templates more but I will keep you posted.

    The only other thing I see is a js error from the chrome browser.

    content.js:135 Uncaught TypeError: Cannot read property 'ContentContainer' of undefined
        at Object.<anonymous> (content.js:135)
        at o (content.js:1)
        at Module.<anonymous> (content.js:1547)
        at o (content.js:1)
        at content.js:1
        at content.js:1
    

    Not sure why the browser throws that error.

    I assume you have fixed your problem by now, but in case someone else stumbles across this thread. I have found that when using the new templates, is_search() is true for list view. This is a change from the previous version.

    Hi there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to open a new thread if any other questions come up and we’d be happy to help.

    Best regards,

    Marho

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Switching to Legacy Views’ is closed to new replies.