• Resolved G

    (@gnetworkau)


    Hello, I have automatic updates disabled, and when manually updating to 4.4.3 version got the following error:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    Learn more about troubleshooting WordPress.

    So I renamed the plugin’s directory to de-activate the plugin, and regain access to my dashboard. Then I named it back again, and tried to activate from /wp-admin/plugins.php but got this error:

    Plugin could not be activated because it triggered a fatal error.
    Warning: Undefined array key “index_type” in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2873

    Can fix or make a suggestion?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Bojan Katusic

    (@bojankatusic)

    Hi @gnetworkau

    This line “Warning: Undefined array key “index_type” in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2873” doesn’t seem related to the fatal error.

    Can you please enable WP debugging as explained here, and then try re-installing and activating MainWP. If you get an error again, please take a look in the debug log and share the relevant lines here.

    Thanks

    Thread Starter G

    (@gnetworkau)

    Thankyou. I enabled debug log, then deleted plugin, installed fresh and activated. Same error as above. Here is output of debug.log:

    [25-May-2023 13:41:07 UTC] PHP Warning: Undefined array key "index_type" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2873
    [25-May-2023 13:41:07 UTC] PHP Warning: Undefined array key "index_name" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2879
    [25-May-2023 13:41:07 UTC] PHP Warning: Undefined array key "index_columns" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2882
    [25-May-2023 13:41:07 UTC] PHP Warning: Undefined array key "column_name" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2913
    [25-May-2023 13:41:07 UTC] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/domains/www/domain.com/wp-includes/class-wpdb.php:1846
    Stack trace: 0 /home/domains/www/domain.com/wp-includes/class-wpdb.php(2372): wpdb->print_error() 1 /home/domains/www/domain.com/wp-admin/includes/upgrade.php(3123): wpdb->query() 2 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-install.php(365): dbDelta() 3 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-system.php(1184): MainWP\Dashboard\MainWP_Install->install() 4 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-system.php(120): MainWP\Dashboard\MainWP_System->update_install() 5 /home/domains/www/domain.com/wp-content/plugins/mainwp/mainwp.php(102): MainWP\Dashboard\MainWP_System->__construct() 6 /home/domains/www/domain.com/wp-admin/includes/plugin.php(2314): include_once('…') 7 /home/domains/www/domain.com/wp-admin/includes/plugin.php(661): plugin_sandbox_scrape() 8 /home/domains/www/domain.com/wp-admin/plugins.php(58): activate_plugin() 9 {main} thrown in /home/domains/www/domain.com/wp-includes/class-wpdb.php on line 1846
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "index_type" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2873
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "index_name" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2879
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "index_columns" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2882
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "column_name" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2913
    [25-May-2023 13:41:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/domains/www/domain.com/wp-includes/class-wpdb.php:1846
    Stack trace: 0 /home/domains/www/domain.com/wp-includes/class-wpdb.php(2372): wpdb->print_error() 1 /home/domains/www/domain.com/wp-admin/includes/upgrade.php(3123): wpdb->query() 2 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-install.php(365): dbDelta() 3 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-system.php(1184): MainWP\Dashboard\MainWP_Install->install() 4 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-system.php(120): MainWP\Dashboard\MainWP_System->update_install() 5 /home/domains/www/domain.com/wp-content/plugins/mainwp/mainwp.php(102): MainWP\Dashboard\MainWP_System->__construct() 6 /home/domains/www/domain.com/wp-admin/includes/plugin.php(2314): include_once('…') 7 /home/domains/www/domain.com/wp-admin/plugins.php(192): plugin_sandbox_scrape() 8 {main} thrown in /home/domains/www/domain.com/wp-includes/class-wpdb.php on line 1846
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "index_type" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2873
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "index_name" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2879
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "index_columns" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2882
    [25-May-2023 13:41:09 UTC] PHP Warning: Undefined array key "column_name" in /home/domains/www/domain.com/wp-admin/includes/upgrade.php on line 2913
    [25-May-2023 13:41:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function error_log() in /home/domains/www/domain.com/wp-includes/class-wpdb.php:1846
    Stack trace: 0 /home/domains/www/domain.com/wp-includes/class-wpdb.php(2372): wpdb->print_error() 1 /home/domains/www/domain.com/wp-admin/includes/upgrade.php(3123): wpdb->query() 2 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-install.php(365): dbDelta() 3 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-system.php(1184): MainWP\Dashboard\MainWP_Install->install() 4 /home/domains/www/domain.com/wp-content/plugins/mainwp/class/class-mainwp-system.php(120): MainWP\Dashboard\MainWP_System->update_install() 5 /home/domains/www/domain.com/wp-content/plugins/mainwp/mainwp.php(102): MainWP\Dashboard\MainWP_System->__construct() 6 /home/domains/www/domain.com/wp-admin/includes/plugin.php(2314): include_once('…') 7 /home/domains/www/domain.com/wp-admin/plugins.php(192): plugin_sandbox_scrape() 8 {main} thrown in /home/domains/www/domain.com/wp-includes/class-wpdb.php on line 1846
    Plugin Support Bojan Katusic

    (@bojankatusic)

    Thank you for the debug log.

    We are looking into it.

    Plugin Support Bojan Katusic

    (@bojankatusic)

    We could not duplicate the problem on multiple setups. We believe that the cause may be the PHP environment on your host.

    The code related to the issue was not added recently, so we believe some recent change on the server caused it, and that the scenario is an edge case.

    Would you mind opening a private Help Desk ticket so we can collect some additional information & investigate further?

    https://mainwp.com/my-account/get-support/

    Thread Starter G

    (@gnetworkau)

    I tried deactivating all other plugins, reinstalled WordPress 6.22, still got the same error.

    You may be right about it being related to PHP environment on server. Running php 8.0.28 and thinking of upgrade to 8.1 or 8.2.

    Leave it with me for a couple of days, I will do some testing. Thanks.

    Plugin Support Bojan Katusic

    (@bojankatusic)

    Can you please check with your host support that the error_log() PHP function is enabled on your server?

    We believe this may be causing the error.

    Thread Starter G

    (@gnetworkau)

    You got it Bojan! The error_log function was disabled, once enabled the plugin activated immediately without error. Thankyou.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Critical/Fatal Error on Update to 4.4.3’ is closed to new replies.