Background of the issue:
I am installing the plugin called "optimizepress" on my site hidden link. 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('hidden link...') #1 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('hidden link...', Array) #2 /data/sites/web/b322ppaxmyrdbxio/www/wp-includes/link-template.php(3464): apply_filters('home_url', 'hidden link...', '', 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?
The topic ‘[Closed] Plugin conflict’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.