Upgrading to newest Kirby after a few years, get this error

Hello

My site is down currently as I have tried to upgrade to the newest Kirby and I am currently getting this error.

http://freewebcards.com/

Anyone have an idea what I can do here? Not exactly sure.

Unfortunately, we don’t see how $mostPopularCardsis defined. But if I assume that it is a collection of pages and hence $row is a page object, then it should be $row->cardname().

Or maybe it is a structure collection, but the solution would be the same.

Awesome thanks this worked.