• Resolved dependencyinjection

    (@dependencyinjection)


    Hi and thank you for the amazing plugin!

    I found an issue, if you replace ‘document_type’ value in the link, the plugin throws the error:

    /admin-ajax.php?action=generate_wpo_wcpdf&document_type=invoic1e&order_ids=123&access_key=3ee5e7e8fa

    I replaced ‘invoice’ with ‘invoic1e’ and the fatal error appeared

    Fatal error: Call to a member function is_allowed() on bool
    /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/wcpdf-functions.php (82) 0 /var/www/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(545): wcpdf_get_document() 1 /var/www/html/wp-includes/class-wp-hook.php(324): WPO\WC\PDF_Invoices\Main->generate_document_ajax() 2 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 3 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /var/www/html/wp-admin/admin-ajax.php(188): do_action() 5 {main}

    Can you please investigate? It works only for the logged in user

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Call to a member function is_allowed() on bool’ is closed to new replies.