Hi!
I suspect that maybe you don’t have a paid Ecwid account. My understanding is that you do need a paid account in order to use 3rd party tools like this one.
If you’re feeling up to it, you could var_dump the WP_Error and let me know what it says.
Hey Scott,
I’m Vitaly from Ecwid team. This user is on a paid plan, so the issue should be in something else.
Is there any debug information that we can send to you via email? How do we get it? Please provide us with a way to fix this issue.
Thank you.
Hey Vitaly, how’s it going?
Are you able to reproduce this error? I am not. For reference, here’s the line being reported in his error message:
225. // Parse the response.
226. $post = wp_remote_post( $url, $args );
227. $response = json_decode( $post['body'], TRUE );
I’m not sure why he’s getting an error there, where no one else seems to. My suggestion would be for him to var_dump( $post ), var_dump( $url ), and var_dump( $args ) if he’s feeling up to it.
If not, my suggestion would be for him to establish a test site with no other plugins and a bundled theme, see if the error persists, and go from there.
I could also release an update that logs errors like this one, but I don’t have an accurate timeline for getting that done.
Hey Scott,
Thank you for getting back to me!
Yes, I was able to see that issue myself, however it works correctly in my test WordPress website.
I think I understand on how you suggest that I perform the var_dump, but I just want to make sure that we are on the same page.
Earlier today I sent you an email including Grant there as well, so I suggest we continue discussion there and post a solution here once we find out what is causing it.
What do you think? Did you get that email?
P.S. The plugin release seems ideal, but we I think we all want to resolve this as soon as possible, so we can’t wait too long for its release.
Thank you.
As per email, Vitaly suggested I implement the following workaround for situations when curl fails to authenticate properly:
https://github.com/Ecwid/ecwid-wordpress-plugin/blob/master/lib/ecwid_platform.php