• Resolved jjbte

    (@jjbte)


    I am using the latest version of this plugin with the latest version of WordPress and I have two issues when using the Author Personal Blog theme.

    First, if there no upcoming events (i.e., no events or only past events published), the Events archive page loads. However, there is a “Subscribe to calendar” button that appears beneath the event listings. When clicked, a dropdown menu is supposed to appear. The dropdown menu does not appear when I have the Author Personal Blog theme activated. It does appear if I switch to the Twenty Twenty-Four theme. There is a similar issue with the “Add to calendar” button that appears beneath a single event.

    Second, if there are any upcoming events, the Events archive page will not load at all when the Author Personal Blog theme is active and I get a “PHP Fatal error: Allowed memory size of 134217728 bytes exhausted … ” error. I tried increasing the memory limit to 256M and above, but then the archive page would still not load and I got a “PHP Fatal error: Maximum execution time of 30 seconds exceeded …” error. I also tried increasing the execution time to 180s, but the error persists. Again, this does not happen if I switch to the Twenty Twenty-Four theme.

    The errors vary regarding exact scripts and line numbers. Here are a few examples from my error log using different versions of PHP on the server and memory limit set to 256M:

    PHP 8.3.8: PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/plugin.php on line 179

    PHP 8.3.8: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/class-wp-hook.php on line 315

    PHP 8.3.8: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/class-wp-hook.php on line 323

    PHP 8.2.20: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/common/src/Tribe/Context.php on line 394

    PHP 8.2.20: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php on line 1403

    PHP 8.2.20: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/WP_Query/Modifiers/Events_Only_Modifier.php on line 111

    PHP 8.1.29: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php on line 86

    PHP 8.1.29: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/src/Tribe/Event_Status/Event_Status_Provider.php on line 187

    PHP 8.1.29: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/View.php on line 1405

    PHP 8.0.30: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/Resolver.php on line 325

    PHP 8.0.30: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/src/Tribe/Service_Providers/Context.php on line 53

    PHP 8.0.30: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/plugin.php on line 173

    PHP 7.4.33: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/class-wp-hook.php on line 323

    PHP 7.4.33: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/class-wp-hook.php on line 323

    PHP 7.4.33: PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-content/plugins/the-events-calendar/src/Tribe/Service_Providers/Context.php on line 58

    I have also deactivated other plugins, so all that is running is the Author Personal Blog theme and the events plugin.

    My client really wants to use the Author Personal Blog theme and I also need to use The Events Calendar plugin. I have submitted a request for help in the support forum for the Author Personal Blog theme, but I have yet to receive a reply. Could someone help me figure out what is causing these issues?

    I do not wish to share URLs as I’m working on my own test site that I do not want public. I can share the site link privately with someone if possible.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Jes

    (@jescandoit)

    Hi there,

    Thanks for reaching out.

    First, if there no upcoming events (i.e., no events or only past events published), the Events archive page loads. However, there is a “Subscribe to calendar” button that appears beneath the event listings. When clicked, a dropdown menu is supposed to appear. The dropdown menu does not appear when I have the Author Personal Blog theme activated. It does appear if I switch to the Twenty Twenty-Four theme. There is a similar issue with the “Add to calendar” button that appears beneath a single event.

    You can either play around with the dropdown’s element ul.tribe-events-c-subscribe-dropdown__list z-index value, where you will find more information about it in this article. Or move the subscribe button before the list view. You can start by checking out this file wp-content\plugins\the-events-calendar\src\views\v2\list.php and copy/paste it to ?[your-theme]/tribe/events/v2/list.php. Then on its content, you need to move this line:74 right before line:55
    <?php $this->template( ‘components/ical-link’ ); ?>

    Second, if there are any upcoming events, the Events archive page will not load at all when the Author Personal Blog theme is active and I get a “PHP Fatal error: Allowed memory size of 134217728 bytes exhausted … ” error. I tried increasing the memory limit to 256M and above, but then the archive page would still not load and I got a “PHP Fatal error: Maximum execution time of 30 seconds exceeded …” error. I also tried increasing the execution time to 180s, but the error persists. Again, this does not happen if I switch to the Twenty Twenty-Four theme.

    Just curious if you have tried disabling the non-calendar plugins and see if this memory exhaustion issue still persists? Let’s just make sure that this isn’t triggered by conflict based on these lines of errors, which points to the WordPress core files.

    PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/plugin.php on line 173PHP 7.4.33: PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/class-wp-hook.php on line 323PHP 7.4.33: PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wpsite/wp-includes/class-wp-hook.php on line 323

    Please let us know how it goes, and looking forward to helping you solve this.

    Thread Starter jjbte

    (@jjbte)

    Thank you for your reply, @jescandoit.

    Regarding the memory/execution time errors, they only happen when there are upcoming events (no problem if there are only past events). And they only happen when I have the Author Personal Blog theme activated (no problems with the Twenty Twenty-Four theme). I also don’t have any of these problems on other sites running The Events Calendar plugin with various other plugins and themes.

    On the site I’m having trouble with, I do not have any other plugins active besides The Events Calendar.

    The problem almost certainly lies with the Author Personal Blog theme, but since I can’t get any help from that theme’s support team, I was hoping someone here could help me. My client really wants to use that theme and I’ve already put a fair amount of work into the site based on that theme, so I really don’t want to start all over again. I also want to use The Events Calendar plugin. I use it on several sites and it meets all of my needs, so I don’t wish to use another events plugin.

    Plugin Support Jes

    (@jescandoit)

    Hi @jjbte

    Thanks for sharing that information, let me ask the team about it and will let you know once I have feedback from them.

    Plugin Support Darian

    (@d0153)

    Hi @jjbte

    Thank you for patiently waiting.

    Could you try the recommendations provided by one of my colleagues and see if that helps?

    In the themes active.js file they have this section:

    $(‘body’).on(‘click’, function(e) { e.stopPropagation(); webListContainer.removeClass(‘open’); });

    Apparently, the stopPropagation runs on any mouse click, and stops the dropdown from appearing.

    If you change that to this:

    $(‘body’).on(‘click’, function(e) { const classes = e.target.className; if (!classes.includes(“tribe-events-c-subscribe-dropdown”)) { e.stopPropagation(); } webListContainer.removeClass(‘open’); });

    Then the dropdown will work.

    Let me know how it goes.

    Thread Starter jjbte

    (@jjbte)

    Hi @d0153,

    I did try your suggestion and the dropdown is still not working. When I click on the dropdown button, nothing happens. I do thank you for looking into this matter, though.

    I can live without the dropdown (subscription) menus. As a temporary fix, I made them not load/appear at all using the “tec_views_v2_use_subscribe_links” and “tec_events_show_ical_link” filters.

    My main issue is still that the Events page (archive) will not load at all when there are any upcoming events (it does load if there are no events at all or only past events). When I try to load the Events page when there are upcoming events, I just get a white screen and my error log shows memory and/or execution time errors. There was a new version of Author Personal Blog released yesterday, but it does nothing to solve this problem for me. And their support team has completely ignored my post about this problem submitted more than a week ago.

    I don’t know if this information is helpful, but I turned on the debugging option in TEC. When I try to load the Events page, the following appears in my debug/error log:

    [03-Sep-2024 20:00:58 UTC] the-events-calendar/common -  Log: Initializing Tribe Events on Sep, 3rd at 08:09:58 pm
    [03-Sep-2024 20:00:59 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:59 pm
    [03-Sep-2024 20:01:56 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:56 pm
    [03-Sep-2024 20:01:57 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:57 pm
    [03-Sep-2024 20:02:03 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:03 pm
    [03-Sep-2024 20:02:12 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:12 pm
    [03-Sep-2024 20:02:33 UTC] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /home/user/public_html/sandbox/wptest/wp-includes/class-wp-hook.php on line 323
    [03-Sep-2024 20:04:13 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:13 pm
    [03-Sep-2024 20:04:14 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:14 pm

    On my site’s front page, I added a routine to load the next six upcoming events using the tribe_get_events() function. Those load properly when I go to the front page and the following appears in my debug/error log:

    [03-Sep-2024 20:05:35 UTC] the-events-calendar/common -  Log: Initializing Tribe Events on Sep, 3rd at 08:09:35 pm
    [03-Sep-2024 20:05:36 UTC] the-events-calendar/common - Log: Initializing Tribe Events on Sep, 3rd at 08:09:36 pm

    Again, I do thank all of you for looking into this, especially since it is specifically an issue with the Author Personal Blog theme and they have been completely unwilling to help. TEC is a great and popular plugin and I feel the theme developers should be concerned that their theme will not play nice with this plugin.

    Plugin Support Darian

    (@d0153)

    Hi @jjbte

    May I know the default view you’re using for your Events archive page? Have you tried selecting the other view as default?

    Also, please try decreasing the “Number of events to show per page” (Events > Settings > Display) to 5, and see if that makes a difference. If it works, please try increasing it by 5 at a time, and see how many events is causing the issue.

    Let me know how it goes.

    Plugin Support Darian

    (@d0153)

    Hi @jjbte

    I hope everything is going smoothly for you. I just wanted to touch base and inquire if you had the opportunity to review my previous response as it has been some time since we last heard from you.

    Looking forward to your reply.

    Thread Starter jjbte

    (@jjbte)

    Hi @d0153. Sorry for not replying right away. I have been quite busy.

    I have tried playing with various settings under the Display tab, including events per page. I’ve tried all the view options as well. All to no avail unfortunately.

    The theme developer did reply and stated he doesn’t see any issues, so I am completely at a loss now. When I have a chance, I am going to try the site on a different host to see if it makes a difference.

    Thank you again for looking into this.

    Plugin Support Darian

    (@d0153)

    Hi @jjbte

    Were you able to replicate the issue from a staging version of your live site? If so, could you try deleting our plugins, and installing it back again, and see if that makes a difference?

    If you don’t have a staging site yet, you can use the WP Staging plugin to easily create one.

    Plugin Support Darian

    (@d0153)

    Hi there,

    This thread has been inactive for a while, so we’ll go ahead and mark it Resolved. Please open a new thread if any other questions arise, and we’d be happy to help.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.