# related\_blog\_posts not working

**URL:** <https://community.hubspot.com/t/related-blog-posts-not-working/45665>\
**Category:** CMS Development\
**Created:** [October 20, 2021, 7:25pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665 "2021-10-20T19:25:49Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![JHeatwole](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jheatwole/32/63363_2.png) [@JHeatwole](https://community.hubspot.com/u/JHeatwole)\
**Post date:** [October 20, 2021, 7:25pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/1 "2021-10-20T19:25:49Z")

</div>

Hi everyone,

I am using a related\_blog\_posts tag with a callback that was working fine before today, but now I’m getting an “IllegalArgumentException: Cannot convert property featuredImageResizeOptions to query parameter, OBJECT is not a valid type” error event though I didn’t change anything and the related posts won’t render. Is anyone else getting this error?

------

Example page: [https://blog-mandrytechnology-com.sandbox.hs-sites.com/services/mandry-manage](https://blog-mandrytechnology-com.sandbox.hs-sites.com/services/mandry-manage)

Under the “Recent Managed IT Services Resources” heading

------

Module code:

```lia-code-sample
{% related_blog_posts blog_ids="{{ module.blog_field }}", tags="{{ module.tag_field }}", limit='{{ module.number_to_show }}', callback="blog_post_formatter" %}

<script>
var blog_post_formatter = function(blogposts) {

var formatted = '<div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ module.number_of_columns }} g-4">';
for (var i = 0; i < blogposts.length; i++) {
var blogpost = blogposts[i];
formatted += '<div class="col">';
formatted += '<div class="card h-100">';
{% if module.show_image %}formatted += `<div class="card-img-top card-img-div" alt="${blogpost.featuredImageAltText}" style="background-image: url(${blogpost.featuredImage});
background-size: cover; height: 250px;"></div>`;{% endif %}
formatted += '<div class="card-body d-flex flex-column align-items-start">';
formatted += `<h5 class="card-title pb-3">${blogpost.name}</h5>`;
{% if module.show_description %}formatted += `${blogpost.postSummary}`;{% endif %}
formatted += `<a href="${blogpost.url}" class="btn btn-outline-primary mt-auto">{% inline_text field="button_label" value="{{ module.button_label }}" %}</a>`;
formatted += '</div>';
formatted += '</div>';
formatted += '</div>';
}
formatted += '</div>';
return formatted;
}
</script>

