• Resolved htw1179

    (@htw1179)


    I keep getting the below error. and as a result I cannot edit my website. I have to get my host to go in and deactivate Ultimate Member. Sometimes it corrects itself by deleting Ultimate member and reinstalling and reactivating. Other times it does not work. Occurrs about 3 times per week. Clients are complaining. Getting ready to dump Ultimate Member and use another Membership Plugin. Please help!!!!
    ———————————————————————————
    Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-includes/capabilities.php:693 Stack trace: #0 /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-content/plugins/ultimate-member/includes/core/class-access.php(512): current_user_can(‘administrator’) #1 /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-includes/class-wp-hook.php(307): um\core\Access->custom_count_posts_handler(Object(stdClass), ‘post’, ”) #2 /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-includes/plugin.php(189): WP_Hook->apply_filters(Object(stdClass), Array) #3 /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-includes/post.php(3082): apply_filters(‘wp_count_posts’, Object(stdClass), ‘post’, ”) #4 /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-content/plugins/wp-clone-by-wp-academy/modules/promoti in /hermes/bosnacweb08/bosnacweb08au/b1641/ipg.wgdavis66975/wp_site_1649001095/wp-includes/capabilities.php on line 693
    There has been a critical error on this website.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 42 total)
  • @htw1179

    Have you installed WordPress 6.0?

    Which version of Ultimate Member are you using?

    @missveronicatv

    Try to deactivate your “Clone” Plugin, there might be a conflict with this plugin causing your UM issues.

    The “clone” Plugin has not been updated for the last 7 months and tested upto WordPress 5.8.4.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @htw1179

    Please try deactivating the plugin as what @missveronicatv mentioned above.

    Plugin: wp-clone-by-wp-academy

    Thread Starter htw1179

    (@htw1179)

    missveronica/Ultimate Member Support, First Thanks for the response, I am very appreciative. I deleted the clone plug in and reactivated Ultimate Member and it has not prevented me from accessing the Dashboard. Sometimes when I reinstall, it temporarily works. Could I ask you to check back in in another week to see if the problem is permanently fixed?
    1.When I reinstalled UM I did receive the following message:
    You have installed Ultimate Member with wrong folder name. Correct folder name is “ultimate-member”.
    Any suggestions on how I should fix?
    2.Everything seems to be working correctly except when I go to my Members Directory and try click on Edit Profile it provides this error:
    “This page could not be found!
    We are sorry. But the page you are looking for is not available.
    Perhaps you can try a new search.”
    Ican however link on a a separate page to https://thepatioschestnutcreek.com/account/general/ and it will allow me to edit my acccount info.
    Is there a way I can link the member directory edit functions to the correct page? Or is it because it was installed with wrong folder name?
    Thanks very much for your help? You guys are great!!

    • This reply was modified 2 years, 10 months ago by htw1179.

    Same issue for me. After updating WordPress to 6.0 the site is down with a WordPress error message. I debugged locally using xDebug, see the following error and the quick fix.

    [26-May-2022 18:00:59 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function wp_get_current_user() in /var/www/html/wp-includes/capabilities.php:693
    Stack trace:
    #0 /var/www/html/wp-content/plugins/ultimate-member/includes/core/class-access.php(418): current_user_can('administrator')
    #1 /var/www/html/wp-includes/class-wp-hook.php(307): um\core\Access->exclude_hidden_terms_query(Object(WP_Term_Query))
    #2 /var/www/html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #3 /var/www/html/wp-includes/plugin.php(524): WP_Hook->do_action(Array)
    #4 /var/www/html/wp-includes/class-wp-term-query.php(364): do_action_ref_array('pre_get_terms', Array)
    #5 /var/www/html/wp-includes/class-wp-term-query.php(307): WP_Term_Query->get_terms()
    #6 /var/www/html/wp-includes/taxonomy.php(1312): WP_Term_Query->query(Array)
    #7 /var/www/html/wp-includes/taxonomy.php(1900): get_terms(Array)
    #8 /var/www/html/wp-content/plugins/webappick-product-feed-for-woocommerce-pro/includes/classes/class-woo-feed-webappick-api.php(169): wp_count_terms(Array, Array) in /var/www/html/wp-includes/capabilities.php on line 693

    A quick fix to keep the site up and plugin activated was to edit line 418 in /ultimate-member/includes/core/class-access.php from

    if ( current_user_can( ‘administrator’ ) || ! empty( $query->query_vars[‘um_ignore_exclude’] ) ) {

    to

    if ( function_exists( ‘wp_get_current_user’ ) && ( current_user_can( ‘administrator’ ) || ! empty( $query->query_vars[‘um_ignore_exclude’] ) ) ) {

    It is not a permanent fix but allows me to keep my client’s site up while you find a fix.

    @htw1179

    1.When I reinstalled UM I did receive the following message:
    You have installed Ultimate Member with wrong folder name. Correct folder name is “ultimate-member”.
    Any suggestions on how I should fix?

    You can either use a FTP client or a server file manager to rename the directory from um to ultimate-member. After renaming you must Activate UM again.

    Or is it because it was installed with wrong folder name?

    Yes renaming will solve this issue.

    • This reply was modified 2 years, 10 months ago by missveronica.
    • This reply was modified 2 years, 10 months ago by missveronica.

    It’s already named ultimate-member not um.

    @jeremyselph

    The issue with the “Clone” plugin and maybe other plugins is that a WP script .../wp-includes/pluggable.php not being loaded and the wp_get_current_user() function is therefor missing.

    I will report this issue as a bug at UM GitHub.

    I don’t have the Clone” plugin.

    @jeremyselph

    Sorry, I have changed now the reply it was addressed to @htw1179

    Thread Starter htw1179

    (@htw1179)

    missveronica, while I believe removing the clone plug in resolved the fatal error. Ultimate Member then started giving me the error when I tried to access my website thepatioschestnutcreek.com: This page could not be found!
    We are sorry. But the page you are looking for is not available.
    Perhaps you can try a new search.
    It was determined that Ultimate Member was the plugin by deactivating each plug in once at a time.
    I then worked with my Host ipage and they suggested that I change my domain from HTTP to HTTPS. I do not know why they suggested this because my site is already HTTPS. I even worked with ipage and changed site and home URL to https in the database. The above error still occurred. If possible, I would like to remain with Ultimate Member but for some reason I cannot get it to work on my site using the Ocean Wp theme. I do not necessarily want to go to the time to see if I another theme works because I am thinking that will be alot of work only to find out that I am getting the same error. I am however willing to try anything you suggest because I do like the Ultimate member capabilities. I am more than willing to upgrade Ultimate member but again I would prefer not to do that until I know Ultimate Member will work. Again, I appreciate your help I do not know of any other mechanism to receive support on the Ultimate Member product. I would appreciate any suggestions you may have because my clients are getting upset that their website has been having so many problems.
    Thanks again

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @htw1179

    Could you please provide screenshots of your UM Access settings? Please go to WP Admin > Ultimate Member > Settings > Access. You can upload the screenshots via imgur.com and then share the image URLs here so we can review them.

    Thread Starter htw1179

    (@htw1179)

    https://i.imgur.com/3uxDBcC.jpg UM General settings link
    https://i.imgur.com/9kTPk8g.jpg UM Access settings link
    https://i.imgur.com/ZTwzSB4.jpg WordPressPages 1 link
    https://i.imgur.com/OQi91PG.jpg WordPress Pages 2 link

    I believe I did this correctly on imgur.com I copied and pasted the above links in my browser, and it took me to the relative image on imgur.com. If you cannot access it, please let me know. Thanks

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @htw1179

    Do you have a google drive so you can share the screenshots? Currently, imgur.com is not available since yesterday so I couldn’t see the screenshots.

Viewing 15 replies - 1 through 15 (of 42 total)
  • The topic ‘Ultimate Member Fatal Error’ is closed to new replies.