@remco20 As checked the error messages are related to /var/www/vhosts/digitale-info.nl/httpdocs/wp-includes/functions.php
We suggest you check the PHP version and hosting provider as well.
Dear Pola,
This had nothing to do with the PHP version or hosting provider. I contacted WP-Rocket support and they answered the following:
==========================================
The message you are seeing means that another plugin/theme is using WP Rocket’s rocket_define_donotminify_constants() function. This has been deprecated since WP Rocket 2.11:
https://github.com/wp-media/wp-rocket/blob/2d094e01278e3e911d50cdded013f22f53ea4e70/inc/deprecated/deprecated.php#L603-L623
The function still works, but is shouldn’t be used anymore. The only side effect is the warning you see. Please read ahead.
To find which plugin is using that function, please do the following steps…..
In the results you’ll probably find another plugin or the theme referencing the rocket_define_donotminify_constants() function.
You should then reach out to the plugin’s/theme’s developers and ask them to not use the specific function anymore.
===========================================================
So, that is why I contacted you, because your plugin is using ‘rocket_define_donotminify_constants’ in the file wp-content/plugins/coming-soon/app/functions-utils.php.
Kind regards,
Remco
@remco20 Thanks for the update.
As checked, it shows the wp-includes function here https://a.supportally.com/tdbFBg
Can you try to deactivate the WP Rocket plugin and see if it is working?
Dear Pola,
The point is that your plugin is still using a deprecated function.
So I changed the function myself.
I changed ‘rocket_define_donotminify_constants’ in the file wp-content/plugins/coming-soon/app/functions-utils.php in ‘rocket_define_donotoptimize_constant”
And now the warning disappeared.
As WP-Rocket support already mentioned it has nothing to do with WP-Rocket, but with the Comming Soon plugin which still uses an deprecated function.
Regards,
Remco
@remco20 Thanks for the update.
We will inform our developer with regard to this.
Also, is your plugin version is updated?
When I deactivated the Comming Soon plugin, the warning also disappeared. So the Comming Soon plugin is causing the warning.
@remco20 Thanks for the update.
We will check on this and update you by tomorrow.
I am running the latest version 6.2.5 of Comming Soon.
PHP version 7.4.20
Wordpress version 5.7.2
@remco20 Thanks for the update.
We will get back to you soonest.
@remco20 Thank you for waiting.
We will change this deprecated function soon and add this in our new release.
In the meantime, you can either disable the minify CSS and JS or deactivate WP Rocket if conflicts with our plugin.