WordPress站点无法加载,请求协助排查文件缺失类报错
class-wp-list-table.php in XStore Theme's TGM Plugin Activation First, let's lay out the exact error you're encountering:
Warning: require_once(/customers/4/7/0/jetpackprint.co.uk/httpd.www/wp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in /customers/4/7/0/jetpackprint.co.uk/httpd.www/wp-content/themes/xstore/framework/thirdparty/tgm-plugin-activation/class-tgm-plugin-activation.php on line 2170
Fatal error: require_once(): Failed opening required '/customers/4/7/0/jetpackprint.co.uk/httpd.www/wp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in /customers/4/7/0/jetpackprint.co.uk/httpd.www/wp-content/themes/xstore/framework/thirdparty/tgm-plugin-activation/class-tgm-plugin-activation.php on line 2170
This error pops up because your XStore theme's TGM Plugin Activation script is trying to load a core WordPress file (class-wp-list-table.php) that's either missing, corrupted, or inaccessible. Let's walk through actionable fixes to get your site back online:
Reupload WordPress Core Files to Restore the Missing File
class-wp-list-table.phpis a critical core WordPress file, so refreshing your core files is the most reliable first step (this won't touch your themes, plugins, or settings):- Download the exact same version of WordPress you're using (check
wp-includes/version.phpon your server if you don't remember the version) from WordPress.org. - Unzip the downloaded package, then delete the
wp-contentfolder from the extracted files—we don't want to overwrite your custom content. - Use FTP or your hosting control panel's file manager to upload the remaining files/folders (
wp-admin,wp-includes, and root files likeindex.php) to your server, overwriting the existing ones. - After the upload finishes, test if your site loads normally again.
- Download the exact same version of WordPress you're using (check
Temporarily Switch to a Default Theme to Isolate the Issue
If reuploading core files doesn't fix things, the problem might lie with the XStore theme's TGM implementation. Let's rule that out:- Access your server via FTP/File Manager, navigate to
wp-content/themes/. - Rename the
xstorefolder to something likexstore-temp. WordPress will automatically switch to a default theme (like Twenty Twenty-Four) when the active theme is unavailable. - If your site loads now, the issue is tied to the XStore theme's TGM script. Try updating the theme to its latest version (download from your ThemeForest account) or reach out to the XStore support team for help with their TGM code.
- Access your server via FTP/File Manager, navigate to
Verify File Permissions
Incorrect file permissions can block WordPress from accessing core files:- Set folder permissions for
wp-admin/includes/to755(read/write/execute for the owner, read/execute for group and others). - Set file permissions for
class-wp-list-table.phpto644(read/write for the owner, read for group and others). - Most hosting control panels have a built-in "Fix Permissions" tool, or you can adjust permissions manually via FTP.
- Set folder permissions for
内容的提问来源于stack exchange,提问作者Christopher Fewster

