# Migrating to Articles from GetResources

**URL:** <https://community.modx.com/t/migrating-to-articles-from-getresources/1745>\
**Category:** Extras\
**Created:** [October 29, 2019, 11:12am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745 "2019-10-29T11:12:33Z")\
**Posts on this page:** 12\
**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:** [October 29, 2019, 11:12am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/1 "2019-10-29T11:12:33Z")

</div>

Hi There,

I recently created a topic regarding an issue with Archivist while using PHP v7.2.

> [@Archivist 500 error](https://community.modx.com/t/archivist-500-error/1672):
>
> Hi All! I have a blog which i created using collections/tagger/archivist. It has been up and running for many years, and not a problem, but today a user mentioned that the archives section isn’t working, and throws 500 errors whenever they click on a year. I haven[t’ changed anything, so all i can think is that an update somewhere down the line killed it. This is what I have to create the links to the years: ` [[!Archivist? &target=`135` &parents=`137` &useMonth=`0` &tpl=`archiveLink…

I have another site which runs archivist within Articles, and it’s fine, so I’m thinking of migrating my blog into Articles (Currently I’ve rolled my own using a combination of getResources, Collections, Tagger, Archivist etc).

The question is - I have a whole load of articles that are Standard Resources - can I convert them into Article Document types easily enough?

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [October 29, 2019, 11:23am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/2 "2019-10-29T11:23:29Z")

</div>

I can’t help you with your question, but I wanted to note that Articles can be a real pain to deal with, as it’s really hard to find and edit certain parts, if they are not present in the default settings. I’ve gone through this and usually found most of the things I needed, but if you are switching from an almost well running system, I would advise against Articles. You will kill a lot of time with this extra, so you need to evaluate if it’s more time consuming to fix your current issue or to build an entirely new setup.

---

<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, 11:25am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/3 "2019-10-29T11:25:03Z")

</div>

Hmm OK thanks, will bear that in mind.

Just hit a dead end with the solution of the Archives issue, so trying to think of a work-around!

---

<div class="post-metadata">

**Author:** ![vibedesign](https://community.modx.com/user_avatar/community.modx.com/vibedesign/32/741_2.png) [@vibedesign](https://community.modx.com/u/vibedesign)\
**Post date:** [October 29, 2019, 11:31am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/4 "2019-10-29T11:31:03Z")

</div>

Sure! And Articles is a good extra, but it has it’s problems because nobody worked on it in a while. Maybe go for a little test run first to see if it works for you.

---

<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, 11:53am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/5 "2019-10-29T11:53:49Z")

</div>

Yep - will dip my toe in the water! Just need to know if it’s possible to migrate standard resources into articles. Will give it a try

---

<div class="post-metadata">

**Author:** ![joshualuckers](https://community.modx.com/user_avatar/community.modx.com/joshualuckers/32/4244_2.png) [@joshualuckers](https://community.modx.com/u/joshualuckers)\
**Post date:** [October 29, 2019, 11:58am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/6 "2019-10-29T11:58:27Z")

</div>

I recently pushed some updates for Articles and try to give it some attention now and then (I’m not the original author of the extra) but I wouldn’t suggest migrating from Collections to Articles.

For what reason do you want to migrate to Articles?

---

<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, 12:41pm UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/7 "2019-10-29T12:41:56Z")

</div>

Thanks - great you are helping with the Articles Extra - thanks!!

The reason I was thinking of moving into Articles was due to Archivist no longer working since I upgraded to PHP 7.2. When I click on the ‘years’ link on the site, IU get a 500 error. If I changed the server back to PHP 7.0 (which is EOL) it works fine!

I know Articles uses Archivist too, but I have another site running on Articles and PHP 7.2 and the Archivist plugin works fine - so I wondered if Articles was somehow helping to make it work?

Clutching at straws though!

---

<div class="post-metadata">

**Author:** ![joshualuckers](https://community.modx.com/user_avatar/community.modx.com/joshualuckers/32/4244_2.png) [@joshualuckers](https://community.modx.com/u/joshualuckers)\
**Post date:** [October 29, 2019, 3:10pm UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/8 "2019-10-29T15:10:15Z")

</div>

Is it possible to get the error message thrown when you try to run it on 7.2? Maybe we can fix it in Archivist.

---

<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, 3:32pm UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/9 "2019-10-29T15:32:52Z")

</div>

Thanks.  
I just tried the page, and check4d the error log - but it’s empty! Although I get a 500 error, it’s not being logged for some reason. I checked the system settings for debug, and it’s set to 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:** [October 29, 2019, 3:37pm UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/10 "2019-10-29T15:37:55Z")

</div>

one error which keeps cropping up in Modx though is this - but I don’t think it’s related to the problem do you?  
`[2019-10-29 15:35:13] (ERROR @ /home/site/public_html/core/components/bigbrother/model/bigbrother/bigbrother.class.php : 398) PHP warning: sizeof(): Parameter must be an array or an object that implements Countable [2019-10-29 15:36:23] (ERROR @ /home/site/public_html/core/cache/includes/elements/modsnippet/67.include.cache.php : 148) PHP warning: count(): Parameter must be an array or an object that implements Countable `

---

<div class="post-metadata">

**Author:** ![bobray](https://community.modx.com/user_avatar/community.modx.com/bobray/32/46_2.png) [@bobray](https://community.modx.com/u/bobray)\
**Post date:** [October 30, 2019, 7:36pm UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/11 "2019-10-30T19:36:45Z")

</div>

> [@tm2000](#):
>
> Parameter must be an array or an object that implements Countable

That error message is just a warning (due to a change in PHP 7.2). I guess it might possibly lead to the 500 error depending on how the result of the `count()` or `sizeof()` calls are used (`sizeof()` is an alias of `count()`). In your case, they would be returning 1 or 0 (most likely 1), instead of the actual count.

Make sure BigBrother is up to date. If it is, report the bug using the “support” link here: [BigBrother](https://modx.com/extras/package/bigbrother).

It’s quite possible that the warning has nothing to do with your problem, though.

---

<div class="post-metadata">

**Author:** ![digitalpenguin](https://community.modx.com/user_avatar/community.modx.com/digitalpenguin/32/32_2.png) [@digitalpenguin](https://community.modx.com/u/digitalpenguin)\
**Post date:** [October 31, 2019, 5:50am UTC](https://community.modx.com/t/migrating-to-articles-from-getresources/1745/12 "2019-10-31T05:50:47Z")

</div>

Try setting the log level to 4. There might then be a warning that offers a clue.
