PHP Fatal error
-
Hello,
I’m repeatedly getting this error message in my WordPress error logs throughout the day:
PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /srv/data/web/vhosts/www.islyon.org/htdocs/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Builders/ClassBuilder.php on line 164and this coincides with 503 error messages when I’m editing various pages. Our web host affords us 1GB of RAM and the memory limit is set to 256M. Any help would be very much appreciated.
The page I need help with: [log in to see the link]
-
Hi @rkingisl
Thanks for reaching out.
I understand how frustrating it can be to run into these kinds of errors. It’s important to note that The Events Calendar isn’t the only plugin using memory — every active plugin, along with your theme, also uses some of it. When all of these are running together, their combined usage can go beyond your current limit, which is likely what’s causing this issue. Increasing the limit will give your site the breathing room it needs to run smoothly.
Based on the error log you shared and your current memory limit, the best way to resolve this is to increase your PHP memory limit from 256M to 512M.
Let me know how it goes.
Hi there,
It looks like we haven’t heard back from you in a while, so I’ll go ahead and close this thread for now. If you need further assistance, feel free to reopen this thread or open a new one.
Hello,
I have the same problem with the site memory set to 512M. This is something I had already tried. Could it be due to some settings or something? Or are there log files I could check somewhere to help diagnose the problem? Also, is it normal for the plugin to require more than 256M of memory? I was routinely getting 500/503 errors due to this plugin in particular.
Thanks again.
Hi @rkingisl
Our plugin itself does not specifically require 512M of memory. However, if you’re running multiple plugins alongside ours, you may need at least 512M to accommodate all of them. The same applies to your theme — depending on its features, it could also require additional memory.
If you upgrade your memory limit to 512M, could you please share the latest error message you’re seeing? That will help us determine whether the issue is directly related to memory or if something else is causing it.
Hello,
I’m still receiving regular messages like this:
[20-Aug-2025 06:28:04 UTC] WordPress database error Incorrect DATE value: '2023-01' for query SELECT wp_posts.* FROM wp_posts JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_idAnd this:
[20-Aug-2025 03:03:55 UTC] WordPress database error Incorrect DATE value: '2016-03' for query SELECT wp_posts.* FROM wp_posts JOIN wp_tec_occurrences ON wp_posts.ID = wp_tec_occurrences.post_id WHERE 1=1 AND wp_posts.post_name = 'bermun' AND wp_posts.post_type = 'tribe_events' AND CAST(wp_tec_occurrences.start_date AS DATE) = '2016-03' ORDER BY wp_posts.post_date DESC made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, apply_filters_ref_array('posts_pre_query'), WP_Hook->apply_filters, TEC\Events\Custom_Tables\V1\WP_Query\Modifiers\Events_Only_Modifier->filter_posts_pre_query, TEC\Events\Custom_Tables\V1\WP_Query\Custom_Tables_Query->get_posts, WP_Query->get_postsThanks again for your help.
Hi @rkingisl
It looks like the error has changed. To help us investigate further, could you please confirm if you’ve already migrated your events to the latest version? This migration is required if you’ve been using our plugins since version 5.x.
If you’re not sure, you can instead provide the values found on your Events > Troubleshooting page for the following:
- Custom Tables Migration Status
- Custom Tables Health Check
Additionally, please share the version numbers for the items below so I can better understand how your system is set up:
- WP and PHP
- The Events Calendar and The Events Calendar PRO (if applicable)
- Event Tickets and Event Tickets PLUS (if applicable)
So I just updated to 6.15.0.1 today, but I already had version 6.14 or something before that. Custom Tables both listed as “Good”.
I’m currently using WP version 6.8.2 with PHP 8.0.12. The Events Calendar (not Pro) and no Event Tickets.
Hi @rkingisl
Thanks for your response. It appears that you’ve successfully migrated your events so there’s no issue with your events.
I visited your calendar here: https://www.islyon.org/school-calendar, and everything seems to be displaying correctly on my end. Could you please share the exact steps to replicate the issue you’re experiencing? This will help me test it more thoroughly and identify what might be causing the problem.
Looking forward to your reply.
Hi @rkingisl ,
I hope you’re doing well. I just wanted to check in, as it’s been a little while since we last heard from you. Have you had a chance to review my response above?
Let me know if there’s anything I can assist you with.
Hello,
Thank you for your reply. I found that there was another plugin causing conflicts, it just so happened that this plugin was regularly logging errors at the same time. I’m no longer having fatal crashes, but I’m still getting the “Incorrect date” error regularly in my logs. Is there something I should do about that, or is it likely to be fixed in a future update?
Thanks again!
Hi @rkingisl ,
Thank you for your message and the information.
We’re glad to hear that you were able to sort out the issue after finding a conflicting plugin.
As for the “incorrect date” error, would you be able to share a recent log of this and perhaps the steps to reproduce it (i.e., searching on the front end or admin dashboard, etc.)?
Hi @rkingisl ,
Thank you for your message and we’re glad to hear that you’re no longer experiencing fatal crashes after finding a conflicting plugin.
As for the “incorrect date” error, would you be able to share a recent entry on this and perhaps some steps to reproduce it (i.e., what actions you’re taking on the admin dashboard or the front end that causes the entry)?
Hello again,
The errors were the ones I posted above and had been happening regularly each day, although there’s nothing in my logs this week. Maybe it was due to me updating the plugin last week.
Thanks again.
Hi @rkingisl
I’m glad to hear that the issue is now resolved. Feel free to reach out anytime if you have other questions or concerns.
If you have some time to review, that would be amazing!
https://ww.wp.xz.cn/support/plugin/the-events-calendar/reviews/
The topic ‘PHP Fatal error’ is closed to new replies.