VidYen / VidYen-WordPress-Plugins

VidYen Plugins for WordPress
GNU General Public License v2.0
9 stars 2 forks source link

Deleting user bug #58

Open VidYen opened 6 years ago

VidYen commented 6 years ago

Notice: Trying to get property 'name' of non-object in /home/vidyen001/public_html/fabius/wp-content/plugins/vidyen-point-system-vyps/vidyen-point-system-vyps.php on line 318

When delete user. Not critical, but need to fix before 4.09

VidYen commented 6 years ago

I figured this one out. It's not the code on line 318, but rather if you accidently set pid to something that doesn't exist, it lets you create a entry for that type.

Creating a point type of that type (say pid4) will make the error go away. Will need to either make it check to see if pid exists or make it so it doesn't freak out when it does now find a name.

VidYen commented 6 years ago

$points .= '<b>' . $type->sum . '</b> ' . $row_data2->name. '<br>';

This in particular is where I believe it phreaks out: $row_data2->name

Where it does not find a name (since the entry was created via miner to a pid that didn't exist) it gets bothered.

VidYen commented 5 years ago

have i solved this?