I receive the following error message on the checkout/complete page.

warning: array_keys() [function.array-keys]: The first argument should be an array in /var/www/xxxxxx.com/httpdocs/sites/all/modules/ubercart/payment/uc_linkpoint_api/uc_linkpoint_api.module on line 174.

How can I fix this?

CommentFileSizeAuthor
#3 uc_linkpoint_api-1001744.patch3.25 KBbkosborne

Comments

bkosborne’s picture

Working on it...

Rick Pelletier’s picture

Assigned: Unassigned » Rick Pelletier

I'm getting this, too:

end() [function.end]: Passed variable is not an array or object in [home]/sites/all/modules/uc_linkpoint_api/uc_linkpoint_api.module on line 174.

and

array_keys() [function.array-keys]: The first argument should be an array in [home]/sites/all/modules/uc_linkpoint_api/uc_linkpoint_api.module on line 174.

This message seemed to have appeared after a few orders where (A) an online customer attempted to use an invalid (or incorrect) CC number or (B) an Admin tried to manually process a transaction without a CVV number. We're still looking into it.

bkosborne’s picture

StatusFileSize
new3.25 KB

Sorry for delay guys. Jrust added that code in, and I haven't been able to get in touch with him. I've removed it in the patch ... Couldn't quite figure out why he was doing it.

Patch works fine for me. LMK if there are issues.

deeman001’s picture

I tried applying this patch and i get the error:
Reversed (or previously applied) patch detected!

Any ideas?

bkosborne’s picture

@deeman001. I created the patch based the latest release from CVS, which was not available to download for you. I've since made that release available as a development release. Please ignore the patch and use that instead, which has a fix in it already.

Please note that the dev snapshot won't be available to download just yet. They are automatically created from the branch in CVS twice a day. You can also get the new file manually by browsing the CVS repository here: http://drupalcode.org/viewvc/drupal/contributions/modules/uc_linkpoint_api/

jrust’s picture

Status: Active » Fixed

The warning was fixed in the latest CVS commit.

Status: Fixed » Closed (fixed)

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