Skip to content
Get it free

Troubleshooting

Troubleshooting

The score doesn’t show

Check these in order.

  1. Is a file selected? In the editor, a block without a file says “No MusicXML Selected.” A shortcode without musicxmlurl shows nothing at all, not even an error.
  2. Does the page show an error? After five failed attempts to load the file, the block shows “Error loading sheet music file:” with the file’s address. Open that address in your browser:
    • It doesn’t open: the file was moved or deleted, or the address has a typo. Pick the file again in the block, or copy its URL fresh from the Media Library.
    • It points to another domain, for example your old domain or a staging copy: blocks store the full file address. After moving a site, run a search and replace of the old domain in the database (many migration plugins do this), or pick the file again.
    • It starts with http:// on an https:// page: browsers block that. Use the https:// address.
    • It’s on a different website: browsers only load it if that server allows it (CORS). Upload the file to your own Media Library instead.
  3. Is it a MusicXML file? The plugin reads .musicxml, .xml and .mxl files that contain MusicXML. A file from a notation program’s own format, a PDF or an image won’t render. Export MusicXML from your notation program again.
  4. Is JavaScript blocked or delayed? The score is drawn by JavaScript in the browser. See caching and optimisation plugins.

If the page shows “Invalid attributes provided.”, something changed the block’s hidden settings in the page’s HTML on the way to the browser, for example an HTML minifier. Switch it off for the page to test.

WordPress refuses the file

“Sorry, you are not allowed to upload this file type” for .musicxml, .xml or .mxl: the plugin registers these types, so something else on the site is narrowing the list, usually a security plugin or a setting of your host. Allow the three extensions there. Contributors can’t upload files in WordPress at all; ask an author, editor or administrator.

The file is too large

WordPress shows its upload limit under Media → Add New Media File (“Maximum upload file size”). Your host sets it; raise it in the hosting panel, or ask your host. Usually quicker: export the score as .mxl, compressed MusicXML, which is often a fraction of the size.

Very long scores also take longer to draw in the browser. In the editor, switch off Automatically Rerender on Change and use Rerender. With premium, try Performance Mode Rendering, or show a range of measures with the shortcode attributes drawfrommeasurenumber and drawuptomeasurenumber.

Caching and optimisation plugins

  • Page caching is fine. After you change OSMD Settings, clear the cache so shortcodes pick up the new defaults.
  • JavaScript optimisation can stop the score from drawing. Settings that delay JavaScript until the visitor interacts make the score appear only after the first scroll or tap. Combining or deferring scripts can break the order in which the plugin’s scripts must load. If the score is missing after you switch on such a setting, exclude the plugin’s scripts from it: everything in /wp-content/plugins/opensheetmusicdisplay/build/, and with premium the premium plugin’s folder too.
  • HTML minifiers can damage the block’s hidden settings. See “Invalid attributes provided.” above.

Themes

  • The score is narrower than you want. The block can’t be wider than your theme’s content column: 100 % is the column’s width. Use a full-width page template of your theme, or put the block into a wider container.
  • The notes are hard to see on a dark background. OSMD draws black notes on a transparent background. Give the block a class under Advanced → Additional CSS class(es) and a white background in your theme’s CSS, or use the shortcode attribute pagebackgroundcolor="#ffffff".
  • Something looks off only on your site. Theme styles for svg elements can reach into the score. Test with a default theme such as Twenty Twenty-Five; if the problem goes away, it’s the theme’s CSS.
  • Your own CSS for the score stopped working after an update. Since version 1.6.0 the free plugin draws with OpenSheetMusicDisplay 3.0.0, which puts osmd- in front of the class names of the SVG elements it draws and uses new IDs for measure and staff groups. Selectors written for the old names need updating.

Premium: no Premium Options panel

  • The license isn’t active. Premium adds nothing until its license is activated. Check premium’s account page in the WordPress admin, or enter the key again (install premium).
  • The free plugin is inactive. Premium then shows a notice saying it extends the free plugin. Activate OpenSheetMusicDisplay under Plugins.

No sound from playback

  • The samples didn’t load. They come from GitHub Pages (details). A network filter, a browser extension or a strict Content Security Policy that blocks gleitz.github.io or paulrosen.github.io silences playback.
  • The phone is on silent. On iPhones, the silent switch also mutes sound from websites.
  • The instrument is muted. Open Playback in the toolbar and check the instrument’s volume and mute button.

Still stuck?

Write to support@opensheetmusicdisplay.org. Tell us your WordPress and PHP versions, the plugin versions, the page address, and attach the MusicXML file. That’s usually all we need to reproduce it.

Updated 27 November 2026, checked against free 1.6.0, premium 1.5.0. Something wrong or missing? Write to support@opensheetmusicdisplay.org.