• I have updated a site to OceanWP 3.3.5, The Event Calendar 6.0.1 and The Events Calendar Community Events 4.10.1. I have a dev site on which these are the only active plugins.
    I have now discovered that the 2 main community events pages – Add Event and My Events are displaying without any content. When I change the theme to Twenty Twenty-One, the pages display as expected.

    Looking at the debug log, I am getting the message:
    [26-Sep-2022 16:01:30 UTC] PHP Deprecated: Function Template overrides should be moved to the correct subdirectory: default-template.php is <strong>deprecated</strong> since version 3.2! Use community/default-template.php instead. in /home/nepetash/public_html/develop/wp-includes/functions.php on line 5379

    If I make this change on my local site, the pages display correctly. Please can you apply the changes to OceanWP?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @mandynepeta,

    How can we replicate your steps to arrive at the issue on a fresh WordPress installation?

    Perhaps it’s the permalinks issue, so please update permalinks from dashboard > Settings > permalinks (update this page; even without changes – Postname is recommended for all permalinks on your website).

    They have an article regarding troubleshooting for conflicts with theme and plugins. If the above steps didn’t help you, please follow the steps explained in this link: https://theeventscalendar.com/knowledgebase/k/testing-for-conflicts/

    Please recheck your issue and keep us posted.

    Best Regards

    Thread Starter mandy@nepeta

    (@mandynepeta)

    Hello
    It is not a permalink issue nor is it a conflict with another plugin. I have a demo site with just the two plugins active.

    You get the deprication message as soon as you install the Events Calendar plus the Events Calendar Community Events plugins – it displays to the screen on both front and back.

    To reproduce the blank screen:

    • Under Events > Settings > Community, set the post status to published and in the members section allow them to edit their submissions. Save.
    • Copy the Add event link on the page and paste into a new tab

    You should get the messages at the top of the screen and a blank screen below (except for any sidebar). Same will happen if you use the List Events link.

    Anything that works off a generated page does not work. You can set up real pages with shortcode for the Add Events and My Events which do work. This points to the issue being the default template.

    I hope this helps.

    Hello @mandynepeta,

    Since “The Events Calendar Community Events” plugin is not in the WordPress repository and we don’t have that plugin, also the error happens under the plugin menus.
    Would you please get in touch with your third-party plugin author? Maybe they have a solution that we are not aware of.

    Note 1: If you are using a child theme with OceanWP, you should follow the instructions for template override.

    Note 2: Please read the forum guidelines: https://www.ads-software.com/support/guidelines/#the-bad-stuff.

    Thank you for understanding,
    Best Regards

    Thread Starter mandy@nepeta

    (@mandynepeta)

    Thank you for your response. I raised the issue with the developer and found a solution. Since they have made some structural changes in their latest version of The Events Calendar plugin, you may be interested in their reply as it may impact the templates you have in the OceanWP theme:

    Since 6.0 we removed the default-template.php file. However, this file is still used for Community Events, although differently now. 
     
    It looks like you copied your customized default-template.php file from one directory to another instead of using the new one found in Community Events. The new file is located in src/views/default-template.php and would need to be copied to [theme-folder]/tribe-events/community/default-template.php
     
    I have taken an additional look at your website. With the update to version 6.0 we have changed the way certain files work for Community Events. Can you please check to see if your theme is overwriting the default-template.php. Usually if this file is being overwritten it would be located in [theme-folder]/tribe-events/default-template.php.
     
    If you find the above file exists, can you please try renaming it to [theme-folder]/tribe-events/default-template.php.bk? Once this file is renamed, please try the submit event page again. If this fixes the issue then the issue is within the default-template.php file.

    Hello @mandynepeta,

    Thanks for reaching out and letting us know,

    We would forward it to the developer team to be checked and, if possible, to compatibility in the next updates.

    Best Regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank screen and depreciated error with The Events Calendar Community Events’ is closed to new replies.