# Archivist with Modx3 - 404 error

**URL:** <https://community.modx.com/t/archivist-with-modx3-404-error/7518>\
**Category:** Support\
**Created:** [February 12, 2024, 11:25am UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518 "2024-02-12T11:25:40Z")\
**Posts on this page:** 10\
**Page:** 1

<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:** [February 12, 2024, 11:25am UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/1 "2024-02-12T11:25:40Z")

</div>

Hi there,

I have installed Archivist to display a list of archive resources by month.  
The list works fine, and the URL it creates is as expected [example.com/archive/2023/12/](http://example.com/archive/2023/12/)

This is the archivist call:

```auto
<ul class="archiveList">[[!Archivist? &parents=`6` &target=`34` &tpl=`newsSidebarListTpl`]]</ul>

```

But I get a 404 error when clicking any of the links.

This is the target resource getArchives call:

```auto
[[!getArchives?
   &parents=`6`
   &toPlaceholder=`archives`
]]

<h2>[[!+arc_month_name]] [[!+arc_year]] Archives</h2>

[[!+archives]]

```

Is there a compatibility issue with Modx3?

Any ideas? or alternatives I can use for listing archives?

Thanks  
Andy

---

<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:** [February 12, 2024, 12:17pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/2 "2024-02-12T12:17:24Z")

</div>

The error log is empty BTW

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [February 12, 2024, 2:23pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/3 "2024-02-12T14:23:34Z")

</div>

Check the system setting `archivist.archive_ids`. Is the “target” resource (34) in the list?

---

<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:** [February 12, 2024, 2:30pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/4 "2024-02-12T14:30:36Z")

</div>

Thanks - so this is interesting - there are no Archivist System settings at all!  
I have reinstalled archivist - but there are still no system settings associated with the namespace

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [February 12, 2024, 3:37pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/5 "2024-02-12T15:37:46Z")

</div>

I believe this system setting should be created automatically when you run the snippet “getArchives” on a resource.  
Try to view your “target” resource once directly (so that “getArchives” runs) and see if the setting gets created.

---

<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:** [February 12, 2024, 3:44pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/6 "2024-02-12T15:44:57Z")

</div>

Ah OK - thanks. When I viewed the resource it gave me an error that getResources needs to be installed. I have been using pdoResources for this site, so didn’t have it installed! So now that’s installed, it’s no longer throwing a 404 error, and is working as expected.

My bad, I didn’t realise getResources was a dependency of this extra!

Thanks for the steer!

Andy

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [February 12, 2024, 3:52pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/7 "2024-02-12T15:52:09Z")

</div>

> [@tm2000](#):
>
> I didn’t realise getResources was a dependency of this extra!

There should be a property `&grSnippet` that you can set.  
“pdoResources” might work as well.

* * *

> [@tm2000](#):
>
> So now that’s installed, it’s no longer throwing a 404 error

That wasn’t the cause of the 404.  
The missing system setting was.

---

<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:** [February 12, 2024, 3:53pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/8 "2024-02-12T15:53:24Z")

</div>

> [@halftrainedharry](#):
>
> There should be a property `&grSnippet` that you can set.  
> “pdoResources” might work as well.

Ah Ok - will have a look - I prefer to keep my extras to a minimum!

Thanks

---

<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:** [February 12, 2024, 3:53pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/9 "2024-02-12T15:53:36Z")

</div>

Yes of course. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://community.modx.com/user_avatar/community.modx.com/system/32/2_2.png) [@system](https://community.modx.com/u/system)\
**Post date:** [February 14, 2024, 3:54pm UTC](https://community.modx.com/t/archivist-with-modx3-404-error/7518/10 "2024-02-14T15:54:08Z")

</div>

Closed on February 14, 2024, 3:54pm UTC

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.
