# Dashboard displays Error 500

**URL:** <https://forum.mautic.org/t/dashboard-displays-error-500/24942>\
**Category:** Product Support\
**Created:** [August 2, 2022, 2:36pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942 "2022-08-02T14:36:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aichhoernchen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aichhoernchen/32/6875_2.png) [@aichhoernchen](https://forum.mautic.org/u/aichhoernchen)\
**Post date:** [August 2, 2022, 2:36pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/1 "2022-08-02T14:36:04Z")

</div>

**Your software**  
My Mautic version is: 4.2.0  
My PHP version is: 7.4.0  
My Database type and version is: mySQL5.7.38-0ubuntu0.18.04.1

**Your problem**  
My problem is:

My Mautic installation works fine, but I can’t access the dashboard. I get an error 500 when trying

These errors are showing in the log:

[2022-08-02 09:16:52] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 10:47:46] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 11:36:16] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 11:36:24] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 11:36:29] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 13:22:35] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 13:22:47] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 15:16:49] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:20:39] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:20:50] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:22:08] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:22:26] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:22:31] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:22:41] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:22:52] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:23:53] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:24:31] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:24:46] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:25:51] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:29:02] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}   
[2022-08-02 16:30:24] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: “Call to a member function createQueryBuilder() on null” at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php line 79 {“exception”:“[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function createQueryBuilder() on null at /home/at10309/web/marketing.nastu.ch/public\_html/app/bundles/EmailBundle/Stats/Helper/FilterTrait.php:79)”}

Steps I have tried to fix the problem:

None yet, asI have no clue what I could have done to trigger this error

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [August 2, 2022, 3:26pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/2 "2022-08-02T15:26:36Z")

</div>

Try deleting everything in your  
`/var/cache/`  
folder

---

<div class="post-metadata">

**Author:** ![aichhoernchen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aichhoernchen/32/6875_2.png) [@aichhoernchen](https://forum.mautic.org/u/aichhoernchen)\
**Post date:** [August 2, 2022, 6:11pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/3 "2022-08-02T18:11:13Z")

</div>

@techbill Thank you for your feedback!  
Unfortunately deleting the cache did not help.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [August 2, 2022, 6:23pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/4 "2022-08-02T18:23:33Z")

</div>

I hope you did not delete the /var/cache/ but what is inside the /cache/ folder. If you deleted the /cache/ itself then recreate the cache folder again and set the permission on it.

Did you enable or edit any widget etc?

---

<div class="post-metadata">

**Author:** ![aichhoernchen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aichhoernchen/32/6875_2.png) [@aichhoernchen](https://forum.mautic.org/u/aichhoernchen)\
**Post date:** [August 2, 2022, 6:40pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/5 "2022-08-02T18:40:16Z")

</div>

I actually **renamed** the /cache/ folder and a new /cache/ folder recreated itself within seconds.

I added an e-mail-related widget to the dashboard today but thought that I had already removed it because it did not show what I expected.

Just to be clear - I can access all pages in Mautic besides the dashboard. If I click on [Dashoard] in the navigation it does not load and if I manually add “/s/dashboard” to my mautic domain I get a “500 Internal Server Error” …

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [August 2, 2022, 7:09pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/6 "2022-08-02T19:09:23Z")

</div>

Reason I asked about widget because your error seem very similar to this one reported over at [Mautic crashed: internal server error after editing dashboard "Best email read hours" widget · Issue #10640 · mautic/mautic · GitHub](https://github.com/mautic/mautic/issues/10640)

---

<div class="post-metadata">

**Author:** ![aichhoernchen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/aichhoernchen/32/6875_2.png) [@aichhoernchen](https://forum.mautic.org/u/aichhoernchen)\
**Post date:** [August 2, 2022, 7:21pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/7 "2022-08-02T19:21:02Z")

</div>

@techbill - THANK YOU A LOT for pointing me to that topic.

Changing …

**a:4:{s:10:“timeFormat”;N;s:9:“companyId”;s:0:“”;s:10:“campaignId”;N;s:9:“segmentId”;i:148;}**

… to …

**a:0:{}**

… did the trick. My dashboard works again 👍

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [August 2, 2022, 7:22pm UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/8 "2022-08-02T19:22:40Z")

</div>

Awesome!

Glad you got your dashboard back!

---

<div class="post-metadata">

**Author:** ![iamrahulks](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/iamrahulks/32/11539_2.png) [@iamrahulks](https://forum.mautic.org/u/iamrahulks)\
**Post date:** [May 21, 2024, 11:34am UTC](https://forum.mautic.org/t/dashboard-displays-error-500/24942/9 "2024-05-21T11:34:43Z")

</div>

Hello,

After doing this my dashboard give site offline error.
