Blog Sections Open

Debugging Shopkeeper Order Submission When eForm Mail Hooks Cause a White Screen

If Shopkeeper works until you add mail callbacks, the failure is usually inside the callback chain rather than in the cart itself.

A classic Shopkeeper debugging case is this: the order form sends mail normally until you enable callbacks such as populateOrderData and sendOrderToManager. After that, the checkout ends on a white screen.

What this usually means

The core problem is rarely Shopkeeper itself. The blank page usually comes from a PHP error inside one of the callback handlers or in the data those handlers expect to receive.

How to isolate it

  1. enable PHP error reporting on a safe environment
  2. test each callback independently
  3. verify that the order payload contains the fields the callback expects
  4. check that the target module tables and related snippets are installed correctly

Once the callbacks are separated and tested one by one, the white screen usually turns into a specific error you can actually fix.

Newer post

Sorting getResources by Two TV Fields in a Predictable Order

How to think about multi-level sorting when a listing needs to order results by one TV and then by another.

Older post

Filtering Wayfinder Output with a Custom Condition Instead of Guessing at `&where`

How to handle menu filtering in Wayfinder when a simple JSON-style where condition does not behave as expected.