If your site is running PHP 8.4, you will see deprecation notices like this in your debug log:
PHP Deprecated: IAWPSCOPED\Illuminate\Support\Str::createUuidsUsing(): Implicitly marking parameter $factory as nullable is deprecated, the explicit nullable type must be used instead in /homepages/34/d4299524784/htdocs/se/wp-content/plugins/independent-analytics-pro/vendor/illuminate/support/Str.php on line 852
We are not able to resolve these notices at this time for sites running PHP 8.4. Normally, an application targets a single PHP version, but with WordPress plugins, we face the unique challenge of supporting a wide range of PHP versions. If we update the Illuminate library to address these deprecation notices, it will also remove support for PHP 7 altogether. We still have 10,000+ users on PHP 7, so this is not an option for us. It means that we have to deal with the deprecation notices until nearly all our users are on PHP 8.
With that said, these are not errors or warnings; they are only notices meant to give devs feedback on their code. In order to maintain a cleaner and more relevant debug log, you could suppress deprecation notices from showing up by adding the following code to your wp-config.php file (below enabling the debug log):
error_reporting(E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED);
If this doesn’t work properly, then you may have to set this via your php.ini file instead.
Alternatively, you could use the Debug Log Manager plugin to view your debug messages. The advantage of using this plugin is that it collapses identical messages into a single row and has an option to view specific types of messages e.g. fatal, warning, deprecated, etc.
If you are seeing these messages show up publicly on your site, it is because you have enabled the public output of error messages. You can disable this by opening the wp-config.php file, locating the line that says define('WP_DEBUG', true), and changing true to false.
