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
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

atreus - December 4, 2008 - 14:38

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.

Yeah, that module will have to be updated as a result of some changes to the structure of the cart view form. Make sure you file an issue in its issue tracker.

http://ubercart.com/forum/support/7801/next_dev_release_drupalorg

#2

mrfelton - December 4, 2008 - 22:48
Status:active» fixed

Fixed in CVS. Please test and report back. Thanks

#3

atreus - December 5, 2008 - 15:48

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

mrfelton - December 5, 2008 - 17:50

Fixed in CVS, thanks for bringing this to my attention.

#5

atreus - December 5, 2008 - 20:32

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

System Message - December 19, 2008 - 20:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.