Hi ~
I searched the forum and came across a couple of similar topics, but none had a real solution in the comments.
- my wordpress, php, pro theme, plugins etc are all up to date
- using a child theme
Per the debug.log, this is the error it’s throwing after I try to save the API key within the Email Forms admin area:
Notice: Undefined index: detail in /home/mrvarchitects/mrvarchitects.com/new/wp-content/plugins/tco-email-forms/email-mailchimp/functions/provider.php on line 157
Here are lines 147 - 165:
//
// Validate the API key
//
function validate_api_key( $key ) {
try {
$mc_api = $this->make_api_wrapper( $key );
$result = $mc_api->get('');
if ( array_key_exists( 'status', $result ) ) {
throw new Exception( $result['detail'], $result['status'] );
}
} catch ( Exception $e ) {
$result = new WP_Error( 'tco-mailchimp', sprintf( __( 'Error while attempting to validate API key: [%s]', '__tco__' ), get_class( $e ) ) );
}
return $result;
}
Specifically, this is line 157:
throw new Exception( $result['detail'], $result['status'] );
Any insight you can provide would be extremely helpful.
Thanks,