Content not loading at Translation Dashboard and when it loads after 10 reloads of the page, when I select the pages/posts to be translated the credits and words to be translated are not calculating.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Hello,
1) Let's start by downgrading PHP to version 8.1 or 8.2 if possible, 8.5 is not compatible with WordPress or WPML yet so that could very well be one of the problem.
2) Could you please enable the debug log and try to recreate the problem to see if an error is logged. then send it to us by uploading it to a platform of your liking like google drive or similar.
3) Does the problem continue if you disable for a moment all the plugins except the WPML ones?
4) Are you under a service like cloudflare? if so, would the problem continue if you disable cloudflare for a moment (you need to wait 5 minutes after you disable it before testing)
However when we've reverted from php 8.5 to 8.4 it worked now.
Can you please investigate this, replicated it on your side and fix the issue?
We'll leave this ticket open for your to investigate.
Here a list of combined errors from our debug.log for your devs to work on:
#PHP Warnings (2 unique):
file_exists(): open_basedir restriction in effect. File(action-scheduler-en_US.mo) — LoadTranslationFile.php:82
file_exists(): open_basedir restriction in effect. File(action-scheduler-en_US.l10n.php) — LoadTranslationFile.php:85
#PHP Deprecated notices (grouped by issue):
ReflectionProperty::setAccessible() is deprecated since PHP 8.5 — LoadedMODictionary.php:43
Function xml_parser_free() is deprecated since PHP 8.5 — class-wpml-xml2array.php:18
Using null as an array offset is deprecated — in TranslationsRepository.php:57, translation-management.class.php:1789, and advanced-custom-fields-pro/pro/options-page.php:226
Non-canonical cast (boolean) is deprecated, use (bool) instead — wpmu-dev-seo/class-utils.php:147 and :157
Dozens of WPML classes with implicitly nullable parameters — the pattern Implicitly marking parameter $X as nullable is deprecated appears across many WPML/WPML-ST classes (e.g. Settings.php, WebsiteContextDto.php, SearchCriteria.php, QueueRepository.php, etc.)
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
WordPress is not compatible yet, it's still in beta and that means that the entire ecosystem will be at most in beta as well.
We don't have reported issues with PHP8.5 But it's normal to find error and issues while in beta mode.
WPML 8.5 compatibility will come by the time it's out of beta in WordPress, however, in general you don't want to be in the latest PHP version when using WordPress, ideally you'll want to be 2 versions behind, more or less.
"The core WordPress software is tested and compatible with the versions in this list. Due to the acknowledgement that WordPress is rarely used in isolation (without any theme or plugins), support is labelled as “beta support” until at least 10% of all WordPress sites are running that version or later, as this indicates good compatibility across the wider ecosystem of plugins and themes."
As WordPress is already compatible please make sure you contribute to help make it also compatible within WPML. We would appreciate it.
Thanks for your message and for highlighting this, that makes sense.
I’ve checked internally, and the reported error messages are already part of our ongoing PHP 8.4 / 8.5 compatibility work. The fixes are planned and scheduled for upcoming releases.
Based on the current progress, we expect these improvements to be included soon—most likely in the next version or shortly after.
We appreciate your patience and your feedback on this.
At the moment, the fix appears to be related to PHP 8.4 compatibility also and is planned to be released with version 4.9.3, so it should be available soon.
I will keep you updated as soon as I have more information.