A PHP Error was encountered

Severity: Notice

Message: Undefined index: country_ports

Filename: controllers/Country_controller.php

Line Number: 42

Backtrace:

File: /var/www/vhosts/dev.rivervoyages.com/public/application/controllers/Country_controller.php
Line: 42
Function: _error_handler

File: /var/www/vhosts/dev.rivervoyages.com/public/index.php
Line: 319
Function: require_once

Array
(
    [venice] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bc74c1b6aa60a6d9b4e18e3
                        )

                )

            [name] => venice.jpg
            [category] => port
            [assoc] => 93983
            [assoc_name] => venice
            [tags] => Array
                (
                    [0] => Venice
                    [1] => Italy
                    [2] => Po
                    [3] => Europe
                    [4] => country_gallery
                    [5] => river_gallery
                )

            [filename] => venice.jpg
            [size] => Array
                (
                    [big] => venice_1280_413.jpg
                    [medium] => venice_1024_330.jpg
                    [small] => venice_768_248.jpg
                    [mobile] => venice_480_200.jpg
                    [square] => venice_580_620.jpg
                )

            [alt] => Venice
            [title] => Venice
            [created] => 17/10/2018, 15:50:50
        )

)