<p><strong>UPDATED RESPONSE...</strong></p>

<p>We were finally able to get to the bottom of this and traced the issue down to your site likely having a <strong>DateTime</strong> field with the handle <code>date</code>, and this was apparently something Craft was choking on.</p>

<p>The next version of Calendar will fix this, but you can resolve this by renaming that <strong>DateTime</strong> field or patch this by looking for this code in <em>calendar/services/Calendar_EventsService.php</em> around <em>line 100</em>:</p>

<pre><code>public function getEventList($criteria = null)
{
    if (!isset($criteria['allowedCalendarsOnly'])) {
        $criteria['allowedCalendarsOnly'] = false;
    }
</code></pre>

<p>And right after that, add this:</p>

<pre><code>    if (isset($criteria['date'])) {
        unset($criteria['date']);
    }
</code></pre>

<p>Let me know if this resolves the issue for you. :)</p>

CC BY-SA 3.0
2017-11-27T14:59:55.250Z
This shows the calendar, but any events added do not show at all
Tad Ward
CC BY-SA 3.0
2017-12-01T14:46:30.863Z
We're having a very difficult time trying to reproduce this issue. Are you at all able to create a support ticket and provide us with a CP login on your site for us to test this out? :)
Solspace
CC BY-SA 3.0
2017-12-01T14:55:44.667Z
I can. I'll get that submitted
Tad Ward
CC BY-SA 3.0
2017-12-07T14:24:20.467Z
Updated our answer here to display confirmed solution :)
Solspace
CC BY-SA 3.0
2017-12-08T17:13:00.950Z
Field has been changed. Appreciate the help!
Tad Ward
CC BY-SA 3.0
2017-11-23T06:58:08.797Z
2017-12-07T14:24:03.233Z
2017-12-07T14:24:03.233Z
Solspace
<p>I recently installed Calendar (latest 1.9.3) on my Craft install (latest 2.6.2997)</p>

<p>Within the demo templates provided by Calendar (/calendar_demo/), the month view, I am getting the following error:</p>

<p><code>Fatal error: Call to a member function getTimestamp() on boolean in ../craft/app/helpers/DbHelper.php on line 597</code></p>

<p>I have seem to narrow it down to the targetDate variable being set to "today"</p>

<p><code>{% set targetDate = "today" %}</code></p>

<p>However, if i go to the following url: <code>/calendar_demo/month/2017/11</code> the month view works but the test event I have doesn't show.</p>

<p>What am I missing here?</p>

<p>I am on a Pro license and only plugins I have installed are:</p>

<ul>
<li>Contact Form (P&amp;T)</li>
<li>Focus Point</li>
<li>Instagram Feed (currently disabled)</li>
<li>Minimee</li>
<li>Polls (currently disabled)</li>
<li>Relabel</li>
</ul>

<p>Again now sure what I am missing here any point in the right direction is welcomed.</p>

<solspace><plugin-solspacecalendar><calendar><plugin-calendar>
Calendar month view error
# Calendar month view error

(Asked by: username_0 on 2017-11-22)

I recently installed Calendar (latest 1.9.3) on my Craft install (latest 2.6.2997)

Within the demo templates provided by Calendar (/calendar\_demo/), the month view, I am getting the following error:

`Fatal error: Call to a member function getTimestamp() on boolean in ../craft/app/helpers/DbHelper.php on line 597`

I have seem to narrow it down to the targetDate variable being set to "today"

`{% set targetDate = "today" %}`

However, if i go to the following url: `/calendar_demo/month/2017/11` the month view works but the test event I have doesn't show.

What am I missing here?

I am on a Pro license and only plugins I have installed are:

* Contact Form (P&T)
* Focus Point
* Instagram Feed (currently disabled)
* Minimee
* Polls (currently disabled)
* Relabel

Again now sure what I am missing here any point in the right direction is welcomed.

**Tags:** solspace, plugin-solspacecalendar, calendar, plugin-calendar


---

## 1 answers

### Answer by username_1 on 2017-11-23. Score: 1 | Accepted answer

UPDATED RESPONSE...
We were finally able to get to the bottom of this and traced the issue down to your site likely having a DateTime field with the handle date, and this was apparently something Craft was choking on.
The next version of Calendar will fix this, but you can resolve this by renaming that DateTime field or patch this by looking for this code in calendar/services/Calendar_EventsService.php around line 100:
public function getEventList($criteria = null)
{
    if (!isset($criteria['allowedCalendarsOnly'])) {
        $criteria['allowedCalendarsOnly'] = false;
    }

And right after that, add this:
    if (isset($criteria['date'])) {
        unset($criteria['date']);
    }

Let me know if this resolves the issue for you. :)

> **Comments:**
> **username_0**: This shows the calendar, but any events added do not show at all  
> **username_1**: We're having a very difficult time trying to reproduce this issue. Are you at all able to create a support ticket and provide us with a CP login on your site for us to test this out? :)  
> **username_0**: I can. I'll get that submitted  
> **username_1**: Updated our answer here to display confirmed solution :)  
> **username_0**: Field has been changed. Appreciate the help!  

---

