Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In fixing #553668: Attributes missing from 'view orders' form, I encountered the following error message:
Notice: Undefined variable: output in uc_payment_method_check() (line 400 of /var/www/dropdown6/sites/all/modules/ubercart/payment/uc_payment_pack/uc_payment_pack.module).
This occurred in a test site set up to test the referenced issue. I enabled the Payment method pack in order to debug the above issue and no other payment modules (eg. Test gateway) were enabled.
Comment | File | Size | Author |
---|---|---|---|
#2 | Undefined variable output-1867632-2.patch | 1.48 KB | trobey |
Comments
Comment #1
TR CreditAttribution: TR commentedLooks like there could be a problem at line 204 as well.
PHP notices in D6 are considered minor because D6 was not designed to be E_ALL compliant, and the default reporting level for Drupal in D6 is to suppress these notices. They only show up if you have changed your notification settings or if you're using a distribution like Pressflow which has non-standard notification settings.
A patch would be appreciated ...
Comment #2
trobey CreditAttribution: trobey commentedHere is a patch that fixes three error messages.
Comment #4
longwaveThanks for the patch. Fixed in http://drupalcode.org/project/ubercart.git/commitdiff/41a350f - based on the patch above, but closer to the changes already made in 7.x-3.x.