ThemeFuse / Unyson

A WordPress framework that facilitates the development of WP themes
http://unyson.io
923 stars 219 forks source link

TypeError: Cannot read properties of null (reading 'items') - Custom fonts not loading #4266

Closed boomspot closed 1 year ago

boomspot commented 1 year ago

I noticed my custom font's weren't loaded and took a look at the console:

fw-events.js?ver=2.7.24:156 TypeError: Cannot read properties of null (reading 'items') at getFontsOptions (scripts.js?ver=2.7.24:27:24) at getFontsOptionHTML (scripts.js?ver=2.7.24:40:6) at HTMLDivElement. (scripts.js?ver=2.7.24:118:13) at Function.each (jquery.min.js?ver=3.6.0:2:3003) at s.fn.init.each (jquery.min.js?ver=3.6.0:2:1481) at scripts.js?ver=2.7.24:85:63 at dispatchSingleEvent (fw-events.js?ver=2.7.24:169:25) at Array.map () at fw-events.js?ver=2.7.24:147:33 at objectMap (fw-events.js?ver=2.7.24:250:18) (anonymous) @ fw-events.js?ver=2.7.24:156 objectMap @ fw-events.js?ver=2.7.24:250 fwEvents.trigger @ fw-events.js?ver=2.7.24:131 (anonymous) @ option-types.js?ver=2.7.24:3 Pe-icon-7-stroke.woff:1

edersonpeka commented 1 year ago

Same problem here.

yura-x commented 1 year ago

Try this:

https://github.com/ThemeFuse/Unyson/issues/4261#issuecomment-1228820888

boomspot commented 1 year ago

Thanks, that fixed it.