• Resolved Pt

    (@bncpeter)


    Hey just FYI, if WooCommerce is deactivated a call to wc_string_to_bool() will lockup the whole admin backend and required intervention via FTP.

    I’d recommend using if(function_exists(‘wc_string_to_bool’)) {…} first; indeed for any function from outside of your own plugin. Might also be worth checking if WooCommerce is activated right at the top of the plugin and returning early.

    Here’s the relevant error text:

    …wp-content/plugins/woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php. Error message: Uncaught Error: Call to undefined function wc_string_to_bool() in /home/chch2559/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php:639

    Pete.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.