Answers.Body: <p>Also in the database in the 'url' column I see the url of the dashlet in the form: civicrm/report/instance/42?reset=1&amp;section=2&amp;snippet=5&amp;context=dashlet and comparing entries with data in the name column I can see that the report instance number matches. So I replace the NULL entry with 'report/xx' where xx is the report instance number as reported in the url column, and the dashboard now loads as expected.</p>
  
  <p>Question is: why did 4.6.18 work fine with NULL entries in this table while 4.7.15 breaks, and how did the broken entries get to be badly created in the first place?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-12T11:53:28.643Z
Answers.LastActivityDate: 2017-01-12T11:53:28.643Z
Answers.UserDisplayName: Graham
Answers.Body: <p>I'm glad you found the cause of your problem. It does sound like something went wrong back when you originally created those dashlets, and it's not clear what that was. But it would be good to proactively repair this during the upgrade.</p>
  
  <p>I've created a PR to do so: <a href="https://github.com/civicrm/civicrm-core/pull/9672" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/9672</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-12T16:28:06.580Z
Answers.Text: @Graham please review and comment on the PR to facilitate getting it merged in.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-12T16:27:28.537Z
Answers.LastActivityDate: 2017-01-12T16:27:28.537Z
Answers.UserDisplayName: Coleman
Body: <p>I've just upgraded a Civi 4.6.18 install to 4.7.15. All has gone fairly smoothly, apart from the fact that the CiviCRM front page/dashboard is broken.</p>
  
  <p>My Firebug console reports: "TypeError: widget.name is null" and refers to <a href="http://siteroot.com/sites/all/modules/civicrm/js/jquery/jquery.dashboard.js" rel="nofollow noreferrer">http://siteroot.com/sites/all/modules/civicrm/js/jquery/jquery.dashboard.js</a> line 467 col 13</p>
  
  <p>I know that some of the dashlets that display in my dashboard have been created by setting up some reports to suit, and simply making those available as dashlets.</p>
  
  <p>Looking in the database, I checked the civicrm_dashboard table, and noticed that three of these 'custom' dashlets had NULL in the name column. Interestingly, other similarly created dashlets had an entry in the name column of the form 'report/xx'.</p>
  
Tags: <dashboard><javascript><dashlet>
Title: How can I resolve Civi Dashboard Javascript error: widget.name is null?
ThreadText: # How can I resolve Civi Dashboard Javascript error: widget.name is null?
  
  (Asked by: username_0 on 2017-01-12)
  
  I've just upgraded a Civi 4.6.18 install to 4.7.15. All has gone fairly smoothly, apart from the fact that the CiviCRM front page/dashboard is broken.
  
  My Firebug console reports: "TypeError: widget.name is null" and refers to <http://siteroot.com/sites/all/modules/civicrm/js/jquery/jquery.dashboard.js> line 467 col 13
  
  I know that some of the dashlets that display in my dashboard have been created by setting up some reports to suit, and simply making those available as dashlets.
  
  Looking in the database, I checked the civicrm\_dashboard table, and noticed that three of these 'custom' dashlets had NULL in the name column. Interestingly, other similarly created dashlets had an entry in the name column of the form 'report/xx'.
  
  **Tags:** dashboard, javascript, dashlet
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-01-12. Score: 1 | Accepted answer
  
  Also in the database in the 'url' column I see the url of the dashlet in the form: civicrm/report/instance/42?reset=1&section=2&snippet=5&context=dashlet and comparing entries with data in the name column I can see that the report instance number matches. So I replace the NULL entry with 'report/xx' where xx is the report instance number as reported in the url column, and the dashboard now loads as expected.
  
  Question is: why did 4.6.18 work fine with NULL entries in this table while 4.7.15 breaks, and how did the broken entries get to be badly created in the first place?
  
  
  ---
  
  ### Answer by username_1 on 2017-01-12. Score: 3
  
  I'm glad you found the cause of your problem. It does sound like something went wrong back when you originally created those dashlets, and it's not clear what that was. But it would be good to proactively repair this during the upgrade.
  
  I've created a PR to do so: <https://github.com/civicrm/civicrm-core/pull/9672>
  
  > **Comments:**
  > **username_1**: @username_0 please review and comment on the PR to facilitate getting it merged in.  
  
  ---
  
  