Undefined variable: _SESSION
-
When using the WC REST API, Striper gives the following error:
Notice: Undefined variable: _SESSION in /wp-content/plugins/striper/stripe_gateway.php on line 215
You should add two checks to this line:
- Check for the existence of superglobal $_SESSION (not present for API orders)
- Check that ‘order_awaiting_payment’ isset (may or may not be the case)
- The topic ‘Undefined variable: _SESSION’ is closed to new replies.