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.
Fatal error: Cannot use string offset as an array in mysite/public_html/sites/all/modules/ubercart-6.x-2.0-rc3/ubercart/uc_cart/uc_cart.pages.inc on line 447
i changed it to mysite for privacy...but thats the error returned after reviewing and submitting order
Comments
Comment #1
phelix CreditAttribution: phelix commentedI am getting very close to the same error.
Fatal error: Cannot use string offset as an array in /www/drupal/sites/mywebsite.com/modules/ubercart/uc_cart/uc_cart.pages.inc on line 413
Comment #2
rukusgetdown CreditAttribution: rukusgetdown commentedhmmm very odd...i looked at the code and do not see anything that shouldnt be there?
Comment #3
castellan CreditAttribution: castellan commentedI'm getting the same error:
Fatal error: Cannot use string offset as an array in /path/to/drupal/sites/all/modules/ubercart/uc_cart/uc_cart.pages.inc on line 447
PHP version 5.2.6 on Linux
Comment #4
rukusgetdown CreditAttribution: rukusgetdown commentedi changed the code..i will post it in a minute
Comment #5
rszrama CreditAttribution: rszrama commentedThis was a stupid mistake on my part. I've committed the fix, but basically you have to change this line:
To use the proper comparison operator:
This should be the first line in the function uc_payment_method_free_order().
Thanks for the bug report!