# Upcoming events shows 500 server error

**URL:** <https://meta.discourse.org/t/upcoming-events-shows-500-server-error/221026>\
**Category:** Bug\
**Tags:** events\
**Created:** [March 15, 2022, 7:21pm UTC](https://meta.discourse.org/t/upcoming-events-shows-500-server-error/221026 "2022-03-15T19:21:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sbernhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sbernhard/32/208186_2.png) [@sbernhard](https://meta.discourse.org/u/sbernhard)\
**Post date:** [March 15, 2022, 7:21pm UTC](https://meta.discourse.org/t/upcoming-events-shows-500-server-error/221026/1 "2022-03-15T19:21:57Z")

</div>

If I click on “Upcoming events” - I guess this is provided by discourse-events, I got 500 server error:

```plaintext
Started GET "/discourse-post-event/events.json" for 91.37.126.155 at 2022-03-15 19:02:36 +0000
Processing by DiscoursePostEvent::EventsController#index as JSON
  Rendered text template (Duration: 0.0ms | Allocations: 1)
Completed 500 Internal Server Error in 913ms (ActiveRecord: 0.0ms | Allocations: 82862)
NoMethodError (undefined method `>=' for nil:NilClass)
(eval):17:in `_fast_attributes'
app/controllers/application_controller.rb:395:in `block in with_resolved_locale'
app/controllers/application_controller.rb:395:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:355:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:177:in `call'

```

Using discourse 2.7.12 together with discourse-calender 0.2 and discourse-saml 0.1

Somebody know how to fix the issue?

---

_[View the full topic](https://meta.discourse.org/t/upcoming-events-shows-500-server-error/221026)._
