• Resolved moderns

    (@moderns)


    Hello,

    Yesterday I installed the latest version of this plugin on the latest version of WordPress 5.9.3 but unfortunately the plugin failed to activate when WooCommerce (latest version 6.4.1) was installed. I got this error:

    Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/lifeisgood/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-install.php on line 141

    I tried multiple times to delete it and re-install it but without any luck.

    Even this plugin broke my website and I had to change its name manually from the Linux console to get my website back to work.

    What’s the problem?

    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Zorem

    (@zorem)

    Hi @moderns,

    We checked this in our development store but we can’t replicate this issue.
    Open your database and delete “woo_shippment_provider” from your website database and check again by activating the plugin.

    Thanks

    Thread Starter moderns

    (@moderns)

    Hi,

    This problem happens on new installed WordPress website. I tested it on 3 different websites and it happened. I’m web developer. Install new version of WordPress (don’t update), then install WooCommerce and install and activate your plugin, this problem will happen. I’ve over 10 wordpress/ecommerce websites running. I tested the problem on my old websites that are updated to the latest version of WordPress but it didn’t occur.

    I already tried to truncate/drop the table but it didn’t work too.

    truncate table wp_woo_shippment_provider;
    drop table wp_woo_shippment_provider;

    I’m using your plugin since more than 2 years, it’s amazing. I hope you can rectify this problem.

    As I said, just install new WordPress on test server, install WooCommerce then install your plugin and try to activate it, you will see this problem.

    Thanks.

    Plugin Author Zorem

    (@zorem)

    Hi @moderns,
    I installed AST on a test server as you said and the plugin activated successfully.
    Thanks

    Thread Starter moderns

    (@moderns)

    It’s very weird, I made 3 new fresh installations and it doesn’t work. Can you please tell me what can be the problem then?

    Plugin Author Zorem

    (@zorem)

    Which version of PHP and MySQL do you use?

    Thread Starter moderns

    (@moderns)

    Database (MariaDB):
    mariadb Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

    mysql Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86_64)dline 5.2

    PHP: PHP 7.4.28 (cli) (built: Feb 17 2022 16:06:35) ( NTS )

    Thread Starter moderns

    (@moderns)

    Any update please? I tested it on another server, another IP and different versions, doesn’t work. Definitely your plugin has a problem 100% but as you know, not everybody reports.

    Plugin Author Zorem

    (@zorem)

    Hi, I just created a fresh WordPress installation, installed and activated WooCommerce and I was able to install and activate the Advanced Shipment Tracking, the first install takes 10-15 seconds since we sync the shipping providers list but there is not error and everything works fine

    Thread Starter moderns

    (@moderns)

    Hi, do you deny the error? I made another test on a new server:

    PHP 8.0.18 (cli) (built: Apr 21 2022 10:14:55) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.18, Copyright (c) Zend Technologies with Zend OPcache v8.0.18, Copyright (c), by Zend Technologies

    mariadb Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

    See please the error? I didn’t author this error. Please umark the thread as resolved, it’s not resolved. You should know the error and you should be able to fix it.

    Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/html/lifeisgood/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-install.php:141 Stack trace: #0 /var/www/html/lifeisgood/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-install.php(128): WC_Advanced_Shipment_Tracking_Install->check_all_column_exist() #1 /var/www/html/lifeisgood/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-install.php(79): WC_Advanced_Shipment_Tracking_Install->create_shippment_tracking_table() #2 /var/www/html/lifeisgood/wp-includes/class-wp-hook.php(307): WC_Advanced_Shipment_Tracking_Install->woo_shippment_tracking_install() #3 /var/www/html/lifeisgood/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #4 /var/www/html/lifeisgood/wp-includes/plugin.php(474): WP_Hook->do_action() #5 /var/www/html/lifeisgood/wp-admin/plugins.php(194): do_action() #6 {main} thrown in /var/www/html/lifeisgood/wp-content/plugins/woo-advanced-shipment-tracking/includes/class-wc-advanced-shipment-tracking-install.php on line 141

    Plugin Author Zorem

    (@zorem)

    Hi @moderns,
    We have modified and pushed the plugin files to the WordPress repository to avoid this fatal error.
    Please reinstall(download again) the plugin and check if it solves your issue.
    Let us know how it goes.
    Thanks

    Thread Starter moderns

    (@moderns)

    Hi. Thanks, it works now. Finally!

    Plugin Author Zorem

    (@zorem)

    Your welcome, can you please leave a review for the plugin here

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘The plugin fails to active’ is closed to new replies.