Error warning in persist-admin-notices-dismissal.php on line 161

[ad_1]

Since version 4.15.12 of the plugin, I have been receiving the following error:

“Warning: Cannot declare class PAnD, because the name is already in use in ../wp-content/plugins/wp-user-avatar/third-party/vendor/collizo4sky/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php on line 161”

When we look at line 161, the code \class_alias('ProfilePressVendor\PAnD', 'PAnD', \false); is present. I disabled this code or added the line @ini_set( 'display_errors', 0 ); to wp-config.php to hide this warning, but wouldn’t it be better if the plugin developer found a solution so that this isn’t necessary?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer