Form API checks for the $_POST variable and throws an error if not set any. The openid provider unsets the $_POST variable when presenting the user a little form to decide if she wants to login to the relying party site.

The following error is thrown:

Notice: Undefined variable: _POST in drupal_build_form() (line 309 of /path/to/my/drupal/includes/form.inc).

As mentioned in #1 solved by using $_POST = array(); instead of unset($_POST);

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xamanu’s picture

Status: Active » Needs review
FileSize
697 bytes

This can be solved easily by using $_POST = array(); instead of unset($_POST);
Here is the patch.

leochid’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #1 works.

Shyamala’s picture

Issue summary: View changes

editing issue summary

anarcat’s picture

Status: Reviewed & tested by the community » Fixed

pushed to 6.x and 7.x, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

editing issue summary