Cannot import Style Kit preset json file “Sorry, this file type is not permitted for security reasons.”

Troubleshooting  Last Updated: Time to Read: 1 minute

When you attempt to import the .json preset file on a builder page, you may receive an error in the sidebar “Sorry, this file type is not permitted for security reasons.”

This should only ever occur on a WordPress Multi-site (WPMU) install and is due to the network settings not allowing the json file type.

You must be a Network Administrator to apply this fix.

  1. Visit the Network Admin area of your WPMU dashboard (My SitesNetwork Admin)
  2. Click on  Settings in the admin menu
  3. Scroll down to the Upload Settings section and add json  to the list of allowed file types

wpmu-filetype-settings

 

Ensure the Max upload file size is sufficient. We recommend allowing at least 10MB (10000KB) to accomodate large xml data imports and uploaded media such as HD images, video backgrounds or mp3s.

If this issue is occuring on a child theme install or non WPMU install of Layers, first ensure you are running the latest version of the Layers theme.

The following function can be added to your Child Theme functions.php, or temporarily added to the end of the Layers funcitons.php: