# Uncaught PHP Exception FatalThrowableError Call to a member function getCount()

**URL:** <https://forum.mautic.org/t/uncaught-php-exception-fatalthrowableerror-call-to-a-member-function-getcount/21771>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [November 25, 2021, 7:43am UTC](https://forum.mautic.org/t/uncaught-php-exception-fatalthrowableerror-call-to-a-member-function-getcount/21771 "2021-11-25T07:43:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![shailemalla](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/shailemalla/32/1394_2.png) [@shailemalla](https://forum.mautic.org/u/shailemalla)\
**Post date:** [November 25, 2021, 8:07am UTC](https://forum.mautic.org/t/uncaught-php-exception-fatalthrowableerror-call-to-a-member-function-getcount/21771/3 "2021-11-25T08:07:15Z")

</div>

I had a similar problem. Everything was working except for dashboard.  
You may need to reset your desktop widgets params from the database one by one and see which widget is causing this problem.

see this post: [Mautic crashed: internal server error after editing dashboard “Best email read hours” widget - Support - Mautic Community Forums](https://forum.mautic.org/t/mautic-crashed-internal-server-error-after-editing-dashboard-best-email-read-hours-widget/21758/4)

Here’s how I fixed that:

SSH into your server.

1 .Fist login as root user in your mysql.

```auto
sudo mysql -u root

```

1. Replace `mautic-database-name` with your own mautic database name and run this in mysql interface:

```auto
USE mautic-database-name;

```

1. Print widgets table:

```auto
SELECT * FROM widgets;

```

1. find out the ID of the widget that is broken and update its params, in my case the ID of the widget was 7, so:

```auto
UPDATE widgets SET params = "a:0:{}" WHERE id = 7;

```

Repeat step 4 for your all widgets one be one, starting for the widget you suspect is causing problems.

You can also do all this from phpmyadmin if you have that installed.

Thanks

---

_[View the full topic](https://forum.mautic.org/t/uncaught-php-exception-fatalthrowableerror-call-to-a-member-function-getcount/21771)._
