VidYen / VidYen-WordPress-Plugins

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

User panel error #117

Closed mcdeimon closed 5 years ago

mcdeimon commented 5 years ago

Hi Felty!!!

In the admin panel, when I edit a user this error appears:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'custom_user_profile_fields_points' not found or invalid function name in /var/www/vhosts/bycryp.com/httpdocs/wp-includes/class-wp-hook.php on line 286

VidYen commented 5 years ago

Can I get a screenshot. I've seen this before, but I was able to fix it, but it was my own test server and I vaguely remember it was not VYPS but something else I was doing.

VidYen commented 5 years ago

I was going through issues... I think it happens when you have a point_log record for a point that does not exist.

mcdeimon commented 5 years ago

warning

mcdeimon commented 5 years ago

If I unplug the VYPS plugin the error disappears

VidYen commented 5 years ago

Had some spare time today... Looking at this... That func is found on lines 292, 293, 294....

add_action('show_user_profile', 'custom_user_profile_fields_points');
add_action('edit_user_profile', 'custom_user_profile_fields_points');
add_action("user_new_form", "custom_user_profile_fields_points");

(Side note... Not sure why " instead of ' there, but...)

This is on the edit user profile correct?

VidYen commented 5 years ago

I have replicated it. Ok. Will fix today if possible.

VidYen commented 5 years ago

Actually. It didn't take that long to fix as found the issue right away.

@mcdeimon please confirm the GitHub version works and it doesn't break anything else for you. I am going to upload this to WordPress as had saved some fixes to go in at least a slightly larger update.

VidYen commented 5 years ago

Whoops. Didn't commit. Now try if you did a minute ago.

VidYen commented 5 years ago

I went ahead and updated the official repo to 1.7.3 on WordPress. As I believe it was happening on everyone's system.

VidYen commented 5 years ago

Going to close this as I think it has been resolved (at least on my test sites)

mcdeimon commented 5 years ago

Thanks Felty!!! Now it works perfecty!