CiviEvent Live and Test Registration pages yield error when accessed
If you are on wordpress 5.5 than your CiviCRM version should be more than 5.25.x. Also can you check the shortcode that you have added in wp post/page has contribution id.