# Archivist 500 error

**URL:** <https://community.modx.com/t/archivist-500-error/1672>\
**Category:** Extras\
**Created:** [October 16, 2019, 2:14pm UTC](https://community.modx.com/t/archivist-500-error/1672 "2019-10-16T14:14:23Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![tm2000](https://community.modx.com/user_avatar/community.modx.com/tm2000/32/178_2.png) [@tm2000](https://community.modx.com/u/tm2000)\
**Post date:** [October 29, 2019, 4:02pm UTC](https://community.modx.com/t/archivist-500-error/1672/18 "2019-10-29T16:02:42Z")

</div>

Thanks for this - but I just managed to solve it - from a previous post i just found:

> [@Archivist Landing Page Blank](https://community.modx.com/t/archivist-landing-page-blank/1420):
>
> Having updated to PHP 7.2, Archivist now loads a blank page from the [[+url]] in the navigation link Tpl chunk called by [[!Archivist?]] , so for example, the archive link to [www.url.com/archive-result/2018/08](http://www.url.com/archive-result/2018/08) shows a blank page, with a ‘HTTP ERROR 500’ The error log shows /home/p/public\_html/core/cache/includes/elements/modsnippet/1.include.cache.php : 142) PHP warning: count(): Parameter must be an array or an object that implements Countable We see this stack trace: mod\_fcgid: stderr: #0 …

Basically on line 60 of the snippet getArchives it says to change:

```
$where[] = 'FROM_UNIXTIME(`'.$filterField.'`,"%Y") = "'.$year.'"';

```

to:

```
$where =[];
$where[] = 'FROM_UNIXTIME(`'.$filterField.'`,"%Y") = "'.$year.'"';

```

All working fine now!  
Only problem is if there is a future update of the snippet, it may reverse the fix if it’s not in the update?

Thanks all - Got there in the end!!

---

_[View the full topic](https://community.modx.com/t/archivist-500-error/1672)._
