[wp-trac] [WordPress Trac] #41050: Cannot read property 'top' of undefined in belowEntryMetaClass (TwentySeventeen)

WordPress Trac noreply at wordpress.org
Thu Jun 15 01:37:27 UTC 2017


#41050: Cannot read property 'top' of undefined in belowEntryMetaClass
(TwentySeventeen)
----------------------------------+-----------------------------
 Reporter:  ericdaams             |      Owner:
     Type:  defect (bug)          |     Status:  new
 Priority:  normal                |  Milestone:  Awaiting Review
Component:  Themes                |    Version:  4.8
 Severity:  normal                |   Keywords:
  Focuses:  javascript, template  |
----------------------------------+-----------------------------
 I'm seeing this with TwentySeventeen version 1.3 activated:

 {{{
 #!js
 global.js?ver=1.0:124 Uncaught TypeError: Cannot read property 'top' of
 undefined
     at belowEntryMetaClass (global.js?ver=1.0:124)
     at global.js?ver=1.0:239
 }}}

 It only occurs in the following circumstance:

 * You have widgets in the sidebar menu.
 * You have a custom template (either defined in your child theme or
 generated by a plugin) that does not load the sidebar.

 If the above are both true, you'll see the error triggered on the
 `window.resize` event.

 I first encountered this while testing alongside
 [[https://wordpress.org/plugins/charitable|Charitable]] (create a campaign
 and then go to donate page), but you can also reproduce by creating a
 child theme and adding a custom `single.php` with the sidebar omitted.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41050>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list