跳过导航
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

支持者时区: Europe/Madrid (GMT+01:00)

標籤: 

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

最后由 benjaminR-46 1 months, 2 weeks前 更新。

协助者:: Paola Mendiburu.

作者 文章
1 10 月, 2024 于 11:12 上午 #16239941

benjaminR-46

Background of the issue:
I am installing the plugin called "optimizepress" on my site 隐藏链接. When I activate the plugin, it makes my whole site go down, both backend and frontend, and gives me an error. The error message is: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WPML_URL_Filters::home_url_filter(), 1 passed in /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/class-wp-hook.php on line 326 and exactly 4 expected in /data/sites/web/b322ppaxmyrdbxio/www/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php:291 Stack trace: #0 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/class-wp-hook.php(326): WPML_URL_Filters->home_url_filter('隐藏链接...') #1 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('隐藏链接...', Array) #2 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/link-template.php(3464): apply_filters('home_url', '隐藏链接...', '', NULL, NULL) #3 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/link-template.php(3410): get_home_url(NULL, '', 'https') #4 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/general-template.php(829): home_url() #5 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/class-wp-http.php( in /data/sites/web/b322ppaxmyrdbxio/www/wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php on line 291. I have tried with WPML portal tickets and documentation of WPML but did not find any solution.

Symptoms:
Activating the "optimizepress" plugin causes the site to go down with a PHP Fatal error related to WPML_URL_Filters::home_url_filter() expecting 4 arguments but receiving only 1.

Questions:
How can I resolve the PHP Fatal error caused by the conflict between WPML and the "optimizepress" plugin?
Is there a workaround to use both WPML and "optimizepress" without causing the site to go down?

主题 '[關閉] Plugin conflict' 已关闭,不再接受新回复。