Forum Moderators: buckworks
I'm currently writing a plugin for WordPress (it seems to be needed, since i haven't found anything like it), and the only thing that I'm hung up on is that remote callback feature. I've downloaded and used the scripts they provide (but offer no support for), and scoured the forums and Google for more information on getting this to work, but information is beyond minimal.
I'm just wondering what steps *you* all have taken to get this feature to work. So far, I can populate the database just fine, and the connection is fine, but nothing is being inserted into may database. Even the debug emails come back saying everything's fine - save one thing that isn't clear:
"Server:Blocked"
That's the only line in the debug email that htorws up a red flag - but there's no more information on it, so I don't know what that means.
I've got an email out to my hosting company right now - but i was wondering if anyone out there has gotten this to successfully work, how did *you* do it, and if you've seen this error before, how did you fix it?
the "Server: blocked" thing means nothing. LOL
However, to get the data to write to my database, I needed the $_POST[] function in my script. The callback actually returns everything in a variable called "$data" - and I was just trying to pull form that variable. Using "$_POST['data'];" did, indeed, give me access to what I needed.
Thanks anyway!
By the way, my hosting company did help out a bit by supplying a small piece of code that helped me track down the issue. *You* smarties probably know all about this one, but *I* didn't - so maybe it'll help someone else to have it here.
In my "call.php" file (the one that grabs the data sent back from Mal's) they placed this bit of code:
//debug
$err = mysql_error();
if($err) {
error_log($err);
}
if there was a MySQL or PHP error with what was going on, it would create and "error_log" file in my directory where I could download and look at the results. It really helped me find and knock out my issues.