• Resolved waseem55

    (@waseem55)


    Automatic Order Printing for WooCommerce is creating error. when i active this plugin and access WooCommerce dashboard its shows critical error on website. Can you please guide.
    Here is error log

    [15-Jun-2022 06:28:56 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Automattic\WooCommerce\Internal\Utilities\HtmlSanitizer::sanitize() must be of the type string, null given, called in /wordpress/plugins/woocommerce/6.6.0/includes/abstracts/abstract-wc-payment-gateway.php on line 308 and defined in /wordpress/plugins/woocommerce/6.6.0/src/Internal/Utilities/HtmlSanitizer.php:51
    Stack trace:
    #0 /wordpress/plugins/woocommerce/6.6.0/includes/abstracts/abstract-wc-payment-gateway.php(308): Automattic\WooCommerce\Internal\Utilities\HtmlSanitizer->sanitize(NULL, Array)
    #1 /srv/htdocs/wp-content/plugins/automatic-order-printing-for-woocommerce/includes/class-woo-order-auto-print-cpt.php(749): WC_Payment_Gateway->get_title()
    #2 /srv/htdocs/wp-content/plugins/automatic-order-printing-for-woocommerce/includes/class-woo-order-auto-print-cpt.php(310): Woo_Order_Auto_Print_Cpt->get_print_fields()
    #3 /wordpress/core/6.0/wp-includes/class-wp-hook.php(307): Woo_Order_Auto_Print_Cpt->custom_fields('')
    #4 /wordpress/core/6.0/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #5 /wordpress/core/6.0/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #6 /srv/htdocs/wp-content/plugins/automatic-order-printing-for-woocommerce/vendor/cmb2/cmb2/bootstrap.php(26): do_action('cmb2_admin_init')
    #7 /srv/htdocs/wp-content/plugins/automatic-order-printing-for-woocommerce/vendor/cmb2/cmb2/init.php(165): cmb2_bootstrap()
    #8 /wordpress/core/6.0/wp-includes/class-wp-hook.php(307): CMB2_Bootstrap_270->include_cmb('')
    #9 /wordpress/core/6.0/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #10 /wordpress/core/6.0/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #11 /wordpress/core/6.0/wp-settings.php(598): do_action('init')
    #12 /srv/htdocs/wp-config.php(83): require_once('/wordpress/core...')
    #13 /wordpress/core/6.0/wp-load.php(55): require_once('/srv/htdocs/wp-...')
    #14 /wordpress/core/6.0/wp-admin/admin-ajax.php(22): require_once('/wordpress/core...')
    #15 {main}
      thrown in /wordpress/plugins/woocommerce/6.6.0/src/Internal/Utilities/HtmlSanitizer.php on line 51
Viewing 2 replies - 1 through 2 (of 2 total)
  • Roxy

    (@roxannestoltz)

    Thanks for reaching out!

    I understand that you are receiving PHP Fatal error: Uncaught TypeError when activating Automatic Order Printing for WooCommerce.

    Please confirm if the below is the plugin you are referring to:

    https://woocommerce.com/document/automatic-order-printing-for-woocommerce/

    If so, please could you contact WooCommerce.com Support directly at WooCommerce.com > My Account > Support for support with this premium plugin. Please create the ticket using the same account that you purchased the extension with.

    Note: Per the Forum Guidelines paid extensions are not meant to be supported on this public forum, but through official support channels instead.

    Hope this helps!

    This thread has been inactive for a bit, so I’m going to mark it as resolved. Hopefully, the above information was helpful to you.

    Please feel free to open a new thread if you have any other questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need help’ is closed to new replies.