Others

Fix SharePoint Online JavaScript Errors When Changing a Site Logo

Jason MillerJason Miller Nov 25, 2026 868 views

Question details

The user needs to change a SharePoint Online site logo after encountering JavaScript errors.

Fix SharePoint Online JavaScript Errors When Changing a Site Logo
Product
SharePoint Online
Device & OS
not provided
Scenario
The user selects Getting Started from the gear menu while replacing a site logo.
Observed behavior
SharePoint displays JavaScript errors, including “Cannot read property replace of undefined” and “Cannot read property length of undefined.”
Before you start

Have the replacement logo image ready and make sure you have permission to edit the site settings. Check whether the site uses the classic or modern SharePoint interface.

Solution 1Recommended

Reopen SharePoint and change the logo through site settings

Use the appropriate site settings path instead of Getting Started to update the logo.

1
Reopen the site

Close the SharePoint site in your browser, reopen it, and navigate back to the affected site.

2
Open logo settings

For a classic site, select the gear icon > Site settings > Title, description, and logo. For a modern site, select the gear icon > Site information > Change.

3
Choose the replacement

Select the new logo image and save your changes using the available confirmation button.

Reopen SharePoint and change the logo through site settings
Site permissions: If you cannot access the logo settings, ask a site owner or administrator to check your permissions.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative for working with Office files in a familiar interface, making it easier to move everyday document work across applications. It does not fix SharePoint site settings or JavaScript errors.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse a familiar interface for everyday document workPrepare documents and presentations that can be shared with your teamMove compatible Office files into your WPS workflow
microsoft office alternative - wps office

Frequently Asked Questions

Where can I change the logo on a classic SharePoint site?

Select the gear icon > Site settings > Title, description, and logo, then choose the replacement image and save your changes.

How do I change the logo on a modern SharePoint site?

Select the gear icon > Site information > Change, choose the new logo image, and save your changes.

What should I do if the JavaScript error appears again?

Open the site in another browser and try changing the logo through site settings. If the error persists, capture a screenshot and share it with your SharePoint administrator or support team.

Why can't I access the site logo settings?

Your account may not have permission to edit the site. Ask a site owner or administrator to check your access.