Support » Fixing WordPress » WordPress error after attack

  • Resolved encoresin

    (@encoresin)


    Hey there!

    Few days ago I got attacked. Fortunately site is small and there is not many things to do – but going from 0 is a bit boring… So everything was fine with site (I thougt). But after few days i found out that bradcrumbs bbcodes are not shown correctly. So I check ACP and Rankmath plugin was gone. Then I get searchconsole error email. I tried to restore site and its preety good with everything BUT! When I want to edit posts or pages I get error… Now I want repair it only to edit my posts and read mathrank settings. Later I will set site once again.
    Error message:

    Fatal error: Uncaught Error: Call to undefined function rest_is_field_included() in /home/*/domains/*/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php:1453 Stack trace: #0 /home/*/domains/*/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(472): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #1 /home/*/domains/*/public_html/wp-includes/rest-api/class-wp-rest-server.php(946): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request)) #2 /home/*/domains/*/public_html/wp-includes/rest-api.php(433): WP_REST_Server->dispatch(Object(WP_REST_Request)) #3 /home/*/domains/*/public_html/wp-includes/rest-api.php(1396): rest_do_request(Object(WP_REST_Request)) #4 [internal function]: rest_preload_api_request(Array, '/wp/v2/posts/57...') #5 /home/*/domains/*/public_html/wp-admin/edit-form-blocks.php(77): array_reduce(Array, ' in /home/*/domains/*/public_html/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 1453
    
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    I using few other addons, which can also making this problem but they was there even after attack so should be ok. Not sure that mysql import and files import didnt complicated that all.

    But like I said – want only to read it all, and going to paste on new site.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Replace all your WordPress files.

    Get a fresh cup of coffee, take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    Ok, going to replace all files. Hope it will work. And now Im sure that I will make site again. Without any old files. Just for sure…

    Thank you!

    EDIT: It work! Thank you once again!!!!

    • This reply was modified 6 days, 22 hours ago by encoresin. Reason: Answer works
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.