Back to Related Articles Support

diezit.
diezit.

There's a small bug that causes an issue when a post does not have any categories. The related posts component will crash.

Call to a member function posts() on null /plugins/tallpro/related/components/Related.php line 70

I was able to fix this by adding the following line before getting the posts in the category; if(!$firstCategory) return false;

1-1 of 1