```

-----

Thanks!

---

<div class="post-metadata">

**Author:** ![neobats](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/neobats/32/84335_2.png) [@neobats](https://community.hubspot.com/u/neobats)\
**Post date:** [October 20, 2021, 8:34pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/2 "2021-10-20T20:34:08Z")

</div>

I’m getting this all of a sudden too. The markup hasn’t changed from when it was working.

---

<div class="post-metadata">

**Author:** ![JHeatwole](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jheatwole/32/63363_2.png) [@JHeatwole](https://community.hubspot.com/u/JHeatwole)\
**Post date:** [October 20, 2021, 8:39pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/3 "2021-10-20T20:39:04Z")

</div>

Same. I talked to support and I think they thought I just messed the module up at first but because it’s happening for you too, he said they are going to check on it internally.

---

<div class="post-metadata">

**Author:** ![neobats](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/neobats/32/84335_2.png) [@neobats](https://community.hubspot.com/u/neobats)\
**Post date:** [October 20, 2021, 9:10pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/4 "2021-10-20T21:10:28Z")

</div>

I did some more poking around and in another template, I added the module as a dnd\_module, and it worked fine.

Where I’m encountering the issue is in a blog page template, which does not support dnd\_areas, so I can’t try the same fix.

---

<div class="post-metadata">

**Author:** ![JHeatwole](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jheatwole/32/63363_2.png) [@JHeatwole](https://community.hubspot.com/u/JHeatwole)\
**Post date:** [October 20, 2021, 9:16pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/5 "2021-10-20T21:16:48Z")

</div>

Interesting. Yes I have it on a blog page template but also as a module that I just add to pages as needed and isn’t part of the page template and it’s not working in either place. It seems to be an issue with the related\_blog\_posts tag itself because the error shows up even if that tag is the only thing that exists in the code (screenshots below).

Full module code:

 ![image-Oct-20-2021-08-25-08-29-PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/0/10c6b6b90b1706e954912928b331fa60654e84da.png)

related\_blog\_posts tag only:

 ![image-Oct-20-2021-08-25-24-53-PM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/1/e150d41e2fe26c5520f82b774f53f7d2ecf7e596.png)

---

<div class="post-metadata">

**Author:** ![RMarins](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@RMarins](https://community.hubspot.com/u/RMarins)\
**Post date:** [October 21, 2021, 1:06am UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/6 "2021-10-21T01:06:15Z")

</div>

Yep, I’m getting the exact same issue. Working fine before today and all of the sudden it stopped working. I can only assume this is an internal issue with the related\_blog\_posts method.  
I have it on a module and a few templates (Pages,Blogs).

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [October 21, 2021, 6:04am UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/7 "2021-10-21T06:04:55Z")

</div>

Hey @JHeatwole @neobats,

Happy to help here 🙂

Thanks for pointing this out! I was able to reproduce this error as well.

For this case, I’ve reached out to our internal team to check on it and I’ll keep you both posted here.

---

<div class="post-metadata">

**Author:** ![JHeatwole](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jheatwole/32/63363_2.png) [@JHeatwole](https://community.hubspot.com/u/JHeatwole)\
**Post date:** [October 21, 2021, 1:06pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/8 "2021-10-21T13:06:25Z")

</div>

Thanks so much!

---

<div class="post-metadata">

**Author:** ![neobats](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/neobats/32/84335_2.png) [@neobats](https://community.hubspot.com/u/neobats)\
**Post date:** [October 21, 2021, 2:13pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/9 "2021-10-21T14:13:02Z")

</div>

Hey WendyGoh!

Thanks for this update! Do you have an ETA on when we could expect a fix or how we could roll back to a previous version?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 21, 2021, 2:15pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/10 "2021-10-21T14:15:37Z")

</div>

Hey all!  
Wendy is out for the day. I will monitor this issue and report back when there is a fix.

Thanks for reporting !

---

<div class="post-metadata">

**Author:** ![RMarins](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@RMarins](https://community.hubspot.com/u/RMarins)\
**Post date:** [October 21, 2021, 8:26pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/11 "2021-10-21T20:26:25Z")

</div>

@dennisedson@JHeatwole @neobats Looks like it’s all working again. Could you confirm that you are also seeing this ?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 21, 2021, 8:30pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/12 "2021-10-21T20:30:39Z")

</div>

I did a terrible job watching this issue 😞

Looks like a fix was deployed at 10.17am est.

---

<div class="post-metadata">

**Author:** ![neobats](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/neobats/32/84335_2.png) [@neobats](https://community.hubspot.com/u/neobats)\
**Post date:** [October 21, 2021, 8:58pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/13 "2021-10-21T20:58:08Z")

</div>

Hey Dennis! We saw the fix. I just verified that at least for me (cc. @JHeatwole ) that it’s working in my blog template in my sandbox.

---

<div class="post-metadata">

**Author:** ![JHeatwole](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jheatwole/32/63363_2.png) [@JHeatwole](https://community.hubspot.com/u/JHeatwole)\
**Post date:** [October 21, 2021, 8:52pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/14 "2021-10-21T20:52:27Z")

</div>

@RMarins @neobats

Haha no worries @dennisedson. I did notice it was working where I just have it as a regular module added to pages (example: [https://blog-mandrytechnology-com.sandbox.hs-sites.com/services/mandry-manage](https://blog-mandrytechnology-com.sandbox.hs-sites.com/services/mandry-manage)), but it still isn’t working where it’s part of my blog template (example: [https://blog.mandrytechnology.com/resources/supporting-a-worthy-cause-foundation-for-hcm](https://blog.mandrytechnology.com/resources/supporting-a-worthy-cause-foundation-for-hcm)). Is anyone else having that issue?

---

<div class="post-metadata">

**Author:** ![JHeatwole](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jheatwole/32/63363_2.png) [@JHeatwole](https://community.hubspot.com/u/JHeatwole)\
**Post date:** [October 21, 2021, 8:57pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/15 "2021-10-21T20:57:49Z")

</div>

@dennisedson @RMarins @neobats Never mind! They are showing now. Thank you everyone!

---

<div class="post-metadata">

**Author:** ![RMarins](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@RMarins](https://community.hubspot.com/u/RMarins)\
**Post date:** [November 2, 2021, 3:42am UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/16 "2021-11-02T03:42:45Z")

</div>

@dennisedson @WendyGoh Could you just confirm if the related\_blog\_posts is actually working as expected ?  
I am currently getting blog posts, but seems like the limit being set to 200 breaks the query. Setting it to up to 199 works as expected, from 200 the latest post I have isn’t fetched.

199 - [https://www.lancom.tech/\_hcms/related-blog-posts-callback?targetBlogIds=36370869714&macro=default&limit=199&templatePath=lancom%2Ftemplates%2Fgeneral.html&contentId=36820190736&requestPath=%2Four-case-studies&hs-expires=1667360473&hs-version=1&hs-signature=AM6Wq0bUV8Kf\_bkCykyXN\_IlmdfXLkxGrQ](https://www.lancom.tech/_hcms/related-blog-posts-callback?targetBlogIds=36370869714&macro=default&limit=199&templatePath=lancom%2Ftemplates%2Fgeneral.html&contentId=36820190736&requestPath=%2Four-case-studies&hs-expires=1667360473&hs-version=1&hs-signature=AM6Wq0bUV8Kf_bkCykyXN_IlmdfXLkxGrQ)  
200 - [https://www.lancom.tech/\_hcms/related-blog-posts-callback?targetBlogIds=36370869714&macro=default&limit=200&templatePath=lancom%2Ftemplates%2Fgeneral.html&contentId=36820190736&requestPath=%2Four-case-studies&hs-expires=1667360473&hs-version=1&hs-signature=AM6Wq0at7OX8zcDKOJH6BNMoNjB6nv8-EQ](https://www.lancom.tech/_hcms/related-blog-posts-callback?targetBlogIds=36370869714&macro=default&limit=200&templatePath=lancom%2Ftemplates%2Fgeneral.html&contentId=36820190736&requestPath=%2Four-case-studies&hs-expires=1667360473&hs-version=1&hs-signature=AM6Wq0at7OX8zcDKOJH6BNMoNjB6nv8-EQ)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 4, 2021, 1:04pm UTC](https://community.hubspot.com/t/related-blog-posts-not-working/45665/17 "2021-11-04T13:04:01Z")

</div>

I have not seen any reports that it isn’t working as expected currently 🤔
