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

                )

            [name] => antwerp.jpg
            [category] => port
            [assoc] => 95193
            [assoc_name] => antwerp_belgium
            [tags] => Array
                (
                    [0] => Antwerp
                    [1] => Belgium
                    [2] => Dutch Waterways
                    [3] => Europe
                    [4] => Antwerp, Belgium
                )

            [filename] => antwerp.jpg
            [size] => Array
                (
                    [big] => antwerp_1280_413.jpg
                    [medium] => antwerp_1024_330.jpg
                    [small] => antwerp_768_248.jpg
                    [mobile] => antwerp_480_200.jpg
                    [square] => antwerp_580_620.jpg
                )

            [alt] => Antwerp
            [title] => Antwerp
            [created] => 17/10/2018, 17:20:02
        )

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

                )

            [name] => bruges.jpg
            [category] => port
            [assoc] => 94174
            [assoc_name] => bruges
            [tags] => Array
                (
                    [0] => Bruges
                    [1] => Belgium
                    [2] => Dutch Waterways
                    [3] => Europe
                    [4] => river_gallery
                    [5] => country_gallery
                )

            [filename] => bruges.jpg
            [size] => Array
                (
                    [big] => bruges_1280_413.jpg
                    [medium] => bruges_1024_330.jpg
                    [small] => bruges_768_248.jpg
                    [mobile] => bruges_480_200.jpg
                    [square] => bruges_580_620.jpg
                )

            [alt] => Bruges
            [title] => Bruges
            [created] => 18/10/2018, 15:03:55
        )

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

                )

            [name] => ghent.jpg
            [category] => port
            [assoc] => 67
            [assoc_name] => normandy_
            [tags] => Array
                (
                    [0] => Ghent
                    [1] => Belgium
                    [2] => Dutch Waterways
                    [3] => Europe
                    [4] => country_gallery
                )

            [filename] => ghent.jpg
            [size] => Array
                (
                    [big] => ghent_1280_413.jpg
                    [medium] => ghent_1024_330.jpg
                    [small] => ghent_768_248.jpg
                    [mobile] => ghent_480_200.jpg
                    [square] => ghent_580_620.jpg
                )

            [alt] => Ghent
            [title] => Ghent
            [created] => 18/10/2018, 15:00:43
        )

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

                )

            [name] => dutch-belgian-waterways.jpg
            [category] => port
            [assoc] => li├Ęge
            [assoc_name] => 
            [tags] => Array
                (
                    [0] => Liege
                    [1] => Belgium
                    [2] => Europe
                    [3] => country_gallery
                )

            [filename] => dutch-belgian-waterways.jpg
            [size] => Array
                (
                    [big] => dutch-belgian-waterways_1280_413.jpg
                    [medium] => dutch-belgian-waterways_1024_330.jpg
                    [small] => dutch-belgian-waterways_768_248.jpg
                    [mobile] => dutch-belgian-waterways_480_200.jpg
                    [square] => dutch-belgian-waterways_580_620.jpg
                )

            [alt] => Liege
            [title] => Liege
            [created] => 24/05/2019, 16:43:37
        )

)