Fatal Error, need help please

Good day

I followed advice on a forum post that said I can create a client’s site using a subdirectory in my domain, and then when done I can migrate it to my client.

I then installed WP, installed the Pro X theme, installed a site demo from Design Cloud, but when I wanted to edit, I got the following error:

Fatal error : Uncaught Error: Class ‘WP_REST_Search_Controller’ not found in /home/lawwedby/public_html/ydp/wp-includes/rest-api.php:293 Stack trace: #0 /home/lawwedby/public_html/ydp/wp-includes/class-wp-hook.php(307): create_initial_rest_routes(Object(WP_REST_Server)) #1 /home/lawwedby/public_html/ydp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #2 /home/lawwedby/public_html/ydp/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #3 /home/lawwedby/public_html/ydp/wp-includes/rest-api.php(553): do_action(‘rest_api_init’, Object(WP_REST_Server)) #4 /home/lawwedby/public_html/ydp/wp-includes/rest-api.php(511): rest_get_server() #5 /home/lawwedby/public_html/ydp/wp-includes/block-patterns.php(79): rest_do_request(Object(WP_REST_Request)) #6 /home/lawwedby/public_html/ydp/wp-admin/edit-form-blocks.php(32): _load_remote_block_patterns() #7 /home/lawwedby/public_html/ydp/wp-admin/post.php(187): require(’/home/lawwedby/…’) #8 {main} thrown in /home/lawwedby/public_html/ydp/wp-includes/rest-api.php on line 293

There has been a critical error on this website. Please check your site admin email inbox for instructions.

Learn more about troubleshooting WordPress.

Could you please assist.

Hello @Sokrates77,

Thanks for writing to us.

It might be the issue of version compatibility. Please make sure your theme, plugins, WordPress, and the PHP version is updated as per our version compatibility page.

In case your server PHP version is lower than 7.4 I would suggest you please contact your hosting provider to upgrade to 7.4 or 7.4+ as per our version compatibility page.. It is also recommended by WordPress as well. Please have a look at this article.

I would suggest you please purge all the cache. I would suggest you troubleshoot a few of the common issues before we investigate your settings.

  1. Testing For Theme Related Issue
  2. Testing For Plugin Conflict
  3. Theme Update
  4. Child Theme
  5. Css/Js Customization
  6. Increasing Php Memory Limit
  7. Disabling Cache
  8. Disabling Cdn
  9. Permalinks
  10. Version Compatibility

If it doesn’t work, I would suggest you follow these steps.

  1. Activate the default theme of WordPress and deactivate the Pro theme
  2. Delete the Pro theme
  3. Download the fresh copy of the Pro theme from the Themeco account dashboard
  4. Reinstall the Pro theme

If none of those work, It would be best if you could copy your live website to your staging area. and send your details in a secure note so that we can investigate your setting without breaking your live site. Please provide the following details

  • WordPress Login URL
  • Admin level username and password
  • FTP Details

You can find the Secure Note button at the bottom of your posts

Thanks

Thank you very much Prakash_S

Hi @Sokrates77,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.