0

I just upgraded a WordPress site from 7.4 to 8.0 and in 8.0 got a critical error notice. I enabled debug and debug logging and there was no error display or error logged.

After troubleshooting through the plugins and theme I found an undefined function that was hooked to an action in WooCommerce:

add_action( 'woocommerce_before_add_to_cart_quantity', 'rnr_qty_front_add_cart' );

This action was ignored in php 7.4 but triggered a critical error but with no WordPress debug information in 8.0.

I'm wondering why this is the case?

AJD
  • 371
  • 4
  • 14
  • just create a function in the name of `rnr_qty_front_add_cart ` – Vel Aug 12 '22 at 05:46
  • Thanks. I understand that creating a function will fix the issue. But I'm interested in the underlying change from php 7.4 to 8.0 that would cause this type of error to be handled differently. – AJD Aug 13 '22 at 10:45

0 Answers0