Well, the frustration is building!
So, I am now running on a local wordpress install so i have greater control and freedom to hack things about.
I have deleted any google app projects i had been experimenting/learning with and created a fresh one. I have also re-installed the Docs to WP plugin and cleared the database entries for the ID and Secret. I have updated to WP 4.2.2. PHP is running at Version 5.5.3. and Docs to WP is V1.1.
I am now further ahead than i was on Monday as i can now click on Settings > Docs to WP and the side bar and it returns the correct settings page with the status of ‘connected’. This is after i accepted the api permission page. I can now see the ‘auth token’ refresh when i reload the page and i see the requests appear in the graph on the overview page for the app in the Google developer console.
However, the posts still aren’t pulling through! I was getting the error “Syntax error, malformed JSON.” in the Abstract_Api.php. Reading this topic: https://www.ads-software.com/support/topic/10-beta-questionsissues?replies=26 i have tried removing the following code:
switch (json_last_error()) {
case JSON_ERROR_NONE:
$error = null; // JSON is valid
break;
case JSON_ERROR_DEPTH:
$error = 'Maximum stack depth exceeded.';
break;
case JSON_ERROR_STATE_MISMATCH:
$error = 'Underflow or the modes mismatch.';
break;
case JSON_ERROR_CTRL_CHAR:
$error = 'Unexpected control character found.';
break;
// only PHP 5.3+
case JSON_ERROR_UTF8:
$error = 'Malformed UTF-8 characters, possibly incorrectly encoded.';
break;
case JSON_ERROR_SYNTAX:
$error = 'Syntax error, malformed JSON.';
break;
default:
$error = 'Unknown JSON error occured.';
break;
}
if( !empty( $error ) ) {
throw new JsonException($error);
}
I now no longer get any errors but still no posts! grrr.
Can anyone help?? :-/
Thanks.
Matt