Multisite Error Log Generation when New Site Created
-
The following error log entry is created whenever a new site is created in a Multisite installation (subdomains):
[24-Apr-2022 19:49:14 UTC] WordPress database error Table 'crewmgrc_wpcrmgr.wp_59_options' doesn't exist for query INSERT INTO
wp_59_options(
option_name,
option_value,
autoload) VALUES ('aiowpsec_db_version', '1.9', 'yes') ON DUPLICATE KEY UPDATE
option_name= VALUES(
option_name),
option_value= VALUES(
option_value),
autoload= VALUES(
autoload) made by wpmu_create_blog, wp_insert_site, do_action('wp_insert_site'), WP_Hook->do_action, WP_Hook->apply_filters, aiowps_ms_handle_new_site, AIOWPSecurity_Installer::create_db_tables, update_option, add_option
I believe this may be hooked too soon as the table definitely exists when the site is created as I have checked it using phpMyAdmin.
The function calling this is on line 149 of the file /wp-content/plugins/all-in-one-wp-security-and-firewall/classes/wp-security-installer.php
update_option("aiowpsec_db_version", AIO_WP_SECURITY_DB_VERSION);
Consider moving this to a hook called later in the initialization / setup of a new site.
- The topic ‘Multisite Error Log Generation when New Site Created’ is closed to new replies.