This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Exception
This topic contains 5 replies, has 3 voices.
Last updated by Prosenjit Barman 1 year, 11 months ago.
Assisted by: Prosenjit Barman.
Author | Posts |
---|---|
May 31, 2023 at 11:33 am #13747113 | |
augustinasK |
I am having troubles with the WPML plugin, I get a fatal php error that looks something like this :[Wed May 31 10:12:06.913722 2023] [proxy_fcgi:error] [pid 32707:tid 139831870953216] [client 188.69.115.99:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construc............equest()n#4 /home/796144.cloudwaysapps.com/bazddkvgvb/public_html/web/app/plugins/sitepress-multilingual-cms/classes/REST/Status.php(82): WP_Http->get()n#5 /home/79614...', referer: hidden link |
May 31, 2023 at 12:06 pm #13747389 | |
Waqas Bin Hasan WPML Supporter since 05/2014
Languages: English (English ) Timezone: Asia/Karachi (GMT+05:00) |
Hi, Meanwhile the ticket is attended by our support, please feel free to add your findings about activating WPML only, reproducing the error and then activating other plugins one by one. Regards. |
June 1, 2023 at 11:52 am #13753505 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, I checked the entire conversation you had with my colleague Waqas and understood the issue. I've seen that you already have applied a solution mentioned in another ticket and were doing further testing by disabling the theme and plugins. May I know the update on this, please? Please let me know if you need any further assistance in this matter. I will be happy to assist you. Best Regards, |
June 1, 2023 at 12:26 pm #13753747 | |
augustinasK |
In our website there are 2 languages "US English" which is the main one, and "German". German language is accessible by adding the /de/ prefix in the website's url, sometimes for some reason the "German" language's content isn't accessible, if I try to access the url like website.com/de I get redirected to one post and always that same post in english language (probably because the post's slug is decoding-the-mystery-of-aging). website.com/de/wp-json also stops working and redirects to 404 page. Sometimes when I try to update the post through admin dashboard, I get an error "Updating failed. The response is not a valid JSON response." Probably because the request path is /de/wp-json/wp/v2/posts/286910?_locale=user and as I mentioned, /de/wp-json redirects to 404. What is interesting, that also sometimes a cookie is added with the name of "285157", this is the post ID of the post whose slug is decoding-the-mystery-of-aging. The critical error that I am getting is that the __cookie construct expects the first argument to be a string, but integer is given. When I delete this cookie with the name of "285157" the critical error is gone. |
June 1, 2023 at 2:16 pm #13755279 | |
augustinasK |
Not encountering this issue on WordPress 6.1.1 version and WPML 4.5.14, but it is happening on WordPress 6.2 and WPML 4.6.3 versions |
June 2, 2023 at 12:16 pm #13761487 | |
Prosenjit Barman WPML Supporter since 03/2023
Languages: English (English ) Timezone: Asia/Dhaka (GMT+06:00) |
Hello There, Thanks for the update and also for briefly explaining the issue. From the debug info, I can see that REST is enabled and therefore, you should receive the JSON response properly. However, I also noticed that Object caching and general caching are enabled on your site. Would you kindly check what happens if you clear them? Sometimes object caches could interfere with the cookies which is why, it is also recommended to check by keeping the Object caching disabled for some time. If the issue persists even after that, then I kindly request you to reproduce the issue on our sandbox site. You can access the sandbox site using the Auto login link below. - hidden link Please only install the plugins or themes that will be required to reproduce the issue. The main purpose of this is to investigate what happens in a minimal environment and also if the issue is environment specific or not. If you're able to reproduce the issue successfully, we can further investigate the issue in our sandbox. I hope you can understand. I appreciate your kind cooperation in this matter. Let me know the update. I will be happy to assist you if you need further assistance in this matter. Best Regards, |