Warning: Trying to access array offset on null in /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-content/themes/bathfringe2025/database/connection.php on line 42

Fatal error: Uncaught TypeError: mysqli_query(): Argument #1 ($mysql) must be of type mysqli, null given in /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-content/themes/bathfringe2025/database/connection.php:42 Stack trace: #0 /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-content/themes/bathfringe2025/database/connection.php(42): mysqli_query() #1 /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-content/themes/bathfringe2025/database/database-functions.php(586): mysqli_query_extra() #2 /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-content/themes/bathfringe2025/page-templates/page-venues.php(29): bathfringe_get_venues() #3 /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-includes/template-loader.php(106): include('...') #4 /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-blog-header.php(19): require_once('...') #5 /var/www/vhosts/bathfringe.co.uk/httpdocs/index.php(18): require('...') #6 {main} thrown in /var/www/vhosts/bathfringe.co.uk/httpdocs/wordpress/wp-content/themes/bathfringe2025/database/connection.php on line 42