Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client encountered a PHP deprecation warning in the WPML Multilingual CMS plugin, specifically with the

strtotime()

function, indicating 'Passing null to parameter #1 ($datetime) of type string is deprecated'. This occurred while using WordPress Version 6.7, PHP Version 8.2, Plugin Version 4.6.14, and WooCommerce Version 9.4.2.
Solution:
We explained that the deprecation notice is not a fatal error and will not affect the PHP's ability to complete tasks on the site. This type of warning typically indicates that the way a function is used will be removed in future PHP versions. We assured the client that in future versions of WPML, this warning will be resolved.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.

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.

This topic contains 1 reply, has 0 voices.

Last updated by Carlos Rojas 1 month ago.

Assisted by: Carlos Rojas.

Author Posts
December 3, 2024 at 9:54 am #16470668

mohammedA-111

Background of the issue:
I encountered a PHP deprecation warning while using the WPML Multilingual CMS plugin. The error indicates 'Passing null to parameter', which is discouraged in PHP 8.2 and later. The specific error is: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in plugins/sitepress-multilingual-cms/classes/emails/notification/summary/class-wpml-tm-jobs-summary-report.php on line 60. I was using WordPress Version 6.7, PHP Version 8.2, Plugin Version 4.6.14, and WooCommerce Version 9.4.2.

Symptoms:
PHP deprecation warning related to 'Passing null to parameter' in the WPML Multilingual CMS plugin.

Questions:
Is there an update or workaround for the WPML Multilingual CMS plugin to address this issue?

December 3, 2024 at 12:17 pm #16471564

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

As it’s a deprecation notice rather than a fatal error, this won’t be affecting PHP’s ability to complete tasks on your site.

This usually comes up when a feature or way a function is being used is being removed from a future version of PHP, in this case, 'strtotime'

In future versions of WPML this warning will go away 🙂

Regards,
Carlos