跳转至内容 跳转至侧边栏

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

最后由 ezekielB 1 weeks前 更新。

协助者:: Andreas W..

作者 帖子
11 7 月, 2025 于 4:41 下午 #17229076

ezekielB

Background of the issue:
I am trying to edit an existing page from the WordPress admin area while WPML Sticky Links is active. The goal is to maintain the plugin while supporting links that open in a new tab using target="_blank". The issue can be seen at: 隐藏链接.

Symptoms:
I expected to see the block editor or classic editor interface load so I can edit page content normally. Instead, I got a fatal error screen with the following error: Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, bool given in wp-content/plugins/wpml-sticky-links/classes/custom-fields.php on line 169. This only occurs after adding links with target="_blank" in a custom page template. Prior to that, the plugin worked fine.

Questions:
How can I resolve the fatal error when editing pages with WPML Sticky Links enabled?
Is there a way to maintain the plugin functionality while supporting links that open in a new tab?