• Resolved artgb

    (@artgb)


    After your last update , I have this warning in admin area ‘y() expects parameter 1 to be a valid callback, class ‘OneTeamSoftware\WooCommerce\ShippingPackages\ShippingPackages’ does not have a method ‘onInit’ in /home/…/wp-includes/class-wp-hook.php on line 292′.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Having the same issue since the update.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'OneTeamSoftware\WooCommerce\ShippingPackages\ShippingPackages' does not have a method 'onInit' in /home/customer/www/.../public_html/wp-includes/class-wp-hook.php on line 292
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/.../public_html/wp-includes/class-wp-hook.php:292) in /home/customer/www/.../public_html/wp-includes/pluggable.php on line 1329
    Plugin Author oneteamsoftware

    (@oneteamsoftware)

    Thanks for the ticket and sorry for the troubles. We’ve just pushed new version that fixes the issue.

    Please let me know if you will observe any other issues.

    Solution if access to source files and comfortable making modifications:
    wp-content/plugins/wc-shipping-packages/includes/ShippingPackages.php

    
            // The settings are needed only when in the admin area.
            if (is_admin()) {
    			require_once(__DIR__ . '/Admin/OneTeamSoftware.php');
    			\OneTeamSoftware\WooCommerce\Admin\OneTeamSoftware::instance()->register();
    
    			add_action('init', array($this, 'onShippingInit'));
                add_action('woocommerce_shipping_init', array($this, 'onShippingInit'));
    

    Need to update line 54. Update onInit to onShippingInit

    Plugin Author oneteamsoftware

    (@oneteamsoftware)

    yes,it has been fixed already, please update the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Last update’ is closed to new replies.