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

                )

            [name] => beijing.jpg
            [category] => port
            [assoc] => 736
            [assoc_name] => beijing_(tianjin)
            [tags] => Array
                (
                    [0] => Beijing
                    [1] => China
                    [2] => Yangtze
                    [3] => Asia
                    [4] => river_gallery
                    [5] => Beijing (Tianjin)
                    [6] => country_gallery
                )

            [filename] => beijing.jpg
            [size] => Array
                (
                    [big] => beijing_1280_413.jpg
                    [medium] => beijing_1024_330.jpg
                    [small] => beijing_768_248.jpg
                    [mobile] => beijing_480_200.jpg
                    [square] => beijing_580_620.jpg
                )

            [alt] => Beijing
            [title] => Beijing
            [created] => 17/10/2018, 16:59:31
        )

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

                )

            [name] => shanghai.jpg
            [category] => port
            [assoc] => 100265
            [assoc_name] => shanghai
            [tags] => Array
                (
                    [0] => Shanghai
                    [1] => China
                    [2] => Yangtze
                    [3] => Asia
                    [4] => river_gallery
                    [5] => region_gallery
                )

            [filename] => shanghai.jpg
            [size] => Array
                (
                    [big] => shanghai_1280_413.jpg
                    [medium] => shanghai_1024_330.jpg
                    [small] => shanghai_768_248.jpg
                    [mobile] => shanghai_480_200.jpg
                    [square] => shanghai_580_620.jpg
                )

            [alt] => Shanghai
            [title] => Shanghai
            [created] => 18/10/2018, 15:58:23
        )

    [the_three_gorges] => 
    [xian] => Array
        (
            [_id] => MongoId Object
                (
                    [objectID:MongoId:private] => MongoDB\BSON\ObjectId Object
                        (
                            [oid] => 5bc8641e6aa60a6d9b51c034
                        )

                )

            [name] => xian.jpg
            [category] => port
            [assoc] => 1062
            [assoc_name] => xi'an
            [tags] => Array
                (
                    [0] => Xi'an
                    [1] => China
                    [2] => Yangtze
                    [3] => Asia
                    [4] => Xian
                )

            [filename] => xian.jpg
            [size] => Array
                (
                    [big] => xian_1280_413.jpg
                    [medium] => xian_1024_330.jpg
                    [small] => xian_768_248.jpg
                    [mobile] => xian_480_200.jpg
                    [square] => xian_580_620.jpg
                )

            [alt] => Xi'an
            [title] => Xi'an
            [created] => 18/10/2018, 11:44:46
        )

)