Cannot use string offset as an array
atreus - December 3, 2008 - 14:50
| Project: | UC Restrict Qty |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Not sure if this is an error in ubercart or in uc restrict quantity, but using the latest dev snapshot of ubercart http://bazaar.ubercart.org/ubercart6-2-bzr.tar.gz, I get the following error when trying to add a product to a cart.
Fatal error: Cannot use string offset as an array in /var/www/drupalsites/all/modules/uc_restrict_qty/uc_restrict_qty.module on line 88
Running drupal 6.6, dev snapshot of ubercart, and 6.x-1.0 of uc restrict quantity.
Andrew

#1
I confirmed on the ubercart forums that they have changed the way they handle this, and that the uc_restrict_qty module will need to be updated to work with future releases of ubercart.
http://ubercart.com/forum/support/7801/next_dev_release_drupalorg
#2
Fixed in CVS. Please test and report back. Thanks
#3
Thanks for the quick response.
The first error is fixed, but it now runs into another issue.
After clicking purchase (where it used to give the error), it now reports that items have been added to the cart. However, when clicking either "update cart" or "checkout" it reports that "There are no products in your shopping cart".
At the "cart" screen, the quantity does read "1" initially (before clicking either "checkout" or "update cart").
Checkout works fine if I disable the uc_restrict_qty module.
Andrew
#4
Fixed in CVS, thanks for bringing this to my attention.
#5
Have not done a lot of testing (nor is my ubercart setup very complicated) but all appears to be working correctly. Thanks for updating this module so quickly.
#6
Automatically closed -- issue fixed for two weeks with no activity.