Closed (fixed)
Project:
Ubercart Discount Coupons
Version:
5.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2009 at 01:12 UTC
Updated:
27 Jan 2009 at 14:11 UTC
I'm getting this error when I try to add a second coupon:
Fatal error: [] operator not supported for strings in C:\xampp\htdocs\sites\all\modules\uc_coupon\uc_coupon.module on line 341
I don't code, so I'd need some help with this one.
Any suggestions?
Dan
Comments
Comment #1
longwaveI have been unable to reproduce this in testing, and that error doesn't seem to apply to line 341 in either the 1.5 or dev releases.
Comment #2
leenwebb commentedHey, I just got this same error today in my site. Mine says:
Fatal error: [] operator not supported for strings in /blahblahmypath/html/sites/all/modules/ubercart/uc_coupon/uc_coupon.module on line 341I can see only the "Add new coupon" screen and "Inactive Coupons" but I can't see the Active Coupon list; instead I see this error. I am able to add a new coupon (and it shows up in the database, and if I type the URL directly I can get to it to edit), but the Active Coupon list won't display.
What would help to diagnose this? I don't know what exactly has been going on in this site recently (it's an active store, run by a client) but I'd be happy to provide any information about database contents, etc, to track it down.
Thanks!
EDIT: Sorry, I should have added:
[php_version] => 5.1.6
[drupal_version] => 5.7
[db_type] => mysql
[db_version] => 5.0.45
[ubercart_version] => 5.x-1.0
and the top of uc_coupon.info says: uc_coupon.info,v 1.1 2007/09/06
Comment #3
leenwebb commented!!!
I am using http://www.ubercart.org/contrib/1991 . Which also uses the name uc_coupon, and I guess branched off from this coupon some time ago. So no wonder the line numbers don't match up.
I am not sure if these modules are merging together again (the idea was suggested in the other issue queue), but I guess I will go over and post this bug/error for *that* module.
Comment #4
longwaveClosing, as this doesn't apply to this version of the module.