Skip to main content

Issue with Embedding Yammer Feed in SharePoint 2010

On the 14th of May 2015, Yammer deployed an update to their Embed Yammer Feed script that stopped any Yammer Feeds on SharePoint 2010 from working.  In our case, the Yammer Feed got stuck on 'Loading...'

This error that is causing the Yammer Feed to fail to load is:
Object doesn't support property or method 'forEach' . yam-platform-feed-57f4f449766511e4f91eb519a39b2781.js, line 480 character 19099


The reason this is happening is because SharePoint Master pages have a line of code which forces all Internet Explorer Browsers to run in IE8 Compatibility Mode.  This is done to ensure all the ribbon & SharePoint functionality continues to work on new browsers.

The line of code in question:  <meta http-equiv="X-UA-Compatible" content="IE=8"/>

Hint: don't just remove this line of code!  you'll cause yourself a headache.

The line that Yammer & Microsoft are taking is that if you plan to stick to SharePoint 2010, the only way to use Yammer is to download the Yammer Web Part for SharePoint 2010 which is only being supported until March 15, 2016.  After that, you'd wanna not be on SP2010 anymore if you want Yammer functionality on your intranet.

Workaround to keep using Yammer Embed:

However, here's a workaround that may cater for your needs:  Wrap the compatibility code around around a SPSecurityTrimmedControl so that doesn't run in Compatibility mode when staff only have Read-Only Access.

<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="AddAndCustomizePages"><meta http-equiv="X-UA-Compatible" content="IE=8"/></SharePoint:SPSecurityTrimmedControl>

There's a few caveats with doing this though:  your site-admins cant see the feed, there may be other pieces of functionality that need IE in compatibility mode even for reading sites/pages.


REFERENCES:
http://www.markadrake.com/blog/2013/11/21/public-sharepoint-sites-and-ie8-compatibility

Comments

  1. Hi,
    I’m curious to know if you (or anybody you know) have implemented this work-around. Looking for more details about what will be impact of removing this piece of code entirely on my master page. Will it break any core SP functionality? If yes, which one? Thanks in advance!

    ReplyDelete

Post a Comment

Popular posts from this blog

Export Group Membership From Active Directory Using Power Query

If you need to export a list of staff from an Active Directory Group, follow these steps.  Allows you to gather all the names & usernames of staff in a particular group and save the information into Excel.

Step By Step How To:
Open up Excel > Power Query TabClick From Other Sources > From Active Directory:(In Excel 2016 this is found under: Data Tab > New Query > From Other Sources > From Active Directory) screenshots from Excel 2016 on left, Excel 2010 w/ Power Query Add-on right A popup will ask you to enter your domain name.  It should already be populated with the correct information but if not, input your companies domain name & Click OK:
In the Navigator that opens up, expand your domain tree and double click group:

You should now see a list of all groups in Active Directory in the Power Query Editor:
In order to find & filter for a specific Group, Click the Down-Arrow for the 'distinguishedName' column > Text Filters > Contains...
Type the name…

HP Laserjet 1022 Printer - Can't Print on Windows 10

If you are having trouble getting your laserjet working on Windows 10, here's how I resolved the problem:

Go to Devices & PrintersFind your printer & go to Printer Properties > Advanced TabSet Driver to: HP LaserJet 1022 Class Driver & ApplyIf HP LaserJet 1022 Class Driver is not available.  download from this site: http://support.hp.com/us-en/drivers/selfservice/HP-LaserJet-1000-Printer-series/439424/model/439431Print a test page.


SharePoint Online - Branding with CSS

-----------------------------------------------------------------------------------------
This post is related to a larger group of posts called Migrate SharePoint to Office 365 - Planning & Steps
-----------------------------------------------------------------------------------------

I've gone with a Publishing Site Collection so that I can use the 'Alternate CSS URL' in Site Settings > Master Page.

First off, thanks to the following websites which helped get me started:
http://blog.sharepointexperience.com/2015/02/sptechcon-austin-february-2015/#more-2766http://blog.sharepointexperience.com/2015/01/to-brand-or-not-to-brand/ Here's what the end result will look like (if you have the same fonts):


Now for the CSS...

/* Design By : Brett Randall*/
/*     Design Colours: Greens/Greys/Blues */
/*     Last Modified : 28/02/2017*/
/*     Description: CSS to rebrand SharePoint Online Publishing Site Collection that is using seattle.master */

/* TABLE OF CONTENTS
-- -…