When visiting a website, you get a 404 error. You are presented with an error similar to this when the log files are investigated (Log file for a website/domain is usually located here: /home/$USER_NAME/logs/DOMAIN.php.error.log)
[07-Sep-2020 09:14:10 UTC] WordPress database error Table './table-name/ wp_posts' is marked as crashed and should be repaired for query SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'type-name' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.post_title ASC made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Vc_Manager->init, do_action('vc_before_init'), WP_Hook->do_action, WP_Hook->apply_filters, mtphr_dnt_add_to_vc, mtphr_dnt_get_tickers, get_posts, WP_Query->query, WP_Query->get_posts
This means some of the WordPress tables need to be repaired. This can be done from the phpMyAdmin interface. Repairing a table with phpMyAdmin is usually an easy task:
- Log in to your phpMyAdmin from the cPanel interface at cPanel > Databases > phpMyAdmin
- Select the database with the crashed table.
- Put a checkmark next to each crashed table.
- Select “Repair table” from the “With selected:” drop-down at the bottom of the list.
- Wait for the operation to complete.
- Refresh the website