Incompatible with Software License Manager 4.5.2

Issue #22 resolved
Mike Ott created an issue

When updating to Software License Manager 4.5.2, the website throws a critical error.

The error goes away if:

  • I disable your slm-woocommerce-addon plugin
    or
  • I downgrade Software License Manager to 4.5.0

This issue makes it impossible for users to activate their licenses, and causes WordPress to send regular automated “Your site is experiencing a technical issue” emails.

Here’s the full unsuppressed error:

Fatal error: Uncaught ArgumentCountError: Too few arguments to function slm_wooaddon_custom_output(), 1 passed in D:\www\rap\wp-includes\class-wp-hook.php on line 303 and exactly 2 expected in D:\www\rap\wp-content\plugins\slm-woocommerce-addon\slm-add-fields-to-license-manager.php:3 Stack trace: #0 D:\www\rap\wp-includes\class-wp-hook.php(303): slm_wooaddon_custom_output(Array) #1 D:\www\rap\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #2 D:\www\rap\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #3 D:\www\rap\wp-content\plugins\software-license-manager\menu\slm-add-licenses.php(362): do_action('slm_add_edit_in...', Array) #4 D:\www\rap\wp-includes\class-wp-hook.php(303): wp_lic_mgr_add_licenses_menu('') #5 D:\www\rap\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #6 D:\www\rap\wp-includes\plugin.php(470): WP_Hook->do_action(Array) #7 D:\www\rap\wp-admin\admin.php(259): do_action('license in D:\www\rap\wp-content\plugins\slm-woocommerce-addon\slm-add-fields-to-license-manager.php on line 3
There has been a critical error on this website. Please check your site admin email inbox for instructions.

Comments (2)

  1. Tyler Robinson repo owner

    I had to speak to the developers of the Software License Manager plugin and found that they had to update their code per WordPress that allowed for adding the extra fields. This meant that I needed to update my code to work with their updated code. This has now been updated and working!

  2. Log in to comment