warning: Invalid argument supplied for foreach() in C:\Apache2\htdocs\drupal\includes\form.inc on line 949

Project: 
Ubercart
Category: 
bug report
Version: 
Ubercart 1.0 RC
Priority: 
normal
Assigned: 
Unassigned
Status: 
active

Hi,

I have just installed Ubercart and began configuring it when I ran into the error below. The error occurs when navigating to "Administer->Store Administration->Configuration->Report Settings". I could not find a way to search through issues like on drupal.org so I tried to use the site search function and came up with no results. If this is however a duplicate, I apologize.

warning: Invalid argument supplied for foreach() in C:\Apache2\htdocs\drupal\includes\form.inc on line 949

Installed Ubercart Modules:
CCK
Content 5.x-1.7
Image 5.x-1.2-rc1
Development
TAPIr 5.x-1.5
Image
ImageCache 5.x-1.5
Other
Google Analytics 5.x-1.4
Thickbox 5.x-1.1
Token 5.x-1.11
uBrowser 5.x-1.3
Ubercart Core
Cart 5.x-1.0-rc4
Order 5.x-1.0-rc4
Product 5.x-1.0-rc4
Store 5.x-1.0-rc4
Ubercart Core (optional)
Attribute 5.x-1.0-rc4
Catalog 5.x-1.0-rc4
Notify 5.x-1.0-rc4
Payment 5.x-1.0-rc4
Reports 5.x-1.0-rc4
Shipping 5.x-1.0-rc4
Shipping Quotes 5.x-1.0-rc4
Ubercart Extra
Google Analytics for Ubercart 5.x-1.0-rc4
Product Kit 5.x-1.0-rc4
Workflow-ng 5.x-2.0
Workflow-ng UI 5.x-2.0

PHP Version: 5.2.3
MySQL 5.0.45

Simply navigating to "Administer->Store Administration->Configuration->Report Settings" re-produces the error. I have made a lot of configuration changes (too many to list all of them). Let me know if further information is required.

Re: warning: Invalid argument supplied for foreach() in C:\Apach

You need to change a line of code in uc_reports.module. Check the post at http://www.ubercart.org/issue/4428/10rc4_store_administration_configurat...

Re: Re: warning: Invalid argument supplied for foreach() in C:\A

This fixed my problem, Thanks!

Cheers,

Jon Antoine
www.antoinesolutions.com