[Resolved] wpml Fatal Error is blocking foreign external api requests
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing a fatal error with WPML when another plugin tries to read the configuration of your shop, and you're using PHP 8.4, this might be due to deprecated warnings triggered by the new checks introduced in PHP 8.4. Solution: We recommend switching to a PHP version prior to 8.4 as a temporary workaround while we address these compatibility issues. This change should help avoid the fatal error you're encountering.
Please note that this solution might be outdated or not applicable to your specific case. If this does not resolve your issue, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
Hello,
To better understand and reproduce the issue on our side, could you please let us know when exactly this fatal error occurs?
For example:
* Does it happen during a specific action (product update, order sync, background job, API call, etc.)?
* Is it triggered consistently, or only intermittently?
* Does it occur only when the external plugin makes requests, or also during normal site activity?
Would it be possible for you to temporarily test the site with an earlier PHP version (so not PHP 8.4) and let us know whether the issue still occurs?
We are actively working on ensuring full compatibility with PHP 8.4, and the deprecation related to `$triggerItem` implicitly being treated as nullable is one of the issues we have identified.
In certain setups, this can indeed escalate into fatal errors, as you are currently experiencing.
Testing with a previous PHP version would help confirm the scope of the issue.
thank you for the swift reply. Can you tell me what the highest fully supported php version is? I think I could easily downgrade the php version as it is running in a container.
Everything else seems to work fine now after upgrading to php 8.4, except this external POST call to /bridge2cart/bridge.php
I only can say, that we have not discovered other problems yet.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+01:00)
PHP 8.4 triggers deprecated warnings across our plugin set, and we are actively working on addressing these. In the meantime, you can use any PHP version prior to 8.4, as the new checks were introduced only in PHP 8.4.