[wp-trac] [WordPress Trac] #51146: After upgrade to WordPress 5.5 I got an error on using REST api
WordPress Trac
noreply at wordpress.org
Wed Aug 26 14:04:25 UTC 2020
#51146: After upgrade to WordPress 5.5 I got an error on using REST api
--------------------------+-----------------------------
Reporter: rtagliento | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 5.5
Severity: normal | Keywords:
Focuses: rest-api |
--------------------------+-----------------------------
Hi, I updated WordPress to 5.5 and CiviCRM to 5.28.3 and I am getting a
new strange error on rest API.
If I pass this url parameter ---> **&json={"sequential":1}**
[https://www.yogapause.it/civicenter/wp-
json/civicrm/v3/rest?entity=Contact&action=get&api_key=R3BrdHBic1dYUENlR3Vhc092dHBy&key=6d8984d9bc0f9c2c7121db065e094e51&json={%22sequential%22:1}]
I got this error:
**{"code":"rest_invalid_param","message":"Parametro(i) non valido(i):
json","data":{"status":400,"params":{"json":"json non \u00e8 del tipo
integer."}}}**
in english must be somthing like
**{"code":"rest_invalid_param","message":"Parameter(i) not valid(i):
json","data":{"status":400,"params":{"json":"json is not an integer
type."}}}**
Using the parameter json=1 it works, but I use the JSON that isn't an
integer :(
May you check what's going on?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51146>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list