Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Fatal Error under PHP8
PHP Fatal error: Unparenthesizeda ? b : c ? d : eis not supported. Use either(a ? b : c) ? d : eora ? b : (c ? d : e)in /home/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/includes/WJECF_Controller.php on line 94
PHP Fatal error: Unparenthesized
is not supported. Use either
or
in /home/public_html/wp-content/plugins/woocommerce-auto-added-coupons-pro/includes/WJECF_Controller.php on line 94
This appears to fix it:
$this->log( 'debug', "INIT " . (( is_ajax() ? "AJAX" : is_admin()) ? "ADMIN" : "FRONTEND" ) . " " . $_SERVER['REQUEST_URI'] );
Can you test and update the plugin?
What version of the plugin are you using? This line does not occur in the latest version.
Thanks, using 2.6.2. What’s the latest?
Sorry, my mistake, the version we have is way out of date; we’ll get a new license.