I am trying to: Configure a plugin calls Smush Pro. Tha plugin performs an ajax request and that request triggers an error when I see the logs the error below is shown.
Link to a page where the issue can be seen: It is in the admin panel.
I expected to see: No errors:
Instead, I got: This error, see this video for more information: hidden link
Uncaught TypeError: WPML\User\UsersByCapsRepository::__construct(): Argument #2 ($languagePairs) must be of type WPML\User\LanguagePairs\ILanguagePairs, WPML_Language_Pair_Records given, called in /var/www/pantaleon_dev/wp-content/plugins/sitepress-multilingual-cms/classes/container/class-config.php on line 63 and defined in /var/www/pantaleon_dev/wp-content/plugins/sitepress-multilingual-cms/classes/user/UsersByCapsRepository.php:18
Stack trace:
#0 /var/www/pantaleon_dev/wp-content/plugins/sitepress-multilingual-cms/classes/container/class-config.php(63): WPML\User\UsersByCapsRepository->__construct()
#1 [internal function]: WPML\Container\Config::WPML\Container\{closure}()
#2 /var/www/pantaleon_dev/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Executable.php(62): call_user_func_array()
#3 /var/www/pantaleon_dev/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Executable.php(46): WPML\Auryn\Executable->invokeClosureCompat()
#" while reading response header from upstream, client: 162.158.79.191, server: test.pantaleon.com, request: "GET /wp-json/wp-smush/v1/preset_configs HTTP/2.0", upstream: "hidden link:", host: "test.pantaleon.com", referrer: "hidden link"
I checked the Error log and would like to inform you that our dev team has already been able to reproduce the same issue. You may encounter this unexpected fatal error on the server with the OpCache caching engine.
Our development team has identified a workaround for this issue. Could you please try the solution outlined in the Errata below and check if you're getting the expected result or not?
Let me know if that helps or if you need further assistance. I will be happy to help.
Best regards,
Prosenjit
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.