Hi,
I’m using Cornerstone Forms with Advanced Mode enabled (confirmed in Settings > Forms). I’ve added a PHP Action to a form, but the code never executes.
What I’ve tried:
- Simple test code in the PHP Action field:
throw new Exception( 'PHP Action is running' );
Expected: form error message. Result: form shows success, no error.
- File write test:
file_put_contents( ABSPATH . 'support-debug.txt', 'PHP Action fired' );
Expected: file created in WordPress root. Result: no file created.
- Confirmed Advanced Mode is enabled in Cornerstone Settings > Forms tab.
- Tried deactivating/reactivating plugins and clearing cache.
Setup:
- Pro Theme (latest version)
- Cornerstone (latest version)
- Form uses AJAX submission
- PHP Action is the first action in the chain
- WordPress version: [your version]
- PHP version: [your version]
The PHP Action appears in the action list and I can configure it, but it simply never runs. Other actions (like Redirect) work fine.
Is there an additional requirement to make PHP Actions functional, or could something be blocking execution?
Thanks
