Fatal error: Uncaught Error: The script tried to modify a property on an incomplete object

Here are a couple things you can try: Increase Memory Limit: Sometimes, PHP memory limit issues can cause such errors. Try increasing the memory limit by adding define(‘WP_MEMORY_LIMIT’, ‘256M’); to your wp-config.php file. Check WooCommerce Status: Go to WooCommerce > Status in your WordPress admin to see if there are any alerts or recommendations.

write developer debug statements to separate log

You can tell error_log() where to put its output: error_log( ‘my debugging output’, 3, ‘/my/debug/log/location/log.txt’ ); It might be more convenient to add your own function: if ( ! function_exists( ‘my_debug’ ) ) { function my_debug( $x = ” ) { // Uses print_r() in case $x isn’t a string. error_log( print_r( $x, 1 ), … Read more