• Resolved Juan Pablo

    (@jupa8)


    Hi, I’m trying to import a template that I customize and use in my projects, but when I try to import it, I get this error:

    Sorry, you are not allowed to upload this file type.

    I tried it on a site I have on a server and localhost, and it wasn’t possible. I’m using the latest version of WordPress and the plugin.

    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support karlalevelup

    (@karlalevelup)

    Hi, Juan!

    Glad you reached out to us.

    When you export the Email Customizer’s settings, the file downloaded is .DAT.

    I recommend that you use that file type to import the settings to other website’s Email Customizers.

    Let me know how it goes.

    Thread Starter Juan Pablo

    (@jupa8)

    Hi, for me always downloaded in .json, please see my screenshot

    Plugin Support karlalevelup

    (@karlalevelup)

    Hi, Juan!

    Apologies, the .dat file was used for our responsive design here, but if you click the Export button, then the file is JSON.

    I tested this on my 2 websites and there were no issues. Here’s a screencast: https://share.zight.com/RBu2KKEY

    While I cannot replicate the issue on my websites, let’s do some troubleshooting with yours:

    Temporarily deactivate plugins. Here’s our guide: https://www.kadencewp.com/help-center/docs/kadence-theme/temporarily-deactivating-plugins/

    • Start deactivating all other plugins except WooCommerce and the Kadence WooCommerce Email Designer plugins.
    • Import the JSON file.

    If there were no issues, then there might be a plugin causing the issue. You will need to re-activate plugins one by one and test the import again to identify which one of them it is.

    Also, could I have a link to your export’s JSON file? I want to test importing it on my website as well so I can identify if the issue might be coming from the file itself.

      Thread Starter Juan Pablo

      (@jupa8)

      Hi Karla, I did everything you said but it returns the same error, I’ll leave you a video that I recorded.

      Plugin Support karlalevelup

      (@karlalevelup)

      Hi, Juan!

      Thanks for the video.

      This seems like the JSON file is not allowed on your website. Could you add a PHP code snippet and test the import again?

      function custom_mime_types($mime_types) {
      $mime_types['json'] = 'application/json'; // Allow JSON file uploads
      return $mime_types;
      }
      add_filter('upload_mimes', 'custom_mime_types');

      Add this by following our guide here: How to add a custom filter or function with Code Snippets

      Let me know how it goes.

      Thread Starter Juan Pablo

      (@jupa8)

      Hi, Yes this can be solved with a snippet or by using a plugin. The strange thing is that this didn’t happen before, and I tried it on my localhost and on my server, where I could usually do it.

      • This reply was modified 1 year, 2 months ago by Juan Pablo.
      Plugin Support karlalevelup

      (@karlalevelup)

      Hi there!

      Nice to know that the code snippet worked.

      There are possible reasons why the JSON file was not allowed for you:

      1. .htaccess restrictions: Check your .htaccess file in the root directory of WordPress for any rules related to file uploads or MIME types.
      2. Security settings on the server. You can ask your hosting provider if they have any restrictions set for specific MIME types like JSON.

      Let me know if you have any other concerns.

      Otherwise, I’ll go ahead and mark this topic as resolved sometime tomorrow.

      Plugin Support michael-levelup

      (@michaeltarongoy)

      Hi there,

      This topic has been inactive for awhile.

      We will be setting this topic to resolved.

      If you have further questions or need additional assistance, feel free to start a new topic or refer to our Kadence Help Center here: https://www.kadencewp.com/help-center

      Please note that you can also submit a support ticket via these channels.

      Thank you for your understanding!
       
      Kind Regards,
      Michael Taro

    Viewing 8 replies - 1 through 8 (of 8 total)

    The topic ‘Can’t import json template’ is closed to new replies.