Uncaught TypeError: Cannot read property 'lazyLoad' of undefined

edited March 16, 2018 in Questions
I am unable to type in the 'post' section of a chatter feed componenet on a page. I tested in my sandbox and everything works as expected and the pages are set up the same.  When I look at the console in my production environment I get the error 'Uncaught TypeError: Cannot read property 'lazyLoad' of undefined'.

When I dig into the error I see this message:
" has not been wired yet.  Either the widget wasn't added with addWidget() or wireWidgets() was not called after it was added.",Sfdc.Logging.LogLevel.ERROR"

If I use a template with the following code I can post without issue.
<iframe frameborder=0 width="100%" height="600px" src="/apex/skuid__Social?id={{{Id}}}"/>
So it seems this is an issue with the Chatter component has anyone else experienced this?

Comments

  • edited March 2, 2017
    Where is the Chatter Feed being loaded? Is it in a Drawer / Popup?
  • edited December 2, 2016
    It is being loaded in a tab within a panel.
  • JD BellJD Bell ✭✭
    edited March 16, 2018
    I've seen issues like this before related to quick actions based on objects to which the current user does not have permission. This was due to a flaw in Salesforce's Chatter Visualforce component - it didn't check user permissions before attempting to pre-render some of the quick action forms, resulting in unexpected output from a REST service and causing a Javascript error which made the Chatter component non-functional.

    I'll update this post with additional information soon, but wanted to give you a head start on solving this.
  • edited March 2, 2017
    Thanks for the explanation. I used the iframe method to get it working in the interim.
  • edited December 21, 2016
    What object is the Chatter Feed on? If it's on the Account object, try removing the "New Case" and "New Opportunity" Quick Actions from the list of Actions on anyAccount Page Layouts assigned to users that do not have full Salesforce CRM licenses.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!