Error in profile.php

This topic contains 1 reply, has 2 voices, and was last updated by  Patrik 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #5195

    🇺🇸 I
    Free User

    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.

    #5200

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Based on your description it looks like profile.php is on the root of the website as it should be there in our plugin. If it is on root of your website then you need to load the WordPress files by including wp-load.php file. We don’t provide support for customizations here. For that, you have to hire a developer. Let us know if you face any issues while setting up UsersWP plugin.

    Regards,
    Patrik

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket