Fatal error after updating 3.6.3
-
Hi, After updating 3.6.3, I can’t open admin area with fatal error.
Front-end is no problem.
Now, I roll-backed the entire plugin, and safe back.
Would you check if there are any issue with it?Thanks,
—-Here is environment information —-
WordPress Version6.6
PHP version8.3.7
PHP memory limit1G
PHP max execution time180
PHP upload max file size1G
PHP POST max size1G
PHP session GC max lifetime1440
PHP session cookie lifetime0
PHP mbstring extensionOn
PHP GD supportOn
PHP fileinfo extensionOn
-
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 4 months, 1 week 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.
- This reply was modified 4 months, 1 week ago by Zeba Afia Shama.
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!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,Hi @nobo73 ,
Thanks for letting us know and for your excellent cooperation. I’m glad I could assist. If you have a moment, could you please take 30 seconds to leave us a review at this link – https://www.ads-software.com/support/plugin/betterdocs/reviews/#new-post
Your feedback will help us improve and provide even better service.
Note: We will inform you of the update once we release a new version with the fix for your issue. Until then, please utilize the DEV version.
Best regards,Hi,
same issue here. Once I activate the plugin, a fatal error is thrown. The debug file says following (just replaced my origin domain name with “mydomain”):
[21-Jul-2024 06:29:53 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:29:55 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:29:57 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:30:03 UTC] PHP Notice: Undefined index: Name in /mydomain/wp-content/plugins/js_composer/include/classes/updaters/class-vc-updater.php on line 129
[21-Jul-2024 06:30:25 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:30:27 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:30:55 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:30:57 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:31:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wp_get_current_user() in /mydomain/wp-includes/capabilities.php:877
Stack trace:
#0 /mydomain/wp-content/plugins/betterdocs/includes/Core/Admin.php(287): current_user_can()
#1 /mydomain/wp-content/plugins/betterdocs/includes/Core/Admin.php(123): WPDeveloper\BetterDocs\Core\Admin->notices()
#2 /mydomain/wp-content/plugins/betterdocs/includes/Dependencies/DI/Definition/Resolver/ObjectCreator.php(146): WPDeveloper\BetterDocs\Core\Admin->__construct()
#3 /mydomain/wp-content/plugins/betterdocs/includes/Dependencies/DI/Definition/Resolver/ObjectCreator.php(73): WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver\ObjectCreator->createInstance()
#4 /mydomain/wp-content/plugins/betterdocs/includes/Dependencies/DI/Definition/Resolver/ResolverDispatcher.php(64): WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver\ObjectCreator->resolve()
#5 /mydomain/wp-content/plugins/betterdocs/includes/Dependencies/DI/Container.php(377): WPDeveloper\BetterDocs\Dependencies\DI\Definition\Resolver\ResolverDispatcher->resolve()
#6 /mydomain/wp-content/plugins/betterdocs/includes/Dependencies/DI/Container.php(138): WPDeveloper\BetterDocs\Dependencies\DI\Container->resolveDefinition()
#7 /mydomain/wp-content/plugins/betterdocs/includes/Plugin.php(223): WPDeveloper\BetterDocs\Dependencies\DI\Container->get()
#8 /mydomain/wp-content/plugins/betterdocs/includes/Plugin.php(146): WPDeveloper\BetterDocs\Plugin->initialize()
#9 /mydomain/wp-content/plugins/betterdocs/includes/Plugin.php(308): WPDeveloper\BetterDocs\Plugin->__construct()
#10 /mydomain/wp-content/plugins/betterdocs/betterdocs.php(41): WPDeveloper\BetterDocs\Plugin::get_instance()
#11 /mydomain/wp-content/plugins/betterdocs/betterdocs.php(54): betterdocs()
#12 /mydomain/wp-settings.php(522): include_once('/mydomain_...')
#13 /mydomain/wp-config.php(150): require_once('/mydomain_...')
#14 /mydomain/wp-load.php(50): require_once('/mydomain_...')
#15 /mydomain/wp-admin/admin.php(34): require_once('/mydomain_...')
#16 /mydomain/wp-admin/plugins.php(10): require_once('/mydomain_...')
#17 {main}
thrown in /mydomain/wp-includes/capabilities.php on line 877
[21-Jul-2024 06:31:25 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36
[21-Jul-2024 06:31:27 UTC] PHP Notice: Undefined index: source in /mydomain/wp-content/plugins/js_composer/include/templates/params/vc_grid_item/shortcodes/vc_custom_heading.php on line 36Hi @deb_ugger,
Sorry to hear that. Have you tried installing the dev version we have provided earlier in this thread? Here’s the link: https://d.pr/f/M0p2vI
If it doesn’t work, you can revert to the previous version from here: https://d.pr/f/m0CwID
Let me know how it goes, Thanks.
Hi! I just downloaded and installed the version you’ve provided in the post above. That worked. Thanks!
- You must be logged in to reply to this topic.