Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Andreas W. 1 year, 8 months ago.

Assisted by: Andreas W..

Author Posts
September 28, 2023 at 4:02 am #14478277

tomA-13

Hello,

we received a lot of 520 Cloudflare errors recently so we tried to dig deeper into the issues.

We investigated further the issues and outages we are experiencing. In the access log from yesterday we could finally have some interesting finding when working on Pages in WordPress backend

At 11:57:00 it is redirected to 404 via /de/wp-json/wp/v2/

202.58.207.19 - - [27/Sep/2023:11:57:00 +0200] "GET /de/wp-json/wp/v2/ HTTP/1.1" 404 516616 "hidden link" "Mozilla/5. 0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0 Safari/537.36 X-Middleton/1" "Traffic IN:5651 OUT:524460" "ReqTime:2 sec"

after that with the direct reload the whole thing is loaded directly via /wp-admin/admin-ajax.php

202.58.207.19 - - [27/Sep/2023:11:57:01 +0200] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 43 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0 Safari/537.36 X-Middleton/1" "Traffic IN:6128 OUT:3803" "ReqTime:1 sec"

When trying to delete several pages (Ezoic Proxy was meanwhile also disabled here) we then received a 302

202.58.207.19 - - [27/Sep/2023:11:58:00 +0200] "GET /wp-admin/edit.php?s=&post_status=all&post_type=page&_wpnonce=e881a759a6&_wp_http_referer=%2Fwp-admin%2Fedit. php%3Fpost_type%3Dpage%26mode%3Dlist%26paged%3D1&action=edit&m=0&lang=en&seo_filter=&readability_filter=&paged=1&tax_input%5Btranslation_priority%5D=&post_author=-1&post_parent=-1&page_template=-1&comment_status=&_status=private&bulk_edit=Update&post_view=list&screen=edit- page&post%5B%5D=3656&post%5B%5D=8087&post%5B%5D=3682&post%5B%5D=9574&post%5B%5D=9576&post%5B%5D=3668&post%5B%5D=5632&post%5B%5D=3676&post%5B%5D=3678&post%5B%5D=3680&post%5B%5D=1551&post%5B%5D=3672&post%5B%5D=3670&post%5B%5D=3674&post%5B%5D=12571&post%5B%5D=1550&post%5B%5D=3658&post%5B%5D=3662&post%5B%5D=3660&post%5B%5D=3664&post%5B%5D=5601&action2=edit HTTP/2. 0" 302 - "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0 Safari/537.36" "Traffic IN:4370 OUT:0" "ReqTime:39 sec"

Without Ezoic and Cloudflare - so on the Origin server we then got a 500 error again via /de/wp-json/wp/v2/

202.58.207.19 - - [27/Sep/2023:11:58:40 +0200] "GET /de/wp-json/wp/v2/ HTTP/2.0" 500 296 "hidden link" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0 Safari/537.36" "Traffic IN:3440 OUT:1639" "ReqTime:2 sec"

The main problem here seems to be /de/wp-json/wp/v2. Do you know where this is coming from?

hidden link is available without the /de/ part so somewhere this /de slug is incorrectly inserted here.

So we are not sure when handling requests why this happens and suddenly the /de slug is there.

September 29, 2023 at 6:23 pm #14489579

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It is that /de/wp-json/wp/v2/ does not exist.

You would use this path to get all the German content:

hidden link

I hope this helps.

Best regards
Andreas

The topic ‘[Closed] Problem with /wp-json/wp/v2/’ is closed to new replies.