Skip Navigation

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.

Our next available supporter will start replying to tickets in about 2.32 hours from now. Thank you for your understanding.

This topic contains 7 replies, has 2 voices.

Last updated by katieW-3 1 day, 18 hours ago.

Assisted by: Itamar.

Author Posts
June 24, 2024 at 10:29 am #15805560

katieW-3

Background of the issue:
We are trying to add the French translation from the main base UK site but it didn't allow us to create a page in the French language. UK pages are using DIVI layout. When we checked the debug log it shows 'PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated in public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 37'. The site is on PHP 8.3. When we create a page using WPML translation using WordPress editor it's not working.

Symptoms:
PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated in public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 37

Questions:
Can you please suggest a fix for the deprecated PHP error?
How can we successfully create a page in the French language using WPML?

June 24, 2024 at 10:44 am #15805742

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

This ticket has been inactive for quite a while. I didn't get a reply from you. So, I've transformed this chat into a support ticket because you may still need our help. If you do, please reply to this ticket, and one of our supporters will continue helping you.

You experience a known issue we have. PHP version 8.3 is not fully compatible with WordPress and WPML. We explain this issue in the following erratum page.

https://wpml.org/errata/php-8-2-deprecated-creation-of-dynamic-property-whip_requirementscheckerconfiguration-is-deprecated/

We suggest considering temporarily using an earlier PHP version if the messages are disruptive.

Regards,
Itamar.

June 24, 2024 at 10:51 am #15805798

katieW-3

Hi,

we have tried to create page using translation for other languages and still the same issue.

Thanks

June 24, 2024 at 10:54 am #15805888

katieW-3

Have read through the link you have sent it's regarding the PHP 8.2 and the site is using PHP 8.3 - so do you suggest that we will use the older version of PHP ?

Thanks

June 24, 2024 at 11:27 am #15806347

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

In the link to the erratum page, we also link to the following page on the WordPress handbook.

https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

You can see there that the situation with PHP 8.2 and 8.3 is the same. They are both in "beta support," meaning they are not yet fully supported. Please see the attached screenshot.

Yes, my suggestion to you is to use a lower version of PHP.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

Regards,
Itamar.

2024-06-24_14-23-13.jpg
June 25, 2024 at 2:51 pm #15822241

katieW-3

Hi There,

we have tried downgraded to PHP 8 and still having the same issue. we can't able to create a page using WPML translation with DIVI theme.

Thank you.

June 25, 2024 at 6:10 pm #15824111

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Please ensure to follow our guide about working with Divi.

https://wpml.org/documentation/theme-compatibility/divi-builder/#divi-with-wpml

The debug info you attached shows that your server WP Memory Limit is 40M. Our recommendations are to have the following as minimal requirements:

- PHP 7 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended.

MySQL 5.6 and above.

Please follow this link for detailed documentation:

https://wpml.org/home/minimum-requirements/

Is it possible for you to change those to the minimum requirement?

You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add it before this line:

/* That's all, stop editing! Happy blogging. */

Could you please perform that procedure and see if it helps?

Thanks,
Itamar.

June 27, 2024 at 8:16 am #15841648

katieW-3

Hi Itamar,

we have added this into config file but unfortunately it's the same issue. can't translate the page using DIVI layout in different languages.

Thank you.

katieW-3 confirmed that the issue was resolved on 2024-06-27 09:14:48.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.