Closed (fixed)
Project:
Dashboard
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
23 May 2010 at 20:34 UTC
Updated:
8 Dec 2010 at 09:56 UTC
Jump to comment: Most recent
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
Comment #1
ajayg commentedJust 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.
Comment #2
ajayg commentedMaking this as critical as module is useless till this is fixed.
Comment #3
Anonymous (not verified) commentedAjayg -
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
Comment #4
ianchan commentedI encountered the same issue. Clearing the Drupal cache on the performance settings page resolved the problem.
Comment #5
ajayg commentedJust 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.
Comment #6
Anonymous (not verified) commented@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
Comment #7
Anonymous (not verified) commentedComment #8
ajayg commentedYes the views module was already installed.
Comment #9
Anonymous (not verified) commentedComment #10
aschiwi commentedI 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
Comment #11
ajayg commented@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.
Comment #12
aschiwi commentedhi 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.Comment #13
aschiwi commentedOkay, 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.
Comment #14
Anonymous (not verified) commentedYeah, 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
Comment #15
gilcpd commentedsubscribing
No Drush over here, still the same problem :(
Comment #16
Ellen Dee commentedsubscribing (no Drush, Views installed, clearing cache doesn't resolve the issue)
** Never mind: http://drupal.org/node/810162
Comment #17
moreonion commentedsubscribing...
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...
Comment #18
moreonion commentedsorry, taking it back
the important point was to rebuild the THEME REGISTRY and I kind of overred it...