Warning: pg_execute(): Query failed: ERROR: insert or update on table "visit" violates foreign key constraint "visit_page_id_fkey" DETAIL: Key (page_id)=(661) is not present in table "page". in /var/www/vhosts/profco.services/httpdocs/prod/com/include/database_common.php on line 73

Fatal error: Cannot execute prepared statement. ERROR: insert or update on table "visit" violates foreign key constraint "visit_page_id_fkey" DETAIL: Key (page_id)=(661) is not present in table "page". (sql = INSERT INTO visit(visitdate, page_id, counter) values($1, $2, 1)). | At: g_medb_query File: database_common.php Line: 74 in /var/www/vhosts/profco.services/httpdocs/prod/com/include/database_common.php on line 74