Drupal 7 PHP 8.4 Exception

Foutmelding: count(): Argument #1 ($value) must be of type Countable|array, string given
Bestand: /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/sites/default/themes/flwresearch/template.php (regel 124)

Stack trace:

#0 /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/sites/all/modules/views/includes/view.inc(1337): flwresearch_views_post_render()
#1 /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/sites/all/modules/views/plugins/views_plugin_display_page.inc(254): view->render()
#2 /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/sites/all/modules/views/includes/view.inc(1389): views_plugin_display_page->execute()
#3 /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/sites/all/modules/views/views.module(600): view->execute_display()
#4 /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/includes/menu.inc(527): views_page()
#5 /home/httpd/http/virtualhosts/_drupal_7_standalone/research.flw.ugent.be/index.php(25): menu_execute_active_handler()
#6 {main}