A post var error upon webform submitting programmatically
According to this post:

https://www.drupal.org/node/2677936

If it's a custom webform template, you may need to add, at the end of the form:

&lt;?php print drupal_render_children($form); ?&gt;


See also this related issue here: https://www.drupal.org/node/2417757