Error thrown

Call to a member function get_allowed_countries() on null