<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>PHP Current User Warning?

[ad_1]

Replies: 1

We are using another plugin that gives a warning when this plugin gets activated. Happens because the plugin is using global $current_user……

Warning: Attempt to read property “ID” on null in…..

Example the other plugin calls: $is_expired = ihc_is_user_level_expired($current_user->ID, $current_user_level);

Is this an issue with how this plugin handles users? Using PHP 8.1+

 

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