跳转至内容 跳转至侧边栏
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

支持人员时区: America/Sao_Paulo (GMT-03:00)

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 mariusA-7 3 months前 更新。

协助者:: Lucas Vidal de Andrade.

作者 帖子
15 4 月, 2025 于 4:01 下午 #16935325

mariusA-7

Background of the issue:
I am in the process of translating pages from Norwegian to Swedish using WPML. I click the "+" in the page list, which takes me to the translation page (e.ate.wpml.org) where the content is auto-translated. After clicking "Complete Translation," it takes me back to the page list, and the page is successfully translated. I am using a setup with a different domain for each language, klimabefuktning.no and klimabefuktning.se. I also added a filter to prevent the second domain from redirecting back to the main domain: add_filter('redirect_canonical', 'allow_localized_secondary_domains', 10, 2); function allow_localized_secondary_domains($redirect_url, $requested_url) { $allowed_domains = ['klimabefuktning.se']; $requested_host = parse_url($requested_url, PHP_URL_HOST); if (in_array($requested_host, $allowed_domains)) { return false; } return $redirect_url; } Link to a page where the issue can be seen: 隐藏链接

Symptoms:
The "arrow wheel" never stops spinning after translation. I also get some 404 errors (see attachment). When I reload the page, the "pen" icon is shown.

Questions:
Why does the arrow wheel never stop spinning after translation?
How can I resolve the 404 errors encountered during translation?

主题 “[關閉] Arrow wheel doesn't stop spinning after translation” 已关闭,不接受新回复。