Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: ajayg commentedMaking this as critical as module is useless till this is fixed.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous 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 CreditAttribution: ianchan commentedI encountered the same issue. Clearing the Drupal cache on the performance settings page resolved the problem.
Comment #5
ajayg CreditAttribution: 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) CreditAttribution: Anonymous 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) CreditAttribution: Anonymous commentedComment #8
ajayg CreditAttribution: ajayg commentedYes the views module was already installed.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #10
aschiwi CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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) CreditAttribution: Anonymous 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 CreditAttribution: gilcpd commentedsubscribing
No Drush over here, still the same problem :(
Comment #16
Ellen Dee CreditAttribution: Ellen Dee commentedsubscribing (no Drush, Views installed, clearing cache doesn't resolve the issue)
** Never mind: http://drupal.org/node/810162
Comment #17
moreonion CreditAttribution: 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 CreditAttribution: moreonion commentedsorry, taking it back
the important point was to rebuild the THEME REGISTRY and I kind of overred it...