Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1020758
Import Widgets error
Closed

Comments

  •  2
    Damir Erak started the conversation

    Hello,

    we are trying to follow your demo instructions/video and there is a step where we are to import some demo widgets using the widget import & export tool.

    When we select the demo_widget.wie file included in the theme's downloaded archive in the demo folder, we get an error that says "Must use .wie file generated by this plugin".

    Can you assist?

  •  7,092
    Oliver replied

    HI!

    It's the bug of this plugin.

    Author must fix it soon.

    or:

    A workaround would be to temporarily add this to wp-config.php:

    define('ALLOW_UNFILTERED_UPLOADS', true);

    And temporarily remove or comment out this block in wp-content/plugins/widget-importer-exporter/includes/import.php:

        // Check file type
        // This will also fire if no file uploaded
        $wp_filetype = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'], false );
        if ( 'wie' != $wp_filetype['ext'] && ! wp_match_mime_types( 'wie', $wp_filetype['type'] ) ) {
          wp_die(
            wp_kses(
              __( 'You must upload a .wie file generated by this plugin.', 'widget-importer-exporter' ),
              array(
                'b' => array()
              )
            ),
            '',
            array( 'back_link' => true )
          );
        }

     

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver