I installed UsersWP and love it. However I needed to deactivate it while working on another part of the login/profile process with another plugin used to control blog posts. When I tried to view a user profile from this new plugin I got the following error.
Fatal error: Uncaught Error: Call to undefined function do_action() in /homepages/41/d792208823/htdocs/free1st.com/profile.php:2 Stack trace: #0 {main} thrown in /homepages/41/d792208823/htdocs/free1st.com/profile.php on line 2
This is what is in the profile.php file
<?php
do_action(‘uwp_template_before’, ‘profile’);
$user = uwp_get_user_by_author_slug();
do_action(‘uwp_profile_body’, $user);
do_action(‘uwp_template_after’, ‘profile’);
?>
I deactivated all plugins, temporarily deleted UsersWP, activated another plugin that uses a profile call and error is still there. I tried 2 or 3 different login/profile plugins and every time I try to go to their profile page the error is the same.
I drop the shortcode for their profile in a page and try to view it..again the error. It don’t seem to matter what plugin I try the error is the same and the do action is always do_action(‘uwp_template_before’, ‘profile’); Obviously with UsersWP active it does not error on profile.
I hope I have made this clear for you to understand, I am a beginner and at this point lost. Any help would be greatly appreciated. Thanks in advance.