Title: PHP Fatal error
Last modified: August 15, 2025

---

# PHP Fatal error

 *  Resolved [rkingisl](https://wordpress.org/support/users/rkingisl/)
 * (@rkingisl)
 * [10 months ago](https://wordpress.org/support/topic/php-fatal-error-476/)
 * 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 164`
 * and 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-476%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [10 months ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18600721)
 * Hi [@rkingisl](https://wordpress.org/support/users/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.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18603493)
 * 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.
 *  Thread Starter [rkingisl](https://wordpress.org/support/users/rkingisl/)
 * (@rkingisl)
 * [9 months, 4 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18603544)
 * 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.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18605356)
 * Hi [@rkingisl](https://wordpress.org/support/users/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.
 *  Thread Starter [rkingisl](https://wordpress.org/support/users/rkingisl/)
 * (@rkingisl)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18607868)
 * 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_id`
 * And 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_posts`
 * Thanks again for your help.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18608192)
 * Hi [@rkingisl](https://wordpress.org/support/users/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)
 *  Thread Starter [rkingisl](https://wordpress.org/support/users/rkingisl/)
 * (@rkingisl)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18608623)
 * 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.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18610302)
 * Hi [@rkingisl](https://wordpress.org/support/users/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](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.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18612753)
 * Hi [@rkingisl](https://wordpress.org/support/users/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.
 *  Thread Starter [rkingisl](https://wordpress.org/support/users/rkingisl/)
 * (@rkingisl)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18612851)
 * 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!
 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18613461)
 * Hi [@rkingisl](https://wordpress.org/support/users/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.)?
 *  Plugin Support [tristan083](https://wordpress.org/support/users/tristan083/)
 * (@tristan083)
 * [9 months, 3 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18613464)
 * Hi [@rkingisl](https://wordpress.org/support/users/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)?
 *  Thread Starter [rkingisl](https://wordpress.org/support/users/rkingisl/)
 * (@rkingisl)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18615833)
 * 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.
 *  Plugin Support [Darian](https://wordpress.org/support/users/d0153/)
 * (@d0153)
 * [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18616022)
 * Hi [@rkingisl](https://wordpress.org/support/users/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://wordpress.org/support/plugin/the-events-calendar/reviews/](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

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

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [Darian](https://wordpress.org/support/users/d0153/)
 * Last activity: [9 months, 2 weeks ago](https://wordpress.org/support/topic/php-fatal-error-476/#post-18616022)
 * Status: resolved