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?