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 #1023637
Widget Import
Closed

Comments

  •  2
    pr0sthetic started the conversation

    Per the manual it instructs you to install plug-in, "Widget Importer & Exporter" to import the widgets for the footer and sidebars.

    I downloaded and activated plug-in as described in instructions, but when attempting to import widget from downloaded file it provides me with the following error:

    "You must upload a .wie file generated by this plugin."

    I was sure to install and activate the exact, "Widget Importer & Exporter" plug-in, so am not sure what the issue is.

    Please help correct this. Thanks!



  •  7,120
    Oliver replied

    HI!

    It's 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

  •  2
    pr0sthetic replied

    OK, thanks. That works.