• Resolved aumjosh

    (@aumjosh)


    Booster is throwing critical errors when I try to upgrade my site to PHP 8.0.

    PHP Fatal error:  Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in /nas/content/live/…/wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-invoicing.php:239\nStack trace:\n#0 /nas/content/live/…/wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-invoicing.php(239): in_array(‘angsanaupc.ctg….’, false, true)\n#1 /nas/content/live/…/wp-content/plugins/booster-plus-for-woocommerce/includes/pdf-invoices/submodules/class-wcj-pdf-invoicing-styling.php(90): wcj_check_and_maybe_download_tcpdf_fonts(true)\n#2 /nas/content/live/…/wp-includes/class-wp-hook.php(308): WCJ_PDF_Invoicing_Styling->download_fonts(‘hourly’)\n#3 /nas/content/live/…/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)\n#4 /nas/content/live/…/wp-includes/plugin.php(565): WP_Hook->do_action(Array)\n#5 /nas/content/live/…/wp-cron.php(188): do_action_ref_array(‘wcj_download_tc…’, Array)\n#6 {main}\n  thrown in /nas/content/live/…/wp-content/plugins/booster-plus-for-woocommerce/includes/functions/wcj-functions-invoicing.php on line 239, referer: https://….wpengine.com/wp-cron.php?doing_wp_cron=1675953643.9038789272308349609375

    • This topic was modified 2 years, 1 month ago by aumjosh.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support David G

    (@gravid7)

    Hi @aumjosh

    Thanks for reaching out to us.

    Please add below code in your wp-config.php file and let us know if it is still not solved.

    @ini_set( ‘log_errors’, ‘On’ );
    @ini_set( ‘display_errors’, ‘Off’ );
    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    Plugin Support David G

    (@gravid7)

    Hi @aumjosh

    I haven’t heard back from you, so I believe the issue has been resolved. I’m marking this topic complete, please feel free to open a new topic for any further queries.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 8.0 Critical Error’ is closed to new replies.