Troubleshooting Common Solid Security Plugin Setup and Database Errors
Content
Many users of the Solid Security plugin (formerly iThemes Security) encounter a specific, frustrating error during installation, update, or activation: "Cannot run iThemes Security. Error encountered during setup. Please try deactivating and reactivating iThemes Security. Contact support if the error persists."
This message is a catch-all indicator that the plugin's setup routine has failed, often due to an issue with its database tables. Based on community reports, here are the most common causes and their solutions.
Why This Error Occurs
The Solid Security plugin relies on a set of custom database tables to store logs, lockouts, and other security data. This error typically appears when the plugin cannot create or alter these tables during its setup process. The underlying reasons can vary from insufficient database user permissions to corrupted tables or incompatible server configurations.
Common Solutions
1. Fix Database User Permissions
If the error message lists specific CREATE or ALTER command denials, the database user your WordPress site uses lacks the necessary permissions.
Solution: You must grant the CREATE, ALTER, and DROP permissions to your WordPress database user. This is typically done through your hosting provider's control panel (e.g., cPanel) or by contacting your host's support team and asking them to adjust the permissions for your database user account.
2. Repair or Delete Corrupted Tables
Errors mentioning that a table is "marked as crashed," "already exists," or has a missing file (like .MYD) point to database corruption.
Solution: Use a database management tool like phpMyAdmin to investigate.
- Table already exists: Manually delete the mentioned Solid Security tables (e.g.,
wp_itsec_logs,wp_itsec_temp). The plugin will attempt to recreate them correctly upon reactivation. - Table is crashed: Use the "Repair table" function in phpMyAdmin on the affected table.
- Missing file: Deleting the corrupted table and reactivating the plugin is often the most reliable fix.
Warning: Deleting tables will erase related logs and temporary data, but your core security settings are usually preserved elsewhere.
3. Address Character Set and Collation Issues
Errors about "Unknown character set" or "Unknown collation" (e.g., utf8, utf8mb4_unicode_ci) indicate your database server is outdated or doesn't support the character sets the plugin requires.
Solution: This is primarily a server-level issue.
- For local/dev environments: Update your local database server (e.g., MySQL, MariaDB) to a more recent version that fully supports modern character sets.
- For live sites: Contact your hosting provider. Explain that your database server does not support the
utf8mb4character set, which is a WordPress requirement since version 4.2. They need to upgrade the database server on their end.
4. Perform a Complete Clean Reinstall
If the above steps don't work, a deep clean is needed to reset the plugin's data completely. A simple deactivate-and-delete from the WordPress admin may not remove all database tables or options.
Solution:
- Deactivate and delete the Solid Security plugin from the WordPress Plugins page.
- Access your database via phpMyAdmin or a similar tool.
- Manually locate and delete all tables prefixed with
{your_prefix}_itsec_(e.g.,wp_itsec_logs,wp_itsec_lockouts). - Also, search the
wp_optionstable (orwp_xx_optionsfor multisite) for any options with the prefixitsec_and delete them. Be very careful in this step. - Reinstall a fresh copy of the Solid Security plugin from the WordPress repository.
Conclusion
The "Cannot run iThemes Security" error is almost always a database-related issue. The most effective troubleshooting path involves checking database user permissions, repairing corrupted tables, ensuring your database server is up-to-date, and, as a last resort, performing a complete clean reinstall of the plugin. If problems persist, your hosting provider can often provide valuable insight into server-specific limitations or errors.
Related Support Threads Support
-
WordPress E_COMPILE_ERRORhttps://wordpress.org/support/topic/wordpress-e_compile_error/
-
ITSEC_DISABLE_MODULES constant has no effecthttps://wordpress.org/support/topic/itsec_disable_modules-constant-has-no-effect/
-
Multisite error: wp_options’ doesn’t existhttps://wordpress.org/support/topic/multisite-error-wp_options-doesnt-exist/
-
Error after updating to WordPress and iThemes Security Pluginhttps://wordpress.org/support/topic/error-after-updating-to-wordpress-and-ithemes-security-plugin/
-
Erreur critique – iTheme securityhttps://wordpress.org/support/topic/erreur-critique-itheme-security/
-
Multisite installation/update errorhttps://wordpress.org/support/topic/multisite-installation-update-error-2/
-
Loopback and Scheduled Events not working with IThemes Security enabledhttps://wordpress.org/support/topic/loopback-and-scheduled-events-not-working-with-ithemes-security-enabled/
-
The link you followed has expiredhttps://wordpress.org/support/topic/the-link-you-followed-has-expired-37/
-
Fatal error on Settings Page with other 2FA plugin installedhttps://wordpress.org/support/topic/fatal-error-on-settings-page-with-other-2fa-plugin-installed/
-
Cannot run iThemes Security error messagehttps://wordpress.org/support/topic/cannot-run-ithemes-security-error-message/
-
iThemes Security Plugin Errorhttps://wordpress.org/support/topic/ithemes-security-plugin-error/
-
Fatal Error – Sent to Restauration Modehttps://wordpress.org/support/topic/fatal-error-sent-to-restauration-mode/
-
iThemes Security error!https://wordpress.org/support/topic/ithemes-security-error/
-
Fatal error activating the pluginhttps://wordpress.org/support/topic/fatal-error-activating-the-plugin-5/
-
Just upgraded to 7.7.1 and ne site failshttps://wordpress.org/support/topic/just-upgraded-to-7-7-1-and-ne-site-fails/
-
An error occurs after I installed the pluginhttps://wordpress.org/support/topic/an-error-occurs-after-i-installed-the-plugin/
-
iThemes plugin initiated API calls generating Javascript errorshttps://wordpress.org/support/topic/ithemes-plugin-initiated-api-calls-generating-javascript-errors/
-
Impossible to install on existing multisite networkhttps://wordpress.org/support/topic/impossible-to-install-on-existing-multisite-network/
-
Problem Error Lines when installing Ithemes Security plugin..https://wordpress.org/support/topic/problem-error-lines-when-installing-ithemes-security-plugin/
-
Cannot run iThemes Security: Duplicate entry ‘0’ for key ‘PRIMARY’https://wordpress.org/support/topic/cannot-run-ithemes-security-duplicate-entry-0-for-key-primary/
-
Fatal error: Uncaught ValueError: Unknown format specifier “S”https://wordpress.org/support/topic/fatal-error-uncaught-valueerror-unknown-format-specifier-s/
-
Fatal error: Uncaught Error: Cannot unset string offsetshttps://wordpress.org/support/topic/fatal-error-uncaught-error-cannot-unset-string-offsets-2/
-
Can’t delete plugins unless I deactivate iThemes Securityhttps://wordpress.org/support/topic/cant-delete-plugins-unless-i-deactivate-ithemes-security/
-
Weird Error r85_itsec_logs.MYD’ not found (Errcode: 2)https://wordpress.org/support/topic/weird-error-r85_itsec_logs-myd-not-found-errcode-2/
-
Cannot run iThemes Security (tables not installed)https://wordpress.org/support/topic/cannot-run-ithemes-security-tables-not-installed/
-
“Cookie “wp-settings-2” has been rejected because it is already expired”https://wordpress.org/support/topic/cookie-wp-settings-2-has-been-rejected-because-it-is-already-expired/
-
500 Internal Error when Itheme Security Plugin is activatedhttps://wordpress.org/support/topic/500-internal-error-when-itheme-security-plugin-is-activated/
-
Latest update causes fatal errorshttps://wordpress.org/support/topic/latest-update-causes-fatal-errors/
-
Table already exists.https://wordpress.org/support/topic/table-already-exists/
-
Duplicate entry ‘0’ for key ‘PRIMARY’https://wordpress.org/support/topic/duplicate-entry-0-for-key-primary-3/
-
issue with iThemes Security pluginhttps://wordpress.org/support/topic/issue-with-ithemes-security-plugin-2/
-
Error found on website by inmotion hostinghttps://wordpress.org/support/topic/error-found-on-website-by-inmotion-hosting/
-
plugin not workinghttps://wordpress.org/support/topic/plugin-not-working-1031/
-
Loopback Issue (After Updating to WP 5.6)https://wordpress.org/support/topic/loopback-issue-after-updating-to-wp-5-6/
-
errors when attempting to activate the pluginhttps://wordpress.org/support/topic/errors-when-attempting-to-activate-the-plugin/
-
Error, when updating file-change-detection ruleshttps://wordpress.org/support/topic/error-when-updating-file-change-detection-rules/
-
Php fatal error uncaught error class ithemesecurity extensionhttps://wordpress.org/support/topic/php-fatal-error-uncaught-error-class-ithemesecurity-extension/
-
I cannot update to version 8.1.3https://wordpress.org/support/topic/i-cannot-update-to-version-8-1-3/
-
SSL Error moving site to localhosthttps://wordpress.org/support/topic/ssl-error-moving-site-to-localhost/
-
system-tweakshttps://wordpress.org/support/topic/system-tweaks/
-
Critical Errorhttps://wordpress.org/support/topic/critical-error-239/
-
Impossible to update iThemes Securityhttps://wordpress.org/support/topic/impossible-to-update-ithemes-security/
-
You are probably offlinehttps://wordpress.org/support/topic/you-are-probably-offline-6/
-
Multisite installation/update errorhttps://wordpress.org/support/topic/multisite-installation-update-error/
-
PHP 7.0 to 7.2 upgrade – Plugin failshttps://wordpress.org/support/topic/php-7-0-to-7-2-upgrade-plugin-fails/
-
Error if i activate the pluginhttps://wordpress.org/support/topic/error-if-i-activate-the-plugin/
-
“internal server” error while saving settingshttps://wordpress.org/support/topic/internal-server-error-while-saving-settings/
-
itsec-validator-system-tweaks-validate_matching_fields-unknown-name-suspicious_qhttps://wordpress.org/support/topic/itsec-validator-system-tweaks-validate_matching_fields-unknown-name-suspicious_q/
-
Cannot run iThemes Securityhttps://wordpress.org/support/topic/cannot-run-ithemes-security/