SQLSTATE[HY000]: General error: 2006 MySQL server has gone away Weilke Touristik

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /var/www/vhosts/weilke-touristik.de/production/wp-content/themes/travelshop/pm-detail.php:15 Stack trace: #0 /var/www/vhosts/weilke-touristik.de/production/wp-includes/template-loader.php(106): include() #1 /var/www/vhosts/weilke-touristik.de/production/wp-blog-header.php(19): require_once('...') #2 /var/www/vhosts/weilke-touristik.de/production/index.php(17): require('...') #3 {main} thrown in /var/www/vhosts/weilke-touristik.de/production/wp-content/themes/travelshop/pm-detail.php on line 15