Civicrm 5.57.0 on Wordpress 6.1.1 Within a single contact you can leave notes. since the last update, if you want to view the notes, this error appears in the log file and nothing come up. When I press edit, the content of the note comes up. This is now the workaround to view the notes, just to press edit.
Jan 13 08:14:53 [error]
$Fatal Error Details = array:3 [
"message" => "Expected to find one Note record, but there were multiple."
"code" => null
"exception" => CRM_Core_Exception {#8316
-errorData: array:1 [
"error_code" => 0
]
#cause: null
-_trace: null
#message: "Expected to find one Note record, but there were multiple."
#code: 0
#file: "/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Utils/Array.php"
#line: 1232
trace: {
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Utils/Array.php:1232 {
› else {
› throw new \CRM_Core_Exception("Expected to find one {$recordTypeLabel}, but there were multiple.");
› }
}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/Civi/Api4/Generic/Result.php:90 { …}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Note.php:37 { …}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Contact/Page/View/Note.php:187 { …}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:319 { …}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:69 { …}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php:36 { …}
/var/www/civicrm/wp-content/plugins/civicrm/civicrm.php:1199 { …}
/var/www/civicrm/wp-includes/class-wp-hook.php:308 { …}
/var/www/civicrm/wp-includes/class-wp-hook.php:332 { …}
/var/www/civicrm/wp-includes/plugin.php:517 { …}
/var/www/civicrm/wp-admin/admin.php:259 { …}
}
}
]
Jan 13 08:14:53 [debug] $backTrace = #0 /var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(441): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /var/www/civicrm/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(39): CRM_Core_Error::handleUnhandledException(Object(CRM_Core_Exception))
#2 /var/www/civicrm/wp-content/plugins/civicrm/civicrm.php(1199): CRM_Core_Invoke::invoke((Array:4))
#3 /var/www/civicrm/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress->invoke("")
#4 /var/www/civicrm/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters("", (Array:1))
#5 /var/www/civicrm/wp-includes/plugin.php(517): WP_Hook->do_action((Array:1))
#6 /var/www/civicrm/wp-admin/admin.php(259): do_action("toplevel_page_CiviCRM")
#7 {main}