: pg_insert(): Query failed: ERROR: duplicate key value violates unique constraint "ip_addresses_ip_address_key"
DETAIL: Key (ip_address)=(216.73.216.14) already exists. [in
Code
## Insert into database.
pg_insert($db, "ip_addresses", $ip);
}
pg_insert [internal], line ??
App\Controller\AppController::getIPInfo() /var/www/storagetrailersllc-archive.com/public_html/src/Controller/AppController.php, line 204
App\Controller\AppController::beforeFilter() /var/www/storagetrailersllc-archive.com/public_html/src/Controller/AppController.php, line 84
App\Controller\PagesController::beforeFilter() /var/www/storagetrailersllc-archive.com/public_html/src/Controller/PagesController.php, line 23
Cake\Event\EventManager::_callListener() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Event/EventManager.php, line 309
Cake\Event\EventManager::dispatch() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Event/EventManager.php, line 286
Cake\Controller\Controller::dispatchEvent() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Event/EventDispatcherTrait.php, line 92
Cake\Controller\Controller::startupProcess() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Controller/Controller.php, line 645
Cake\Controller\ControllerFactory::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 129
Cake\Controller\ControllerFactory::invoke() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114
Cake\Http\BaseApplication::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 320
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Middleware\CsrfProtectionMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 164
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Middleware\BodyParserMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
App\Middleware\SimpleAuthorizationMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/src/Middleware/SimpleAuthorizationMiddleware.php, line 30
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Authentication\Middleware\AuthenticationMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 124
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Routing\Middleware\RoutingMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 187
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Routing\Middleware\AssetMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 68
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Error\Middleware\ErrorHandlerMiddleware::process() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 131
Cake\Http\Runner::handle() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner::run() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Runner.php, line 67
Cake\Http\Server::run() /var/www/storagetrailersllc-archive.com/public_html/vendor/cakephp/cakephp/src/Http/Server.php, line 90
[main] /var/www/storagetrailersllc-archive.com/public_html/webroot/index.php, line 40