Hi Tim,
I will try to answer your question shortly. Please tell me a bit more details like:
– You used this plugin before, did this error occur suddenly on a working website?
– Did this error also occur in the old version (https://wordpress.org/plugins/campaign-monitor-synchronisation/) ?
A var dump is really the way to go. Most likely the error is caused by a wrong email address or something like that.
This is how ResultData might look, it gives rather detailled information about the cause:
“FailureDetails”: [
{
“EmailAddress”: “example+1@example”,
“Code”: 1,
“Message”: “Invalid Email Address”
}
]
It seems the error happens in file classes/CMS_Syncronizer.php most likely at line 202. Otherwise it could be line 117 or line 85.
Thread Starter
timbr
(@brugman)
Did I use it before: Barely. I hit sync once with more fields checked and it gave me a different error. I said to myself Id come back to it later. It’s being put in a new website, it hasn’t worked in the past if that’s what you’re asking.
It might have been the old version, I know I reinstalled just to be sure I had the new one when I learned there were 2 out there.
Which var can I var dump? And where?
I tried $result, ResultData, $ResultData, FailureDetails and $FailureDetails, around line 100 in campaignmonitor-synchronization.php inside if ( isset( $_REQUEST['error'] ) )
but with no success.
It might be a good idea to just incorporate this output in the plugin itself instead of just saying the sync didn’t work.
Hi Tim,
Good idea, we have implemented it as you suggested. Could you upgrade the plugin please?
Cheers, Carlo
Thread Starter
timbr
(@brugman)
Thanks! Worked like a charm. I had 2 messed up email addresses in the user database and it pointed them out.
He Tim,
Great! Please write a short review.
Carlo