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
(
    [aswan] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bc88e4e6aa60a6d9b5269f1
                        )

                )

            [name] => aswan.jpg
            [category] => port
            [assoc] => 326
            [assoc_name] => aswan
            [tags] => Array
                (
                    [0] => Aswan
                    [1] => Egypt
                    [2] => Nile
                    [3] => Africa
                    [4] => river_gallery
                    [5] => country_gallery
                )

            [filename] => aswan.jpg
            [size] => Array
                (
                    [big] => aswan_1280_413.jpg
                    [medium] => aswan_1024_330.jpg
                    [small] => aswan_768_248.jpg
                    [mobile] => aswan_480_200.jpg
                    [square] => aswan_580_620.jpg
                )

            [alt] => Aswan
            [title] => Aswan
            [created] => 18/10/2018, 14:44:46
        )

    [cairo] => 
    [luxor] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bc750006aa60a6d9b4e28d0
                        )

                )

            [name] => luxor-4.jpg
            [category] => port
            [assoc] => 2307
            [assoc_name] => giza
            [tags] => Array
                (
                    [0] => Luxor
                    [1] => Egypt
                    [2] => Nile
                    [3] => Africa
                )

            [filename] => luxor-4.jpg
            [size] => Array
                (
                    [big] => luxor-4_1280_413.jpg
                    [medium] => luxor-4_1024_330.jpg
                    [small] => luxor-4_768_248.jpg
                    [mobile] => luxor-4_480_200.jpg
                    [square] => luxor-4_580_620.jpg
                )

            [alt] => Giza
            [title] => Giza
            [created] => 18/10/2018, 16:15:14
        )

)