Symptoms
When attempting to access the plugin interface "Home » Plugins » WP Toolkit" in WHM, the following error is returned.
Unable to parse received authentication token. Please contact your server administrator
Description
This error is commonly caused by corrupted or missing data from the SQLite database used by WP Toolkit. This can be confirmed by checking the main logs located within /usr/local/cpanel/3rdparty/wp-toolkit/var/logs/ for an error like the following after generating the error referenced above.
Next Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 11 database disk image is malformed in /usr/local/cpanel/3rdparty/wp-toolkit/lib/zf1/library/Zend/Db/Statement/Pdo.php:61
Workaround
After confirming that the interface error is caused by the error "11 database disk image is malformed", you will want to verify if the database is missing table data. The following can be used to confirm the current tables in the database.
# /usr/local/cpanel/3rdparty/bin/sqlite3 /usr/local/cpanel/3rdparty/wp-toolkit/var/wp-toolkit.sqlite3 .tables
InstanceProperties PluginVersions SmartUpdateRunStatistics
Instances Plugins StatisticsMeasurements
InstancesDomains PluginsInstances ThemeVersions
JwtRefreshTokens RemoteInstanceLogItems Themes
JwtSignKeys RemoteServers ThemesInstances
LongTaskParams ScheduledTasks UserSettings
LongTaskUser Sets Users
LongTasks SetsPlugins settings
PhinxMigrations SetsThemes version
If there is no output or the database is corrupted, it will be required to reinstall Toolkit in order to recreate this database. To perform a reinstall, you will need to fully remove and reinstall the package as outlined below.
yum remove wp-toolkit-cpanel
yum install wp-toolkit-cpanel
Once these tasks complete, the interface will be expected to load normally. If you have continued issues, please contact cPanel support for assistance.
Comments
0 comments
Article is closed for comments.