Closed (fixed)
Project:
UC Free Order Payment Method
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 May 2009 at 03:25 UTC
Updated:
15 Jun 2009 at 17:30 UTC
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 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 commentedhmmm very odd...i looked at the code and do not see anything that shouldnt be there?
Comment #3
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 commentedi changed the code..i will post it in a minute
Comment #5
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!