• Resolved fazendaesp

    (@fazendaesp)


    Hello.

    After updating wpDiscuz to version 7.6.31, every time I try to edit a post, I get a fatal error in my WordPress:

    Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, WP_User given in /var/www/html/portalfazenda.org.br/html/wp-includes/class-wp-user.php:218 Stack trace: #0 /var/www/html/portalfazenda.org.br/html/wp-includes/class-wp-user.php(218): trim() #1 /var/www/html/portalfazenda.org.br/html/wp-includes/pluggable.php(102): WP_User::get_data_by() #2 /var/www/html/portalfazenda.org.br/html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php(1116): get_user_by() #3 /var/www/html/portalfazenda.org.br/html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php(929): WpdiscuzHelper->getUserNameAndEmail() #4 /var/www/html/portalfazenda.org.br/html/wp-includes/class-wp-hook.php(324): WpdiscuzHelper->preGetDefaultAvatarUrl() #5 /var/www/html/portalfazenda.org.br/html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #6 /var/www/html/portalfazenda.org.br/html/wp-includes/link-template.php(4571): apply_filters() #7 /var/www/html/portalfazenda.org.br/html/wp-includes/link-template.php(4322): get_avatar_data() #8 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api.php(1283): get_avatar_url() #9 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php(1107): rest_get_avatar_urls() #10 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php(539): WP_REST_Users_Controller->prepare_item_for_response() #11 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api/class-wp-rest-server.php(1292): WP_REST_Users_Controller->get_current_item() #12 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request() #13 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api.php(586): WP_REST_Server->dispatch() #14 /var/www/html/portalfazenda.org.br/html/wp-includes/rest-api.php(2973): rest_do_request() #15 [internal function]: rest_preload_api_request() #16 /var/www/html/portalfazenda.org.br/html/wp-includes/block-editor.php(754): array_reduce() #17 /var/www/html/portalfazenda.org.br/html/wp-admin/edit-form-blocks.php(114): block_editor_rest_api_preload() #18 /var/www/html/portalfazenda.org.br/html/wp-admin/post.php(187): require('...') #19 {main} thrown in /var/www/html/portalfazenda.org.br/html/wp-includes/class-wp-user.php on line 218

    Thanks.

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

The topic ‘Fatal error in version 7.6.31’ is closed to new replies.