PHP Fatal error: Call to undefined function kpr() in /sites/all/modules/contrib/google_adwords/modules/google_adwords_signup/google_adwords_signup.module on line 61

A call to the devel module kpr() function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Perignon’s picture

Assigned: Unassigned » Perignon
Status: Active » Fixed

The beta is superseded. This has already been fixed. Switch your branch of the code to 7.x-2.x to give more testing of the code so we can produce a release.

Richard Buchanan’s picture

Pulled the 7.x-2.x branch, and there is no fix for this. It breaks the login page, causing a WSOD. I commented out line 61 in google_adwords_signup.module to get past it for the time being.

BTW, what is the purpose of a kprint_r being ran by default on a form intended for users who do not have devel module permissions? Removal of line 61 seems to be the only reasonable thing to do. Attaching a patch since the fix was not found on the branch you mentioned.

Richard Buchanan’s picture

Patch file from previous reply.

Richard Buchanan’s picture

Version: 7.x-2.0-beta2 » 7.x-2.x-dev
Status: Fixed » Needs review
Perignon’s picture

Thanks. Yeah that should not be in the. It was being used during development I am sure. I did not write this portion of the code. I will get the patch incorporated in the next day or two - as quickly as I can.

Perignon’s picture

Status: Needs review » Fixed
Issue tags: -Line 61 stray KPR function

Committed. Thanks for the help!

Status: Fixed » Closed (fixed)

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