Plugin not activating correctly
-
Hi
I’m experiencing an issue with activating the plugin.
When installed and activated it waits a while then throws an error. Either “There has been a critical error on this website”, a HTTP Error 500, 404 not found, or just hangs.
Going back to the dashboard it does appear the plugin has installed, and can follow the wizard steps. But it then does not record any activities.
I’ve uninstalled and reinstalled a few times without any luck.
Viewing the error logs I see the following:
[15-Apr-2025 11:29:40 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 16384 bytes) in /home/accountname/public_html/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-database-sensor.php on line 587
[15-Apr-2025 11:29:40 UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 458752 bytes) in /home/accountname/public_html/wp-includes/l10n/class-wp-translation-file-php.php on line 24
[15-Apr-2025 11:53:32 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 262144 bytes) in /home/accountname/public_html/wp-content/plugins/wp-security-audit-log/classes/Helpers/class-wp-helper.php on line 234
[15-Apr-2025 11:53:32 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
[15-Apr-2025 12:19:48 UTC] PHP Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /home/accountname/public_html/wp-includes/class-wpdb.php on line 1982
[15-Apr-2025 12:23:53 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) in /home/accountname/public_html/wp-content/plugins/wp-security-audit-log/classes/WPSensors/class-wp-database-sensor.php on line 162
[15-Apr-2025 12:23:53 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 458752 bytes) in /home/accountname/public_html/wp-includes/l10n/class-wp-translation-file-php.php on line 24
[15-Apr-2025 12:24:40 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query
CREATE TABLEEh6k8fD_wsal_occurrences(
idbigint NOT NULL AUTO_INCREMENT,
site_idbigint NOT NULL,
alert_idbigint NOT NULL,
created_ondouble NOT NULL,
client_ipvarchar(255) NOT NULL,
severityvarchar(255) NOT NULL,
objectvarchar(255) NOT NULL,
event_typevarchar(255) NOT NULL,
user_agentvarchar(255) NOT NULL,
user_rolesvarchar(255) NOT NULL,
usernamevarchar(255) DEFAULT NULL,
user_idbigint DEFAULT NULL,
session_idvarchar(255) NOT NULL,
post_statusvarchar(255) NOT NULL,
post_typevarchar(255) NOT NULL,
post_idbigint NOT NULL,
PRIMARY KEY (id),
KEYsite_alert_created(site_id,alert_id,created_on),
KEYcreated_on(created_on),
KEYwsal_users(user_id,username)
)
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WP_Plugins_Themes_Sensor::event_admin_shutdown, WSAL\Controllers\Alert_Manager::trigger_event, WSAL\Controllers\Alert_Manager::commit_item, WSAL\Controllers\Alert_Manager::log, WSAL\Loggers\Database_Logger::log, WSAL\Entities\Occurrences_Entity::store_record, WSAL\Entities\Occurrences_Entity::save, WSAL\Entities\Abstract_Entity::save, WSAL\Entities\Occurrences_Entity::create_table, WSAL\Entities\Abstract_Entity::maybe_create_table
[15-Apr-2025 12:27:54 UTC] PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 20480 bytes) in /home/accountname/public_html/wp-includes/class-wpdb.php on line 2316
[15-Apr-2025 12:28:45 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query
CREATE TABLEEh6k8fD_wsal_occurrences(
idbigint NOT NULL AUTO_INCREMENT,
site_idbigint NOT NULL,
alert_idbigint NOT NULL,
created_ondouble NOT NULL,
client_ipvarchar(255) NOT NULL,
severityvarchar(255) NOT NULL,
objectvarchar(255) NOT NULL,
event_typevarchar(255) NOT NULL,
user_agentvarchar(255) NOT NULL,
user_rolesvarchar(255) NOT NULL,
usernamevarchar(255) DEFAULT NULL,
user_idbigint DEFAULT NULL,
session_idvarchar(255) NOT NULL,
post_statusvarchar(255) NOT NULL,
post_typevarchar(255) NOT NULL,
post_idbigint NOT NULL,
PRIMARY KEY (id),
KEYsite_alert_created(site_id,alert_id,created_on),
KEYcreated_on(created_on),
KEYwsal_users(user_id,username)
)
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\Controllers\Alert_Manager::commit_pipeline, WSAL\Controllers\Alert_Manager::commit_item, WSAL\Controllers\Alert_Manager::log, WSAL\Loggers\Database_Logger::log, WSAL\Entities\Occurrences_Entity::store_record, WSAL\Entities\Occurrences_Entity::save, WSAL\Entities\Abstract_Entity::save, WSAL\Entities\Occurrences_Entity::create_table, WSAL\Entities\Abstract_Entity::maybe_create_table
[15-Apr-2025 12:28:58 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query
CREATE TABLEEh6k8fD_wsal_occurrences(
idbigint NOT NULL AUTO_INCREMENT,
site_idbigint NOT NULL,
alert_idbigint NOT NULL,
created_ondouble NOT NULL,
client_ipvarchar(255) NOT NULL,
severityvarchar(255) NOT NULL,
objectvarchar(255) NOT NULL,
event_typevarchar(255) NOT NULL,
user_agentvarchar(255) NOT NULL,
user_rolesvarchar(255) NOT NULL,
usernamevarchar(255) DEFAULT NULL,
user_idbigint DEFAULT NULL,
session_idvarchar(255) NOT NULL,
post_statusvarchar(255) NOT NULL,
post_typevarchar(255) NOT NULL,
post_idbigint NOT NULL,
PRIMARY KEY (id),
KEYsite_alert_created(site_id,alert_id,created_on),
KEYcreated_on(created_on),
KEYwsal_users(user_id,username)
)
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; made by require_once('wp-admin/user-edit.php'), edit_user, wp_update_user, wp_insert_user, update_user_meta, update_metadata, do_action('updated_user_meta'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WP_Meta_Data_Sensor::event_user_meta_updated, WSAL\Controllers\Alert_Manager::trigger_event, WSAL\Controllers\Alert_Manager::commit_item, WSAL\Controllers\Alert_Manager::log, WSAL\Loggers\Database_Logger::log, WSAL\Entities\Occurrences_Entity::store_record, WSAL\Entities\Occurrences_Entity::save, WSAL\Entities\Abstract_Entity::save, WSAL\Entities\Occurrences_Entity::create_table, WSAL\Entities\Abstract_Entity::maybe_create_table
[15-Apr-2025 12:28:58 UTC] WordPress database error Specified key was too long; max key length is 1000 bytes for query
CREATE TABLEEh6k8fD_wsal_occurrences(
idbigint NOT NULL AUTO_INCREMENT,
site_idbigint NOT NULL,
alert_idbigint NOT NULL,
created_ondouble NOT NULL,
client_ipvarchar(255) NOT NULL,
severityvarchar(255) NOT NULL,
objectvarchar(255) NOT NULL,
event_typevarchar(255) NOT NULL,
user_agentvarchar(255) NOT NULL,
user_rolesvarchar(255) NOT NULL,
usernamevarchar(255) DEFAULT NULL,
user_idbigint DEFAULT NULL,
session_idvarchar(255) NOT NULL,
post_statusvarchar(255) NOT NULL,
post_typevarchar(255) NOT NULL,
post_idbigint NOT NULL,
PRIMARY KEY (id),
KEYsite_alert_created(site_id,alert_id,created_on),
KEYcreated_on(created_on),
KEYwsal_users(user_id,username)
)
DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; made by require_once('wp-admin/user-edit.php'), edit_user, wp_update_user, wp_insert_user, update_user_meta, update_metadata, do_action('updated_user_meta'), WP_Hook->do_action, WP_Hook->apply_filters, WSAL\WP_Sensors\WP_Meta_Data_Sensor::event_user_meta_updated, WSAL\Controllers\Alert_Manager::trigger_event, WSAL\Controllers\Alert_Manager::commit_item, WSAL\Controllers\Alert_Manager::log, WSAL\Loggers\Database_Logger::log, WSAL\Entities\Occurrences_Entity::store_record, WSAL\Entities\Occurrences_Entity::save, WSAL\Entities\Abstract_Entity::save, WSAL\Entities\Occurrences_Entity::create_table, WSAL\Entities\Abstract_Entity::maybe_create_tableChecking the database it does not appear there are any wsal_ based tables in there.
The MySQL account does have full privileges.
Any ideas?
WP 6.7.2
PHP 8.2.28
MySQL 8.0.42
The topic ‘Plugin not activating correctly’ is closed to new replies.