Notice: Trying to get property of non-object in /var/www/dev.cyprus.terrabook.com/wp-content/themes/terrabook/functions.php on line 278

Fatal error: Uncaught TypeError: Argument 1 passed to Terrabook_Api::get_region_hotels() must be of the type string, null given, called in /var/www/dev.cyprus.terrabook.com/wp-content/themes/terrabook/functions.php on line 278 and defined in /var/www/dev.cyprus.terrabook.com/wp-content/mu-plugins/terrabook/includes/class-terrabook-api.php:614 Stack trace: #0 /var/www/dev.cyprus.terrabook.com/wp-content/themes/terrabook/functions.php(278): Terrabook_Api->get_region_hotels(NULL) #1 /var/www/dev.cyprus.terrabook.com/wp-includes/class-wp-hook.php(286): add_scripts_and_styles('') #2 /var/www/dev.cyprus.terrabook.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /var/www/dev.cyprus.terrabook.com/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /var/www/dev.cyprus.terrabook.com/wp-includes/script-loader.php(2463): do_action('wp_enqueue_scri...') #5 /var/www/dev.cyprus.terrabook.com/wp-includes/class-wp-hook.php(286): wp_enqueue_scripts('') #6 /var/www/dev.cyprus.terrabook.com/wp-includes/cla in /var/www/dev.cyprus.terrabook.com/wp-content/mu-plugins/terrabook/includes/class-terrabook-api.php on line 614