$entry = '<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gAcl="http://schemas.google.com/acl/2007"' .' xmlns:gd="http://schemas.google.com/g/2005"' .' gd:etag=\'W/"CUUNSXYyfCp7ImA9WxRVGUo."\'>' .'<category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/acl/2007#accessRule"/>' .'<gAcl:role value="' . $permission . '"/>' .'<gAcl:additonalRole value="commenter"/>' .'<gAcl:scope type="user" value="' . $email . '"/>' .'</entry>';
object(SimpleXMLElement)[563] public 'error' => object(SimpleXMLElement)[564] public 'domain' => string 'GData' (length=5) public 'code' => string 'incorrectDataVersion' (length=20)
public 'internalReason' => string 'Entry has incompatible service version. Expected:3, Actual:2' (length=60)
Hi Peter,
var_dumped the xml variable right before submitting.
string '<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gAcl="http://schemas.google.com/acl/2007" xmlns:gd="http://schemas.google.com/g/2005" gd:etag='W/"CUUNSXYyfCp7ImA9WxRVGUo."'><category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/acl/2007#accessRule"/><gAcl:role value="writer"/><gAcl:additonalRole value="commenter"/><gAcl:scope type="user" value="pfb...@gmail.com"/></entry>' (length=413)