• Resolved atticus7

    (@atticus7)


    Reposting this as a new topic, as an earlier report of this issue has been marked as resolved.

    I’m getting this same error message:

    Fatal error: Call to a member function is_allowed() on wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/wcpdf-functions.php (81)

    This is when trying to generate the PDF from the admin – in a single order.

    The issue arose after bringing WP, Woocmmerce and other plugins up-to-date last week. Previously it worked as expected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @atticus7,

    Are you using a custom PDF template instead of our default Simple template?

    You can check this under WooCommerce?> PDF?Invoices?> General?> Choose?a?template:

    Thread Starter atticus7

    (@atticus7)

    Thank you. Yes – that was the issue. Out of date custom templates.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for confirming that, @atticus7!

    You could take a look at the Simple code (source) and update the relevant parts within your custom PDF template, in the case that you still need to use it.

    That said, whenever possible, I recommend using the filter and action hooks instead to add your customizations.

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.