Fatal error after updating 3.6.3

[ad_1]

Thread Starter
nobo73

(@nobo73)

I will share the error information here :

Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /public_html/wp-includes/capabilities.php:877 Stack trace:

#0 /public_html/wp-content/plugins/betterdocs/includes/Core/Admin.php(287): current_user_can(‘delete_users’)
#1 /public_html/wp-content/plugins/betterdocs/includes/Core/Admin.php(123): WPDeveloper\BetterDocs\Core\Admin->notices()
#2 /public_html/wp-content/plugins/betterdocs/includes/Dependencies/DI/Definition/Resolver/ObjectCreator.php(146): WPDeveloper\BetterDocs\Core\Admin->__construct(Object(WPDeveloper\BetterDocs\Dependencies\DI\Container), Object(WPDeveloper\BetterDocs\Core\PostType), Object(WPDeveloper\BetterDocs\Utils\Enqueue), Object(WPDeveloper\BetterDocs\Core\Settings), Object(WPDeveloper\BetterDocs\Core\KBMigration))
#3 /public_html/wp-content/plugins/betterdocs/includes/Dependencies/DI/Definition/Resolver/ObjectCreator.php(73): WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver\ObjectCreator->createInstance(Object(WPDeveloper\BetterDocs\Dependencies\DI\Definition\ObjectDefinition), Array)
#4 /public_html/wp-content/plugins/betterdocs/includes/Dependencies/DI/Definition/Resolver/ResolverDispatcher.php(64): WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver\ObjectCreator->resolve(Object(WPDeveloper\BetterDocs\Dependencies\DI\Definition\ObjectDefinition), Array)
#5 /public_html/wp-content/plugins/betterdocs/includes/Dependencies/DI/Container.php(377): WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver\ResolverDispatcher->resolve(Object(WPDeveloper\BetterDocs\Dependencies\DI\Definition\ObjectDefinition), Array)
#6 /public_html/wp-content/plugins/betterdocs/includes/Dependencies/DI/Container.php(138): WPDeveloper\BetterDocs\Dependencies\DI\Container->resolveDefinition(Object(WPDeveloper\BetterDocs\Dependencies\DI\Definition\ObjectDefinition))
#7 /public_html/wp-content/plugins/betterdocs/includes/Plugin.php(223): WPDeveloper\BetterDocs\Dependencies\DI\Container->get(‘WPDeveloper\Bet…’)
#8 /public_html/wp-content/plugins/betterdocs/includes/Plugin.php(146): WPDeveloper\BetterDocs\Plugin->initialize()
#9 /public_html/wp-content/plugins/betterdocs/includes/Plugin.php(308): WPDeveloper\BetterDocs\Plugin->__construct()
#10 /public_html/wp-content/plugins/betterdocs/betterdocs.php(41): WPDeveloper\BetterDocs\Plugin::get_instance()
#11 /public_html/wp-content/plugins/betterdocs/betterdocs.php(54): betterdocs()
#12 /public_html/wp-settings.php(522): include_once(‘/home/minamisaw…’)
#13 /public_html/wp-config.php(98): require_once(‘/home/minamisaw…’)
#14 /public_html/wp-load.php(50): require_once(‘/home/minamisaw…’)
#15 /public_html/wp-admin/admin.php(34): require_once(‘/home/minamisaw…’)
#16 /public_html/wp-admin/update-core.php(10): require_once(‘/home/minamisaw…’)
#17 {main} thrown in /public_html/wp-includes/capabilities.php on line 877

  • This reply was modified 1 hour, 44 minutes ago by nobo73.

Hello @nobo73

Thank you for reaching out and providing the information. I’m sorry to hear about the trouble you’re experiencing with the BetterDocs plugin after updating to version 3.6.3. It’s good to know that rolling back the plugin has restored functionality for you.

To assist you further and identify the root cause of the issue, could you please share your debug.log file with us? This file contains valuable error messages and warnings that can help us pinpoint what might be causing the fatal error in the admin area.

You can find the debug.log file in the /wp-content/ directory of your WordPress installation. Please attach this file to your response, and we will investigate the issue promptly.

Thank you for your cooperation. We look forward to resolving this matter for you.

Hi @nobo73 ,
Greetings. Thank you for sharing the information with us.

We’re pleased to inform you that our team has checked and fixed the issue you encountered. To benefit from the fix, please download the DEV version of BetterDocs from here: https://d.pr/f/M0p2vI and check again to see if you’re still facing the same issue.

We look forward to hearing back from you.
Thanks!

Thread Starter
nobo73

(@nobo73)

Hi, @ashikurwp,

Thanks for your prompt support. I updated the plugin with the file you provided.
It seems the issue has been fixed. I appreciate it.

Hi, @zebaafiashama,

Thanks, I could not find debug.log in wp-content directory.
I guess, I need to turn on some feature to provide this log.

Anyway, I will keep watching if there are any issue with it.
Thanks,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer