goto /dashboard after login
See your dashboard.
Try to add a new widget
you get following warning but nothing happens

warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal-614\sites\all\modules\dashboard\templates\dashboard-browse-widgets.tpl.php on line 3.

Comments

ajayg’s picture

Just want to confirm that I did have more widget created so it is not remaining widget list empty.

Also the warning is shown on the user interface, same appears as error in the watchdog log.

ajayg’s picture

Priority: Normal » Critical

Making this as critical as module is useless till this is fixed.

Anonymous’s picture

Assigned: Unassigned »
Priority: Critical » Normal

Ajayg -

Thank you for the message.

Investigating why this is happening. I tried a fresh download of dashboard and encountered a similar problem. I was able to correct it by clearing the cache.

Can you try that, and let me know the results?

M

ianchan’s picture

I encountered the same issue. Clearing the Drupal cache on the performance settings page resolved the problem.

ajayg’s picture

Just clearing the cache didn't work for me. (I had earlier dev version). I downloaded the latest 2.0 version and now it is working.

Anonymous’s picture

@ajayg: great! Its clear that the theme registry needs to be cleared in order for this to work.

One other thing, is views installed? This module does need to be there in order for dashboard to work properly.

M

Anonymous’s picture

Status: Active » Fixed
ajayg’s picture

Yes the views module was already installed.

Anonymous’s picture

Status: Fixed » Closed (fixed)
aschiwi’s picture

I have the same error message and clearing caches does not solve the problem. I additionally get a WSOD on admin/settings/dashboard/widgets. Am working on a clean D6 install with only admin_menu, dashboard, ctools and jquery_ui installed. When I turn on php error messages this is what I get

Fatal error: Call to undefined function drupal_build_form() in /Applications/MAMP/htdocs/playground/sites/all/modules/dashboard/dashboard.admin.inc  on line 179
ajayg’s picture

@aschiwi
Please open another issue since it seems to be a different issue. The one we are discussing here happens on /dashboard (user level access and NOT admin access). Also your error message is different.

aschiwi’s picture

hi ajayg,

thank you, I will do that. However, I do have exactly the same error warning described in the first post of this thread:

I go to /dashboard
I see my dashboard.
I try to add a new widget
I get following warning but nothing happens

warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal-614\sites\all\modules\dashboard\templates\dashboard-browse-widgets.tpl.php on line 3.

aschiwi’s picture

Okay, I was using dashboard as downloaded with drush. Drush seems to have given me a messed up version of dashboard which didn't state Views as a required module. After having installed Views, I can now fix this error by clearing caches.

Anonymous’s picture

Yeah, I believe Drush might be pulling the 6--1.x release instead of the v2 release of the module. I also do not believe Drush clears the theme registry when it installs a module, either, which would be the root of the issue.

This is all covered in the README.txt file, fwiw.

M

gilcpd’s picture

subscribing
No Drush over here, still the same problem :(

Ellen Dee’s picture

subscribing (no Drush, Views installed, clearing cache doesn't resolve the issue)

** Never mind: http://drupal.org/node/810162

moreonion’s picture

Version: 6.x-1.x-dev » 6.x-2.1

subscribing...
clearing cache did not fix this for me either :-(

it's always a said thing to not be able to use phenomenal modules like this one but i'll be a little patient...

moreonion’s picture

sorry, taking it back

the important point was to rebuild the THEME REGISTRY and I kind of overred it...