Error when using with the wp rest api
-
I have a site that is using this plugin (1.2.17) and the native wp rest api (tested on wp 4.7.3 and 4.7.5).
When I try to fetch pages with params: https://mysite.com/wp-json/wp/v2/pages?order=desc&orderby=id&page=1&per_page=30
I get:
Something went wrong fetching URL with JSON-data: A valid URL was not provided.error: get of json-data failed – plugin aborted: check url of json-feed<hr>problems with JSON-structure: check basenode-param<hr><br>please open ticket at www.remarpro.com<hr>
however, if I remove the per_page param:
/wp-json/wp/v2/pages?order=desc&orderby=id&page=1I get a lists of posts
if I use /wp-json/wp/v2/pages?per_page=12
I get a list of posts.
If i use: /wp-json/wp/v2/pages?per_page=20
I get the error again.
It looks like anything over the amount of 20 posts triggers the error. Why your plugin is giving an error on the wp endpoint is a mystery. It’s only happening on the pages endpoint.
- The topic ‘Error when using with the wp rest api’ is closed to new replies.