• Hello, I noticed one of my sites generating extremely high CPU spikes and my PHP log is full of errors concerning the my calendar widget:

    [07-Jun-2025 07:06:05 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [07-Jun-2025 07:07:57 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [07-Jun-2025 07:07:57 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [07-Jun-2025 07:08:24 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [07-Jun-2025 07:08:59 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 20:58:19 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 20:58:46 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 20:59:19 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 21:05:53 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 22:24:53 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 22:25:37 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 22:26:20 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 22:26:59 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [14-Jun-2025 22:33:13 UTC] PHP Warning: Undefined variable $preset in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/includes/widgets/class-my-calendar-upcoming-widget.php on line 183
    [15-Jun-2025 14:02:27 UTC] PHP Warning: Undefined array key “template” in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/my-calendar-widgets.php on line 80
    [15-Jun-2025 14:02:27 UTC] PHP Warning: Undefined array key “skip” in /home/customer/www/staging2.whitepasscountrymuseum.org/public_html/wp-content/plugins/my-calendar/my-calendar-widgets.php on line 354

    —————————————————————

    Any help in troubleshooting what’s going on would be appreciated, thank you.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    The PHP warnings are resolved in the latest release.

    The CPU spikes aren’t something I can say for sure; though I suspect it has to do with AI bots. AI bots are well-documented as ignoring all server-side bot directives. My Calendar uses a variety of instructions for bots to prevent crawling unnecessarily, but if AI bots ignore that, they could end up crawling the My Calendar pages very heavily for no reason.

    Thread Starter jimh275

    (@jimh275)

    Thanks for the reply, bots would make sense, as I’m also getting excessive/inaccurate page hits to the calendar.

    Plugin Author Joe Dolson

    (@joedolson)

    AI bots are definitely a major problem; they’ve been hitting a lot of sites *really* hard. I had one of my own sites have a similar problem last week – similar problem; overwhelming usage of the calendar. But it was clearly bots, and I took care of it mostly by editing .htaccess rules and the readme file.

    You might find this useful: https://github.com/ai-robots-txt/ai.robots.txt

    Thread Starter jimh275

    (@jimh275)

    Thanks for this, ya, my site is getting weekly traffic in the 22000+ range when >1500 would be more accurate. Hopefully, I’ll be able to get it under control.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.