How to catch silent errors with WordPress error logging
A WooCommerce add to cart button was failing silently for some users, with no logged errors to go on. Here is how a few lines in wp-config.php turn on WordPress error logging so you can see what is actually breaking on a live site.