Title: PHP Fatal error: Uncaught Error: Call to undefined function get_userdata()
Last modified: August 29, 2023

---

# PHP Fatal error: Uncaught Error: Call to undefined function get_userdata()

 *  Resolved [rayhan259](https://wordpress.org/support/users/rayhan259/)
 * (@rayhan259)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/)
 * hi
 * I have been getting this error for a while now in host error log
 *     ```wp-block-code
       PHP Fatal error:  Uncaught Error: Call to undefined function get_userdata() in /home/********/public_html/wp-includes/user.php:673
       Stack trace:
       #0 /home/********/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(933): get_user_option()
       #1 /home/********/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(920): Yoast_Notification_Center->get_stored_notifications()
       #2 /home/********/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(906): Yoast_Notification_Center->has_stored_notifications()
       #3 /home/********/public_html/wp-content/plugins/wordpress-seo/admin/class-yoast-notification-center.php(623): Yoast_Notification_Center->remove_storage()
       #4 /home/********/public_html/wp-includes/class-wp-hook.php(310): Yoast_Notification_Center->update_storage()
       #5 /home/********/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
       #6 /home/********/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
       #7 /home/********/public_html/wp-includes/load.php(1252): do_action()
       #8 [internal function]: shutdown_action_hook()
       #9 {main}
         thrown in /home/********/public_html/wp-includes/user.php on line 673
       ```
   
 * PHP Version 8.1.21
 * WordPress 6.3
 * Yoast SEO: 21.0
 * Please help to solve the problem. thank

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17015906)
 * Hello [@rayhan259](https://wordpress.org/support/users/rayhan259/),
 * Thanks for sharing the error log. This would have been a temporary error generated
   during the plugin update but got resolved. If your website’s functionality hasn’t
   been affected in anyway, you can ignore the error.
 *  Thread Starter [rayhan259](https://wordpress.org/support/users/rayhan259/)
 * (@rayhan259)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17018066)
 * thank you [@maybellyne](https://wordpress.org/support/users/maybellyne/)
 * This error is recorded several times every day in error log.
 *  Plugin Support [Jose Varghese](https://wordpress.org/support/users/josevarghese/)
 * (@josevarghese)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17021683)
 * Hi [@rayhan259](https://wordpress.org/support/users/rayhan259/)
 * Thanks for getting back to us. Looking at the error details, the fatal error 
   appears to be output from the Yoast plugin source file _class-yoast-notification-
   center.php_ while trying to fetch the user data. To rule out any possible problems
   with the data stored in the Yoast database tables, we would request you to install
   the [Yoast Test Helper](https://wordpress.org/plugins/yoast-test-helper/) plugin.
   Then go to _Tools > Yoast Test_ and reset the internal link counter, the prominent
   words calculation, and the indexables tables. This process only resets the tables
   our plugin uses to store optimized data in the database. Your SEO data is stored
   in other tables in the WordPress database, so no data is expected to lost.
 * Once you complete the optimization, does the issue occur?
 *  Thread Starter [rayhan259](https://wordpress.org/support/users/rayhan259/)
 * (@rayhan259)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17025257)
 * hi [@josevarghese](https://wordpress.org/support/users/josevarghese/)
 * thank you for the solution.
 * I have done this before but the error is still there and recorded several times
   every day
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17026685)
 * Thanks for following up with us. Please navigate to _WordPress > Tools > Site
   Health_ > _Info_ and _Copy site info to clipboard_ to share with us.
 *  Thread Starter [rayhan259](https://wordpress.org/support/users/rayhan259/)
 * (@rayhan259)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17032152)
 * hi [@maybellyne](https://wordpress.org/support/users/maybellyne/)
 *     ```wp-block-code
       `
       ### wp-core ###
   
       version: 6.3.1
       site_language: fa_IR
       user_language: fa_IR
       timezone: Asia/Tehran
       permalink: /%post_id%/%postname%/
       https_status: true
       multisite: false
       user_registration: 0
       blog_public: 1
       default_comment_status: open
       environment_type: production
       user_count: 2
       dotorg_communication: true
   
       ### wp-paths-sizes ###
   
       wordpress_path: /home/*******/public_html
       wordpress_size: 86,79 مگابایت (91006830 bytes)
       uploads_path: /home/*******/public_html/wp-content/uploads
       uploads_size: 946,20 کیلوبایت (968905 bytes)
       themes_path: /home/*******/public_html/wp-content/themes
       themes_size: 65,39 مگابایت (68565964 bytes)
       plugins_path: /home/*******/public_html/wp-content/plugins
       plugins_size: 73,80 مگابایت (77388037 bytes)
       database_size: 66,43 مگابایت (69657925 bytes)
       total_size: 293,34 مگابایت (307587661 bytes)
   
       ### wp-dropins (2) ###
   
       maintenance.php: true
       object-cache.php: true
   
       ### wp-active-theme ###
   
       name: Fairy (fairy)
       version: 1.3.9
       author: candidthemes
       author_website: https://www.candidthemes.com/
       parent_theme: none
       theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-background, customize-selective-refresh-widgets, responsive-embeds, wp-block-styles, editor-font-sizes, custom-logo, woocommerce, wc-product-gallery-zoom, wc-product-gallery-slider, yoast-seo-breadcrumbs, rank-math-breadcrumbs, custom-header, widgets, editor-style
       theme_path: /home/*******/public_html/wp-content/themes/fairy
       auto_update: غیرفعال‌ شده
   
       ### wp-themes-inactive (1) ###
   
       Twenty Twenty-Three: version: 1.2, author: تیم وردپرس, به‌روز‌رسانی خودکار غیرفعال است 
   
       ### wp-plugins-active (10) ###
   
       Advanced Editor Tools: version: 5.9.2, author: Automattic, به‌روز‌رسانی خودکار غیرفعال است 
       Akismet Anti-Spam: Spam Protection: version: 5.2, author: Automattic - Anti Spam Team, به‌روز‌رسانی خودکار غیرفعال است 
       Classic Editor: version: 1.6.3, author: WordPress Contributors, به‌روز‌رسانی خودکار غیرفعال است 
       LiteSpeed Cache: version: 5.6, author: LiteSpeed Technologies, به‌روز‌رسانی خودکار غیرفعال است 
       Max Mega Menu: version: 3.2.2, author: megamenu.com, به‌روز‌رسانی خودکار غیرفعال است 
       MW Font Changer Pro: version: 2.0.1, author: Ghaem Omidi, به‌روز‌رسانی خودکار غیرفعال است 
       WP-Parsidate: version: 4.0.2, author: WP-Parsi Team, به‌روز‌رسانی خودکار غیرفعال است 
       Yoast SEO: version: 21.1, author: Team Yoast, به‌روز‌رسانی خودکار غیرفعال است 
       Yoast Test Helper: version: 1.17, author: Team Yoast, به‌روز‌رسانی خودکار غیرفعال است 
       Zhaket Smart Updater: version: 3.0.0, author: zhaket, به‌روز‌رسانی خودکار غیرفعال است 
   
       ### wp-media ###
   
       image_editor: WP_Image_Editor_Imagick
       imagick_module_version: 1808
       imagemagick_version: ImageMagick 7.1.0-62 Q16-HDRI x86_64 20885 https://imagemagick.org
       imagick_version: 3.7.0
       file_uploads: File uploads is turned off
       post_max_size: 128M
       upload_max_filesize: 128M
       max_effective_size: 128 مگابایت
       max_file_uploads: 20
       imagick_limits: 
       	imagick::RESOURCETYPE_AREA: 377 گیگابایت
       	imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
       	imagick::RESOURCETYPE_FILE: 37500
       	imagick::RESOURCETYPE_MAP: 189 گیگابایت
       	imagick::RESOURCETYPE_MEMORY: 94 گیگابایت
       	imagick::RESOURCETYPE_THREAD: 1
       	imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
       imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV
       gd_version: 2.3.3
       gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
       ghostscript_version: 9.25
   
       ### wp-server ###
   
       server_architecture: Linux 3.10.0-962.3.2.lve1.5.81.el7.x86_64 x86_64
       httpd_software: LiteSpeed
       php_version: 8.1.22 64bit
       php_sapi: litespeed
       max_input_variables: 1000
       time_limit: 250
       memory_limit: 512M
       max_input_time: 60
       upload_max_filesize: 128M
       php_post_max_size: 128M
       curl_version: 7.87.0 OpenSSL/1.1.1p
       suhosin: false
       imagick_availability: true
       pretty_permalinks: true
       htaccess_extra_rules: true
       current: 2023-09-07T07:15:36+00:00
       utc-time: Thursday, 07-Sep-23 07:15:36 UTC
       server-time: ۱۴۰۲/۶/۱۶ ۷:۱۵:۳۳
   
       ### wp-database ###
   
       extension: mysqli
       server_version: 10.3.39-MariaDB-cll-lve
       client_version: 10.3.39-MariaDB
       max_allowed_packet: 1073741824
       max_connections: 1200
   
       ### wp-constants ###
   
       WP_HOME: undefined
       WP_SITEURL: undefined
       WP_CONTENT_DIR: /home/*******/public_html/wp-content
       WP_PLUGIN_DIR: /home/*******/public_html/wp-content/plugins
       WP_MEMORY_LIMIT: 40M
       WP_MAX_MEMORY_LIMIT: 512M
       WP_DEBUG: false
       WP_DEBUG_DISPLAY: true
       WP_DEBUG_LOG: false
       SCRIPT_DEBUG: false
       WP_CACHE: true
       CONCATENATE_SCRIPTS: undefined
       COMPRESS_SCRIPTS: undefined
       COMPRESS_CSS: undefined
       WP_ENVIRONMENT_TYPE: تعریف نشده
       WP_DEVELOPMENT_MODE: undefined
       DB_CHARSET: utf8mb4
       DB_COLLATE: undefined
   
       ### wp-filesystem ###
   
       wordpress: writable
       wp-content: writable
       uploads: writable
       plugins: writable
       themes: writable
   
       `
       ```
   
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17032957)
 * Thanks for sharing your site info with us.
 * If the issue persists in v21.1, navigate to _WordPress > Tools > Yoast Test >
   Yoast SEO_ and click the **‘Reset Notifications’** button. This should remove
   the stored Yoast notifications from the database for all users and reset them.
 * If you do that does the issue resolve?
 *  Thread Starter [rayhan259](https://wordpress.org/support/users/rayhan259/)
 * (@rayhan259)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17039451)
 * hi [@maybellyne](https://wordpress.org/support/users/maybellyne/)
 * Unfortunately, the problem was not solved
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17041031)
 * Thanks for following up, and I’m sorry all the troubleshooting steps we have 
   provided didn’t resolve the issue.
 * Due to the nature of the issue, we’ll need to take a look at your setup. However,
   we are unable to do it here as this is a public forum. So, if you could consider
   purchasing a [Yoast SEO Premium](https://yoast.com/wordpress/plugins/seo/) subscription
   since it comes with email support, we can investigate the issue further directly
   on your setup privately.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘PHP Fatal error: Uncaught Error: Call to undefined function get_userdata()’
is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-error-call-to-undefined-function-get_userdata/#post-17041031)
 * Status: resolved