Support » Plugin: One Click Demo Import » Customizer file = not defined!

  • Resolved lucalogos


    Hi there! I’ve created demo import file with predefined content, widgets and customizer files. Now while the content and widgets are imported fine, customizer file isn’t. I’ve tried several different files/names and I’m sure that the file is there.

    Theme is the same, since I’ve exported it from one site and imported to another. Customizer file was created using “Customizer Export/Import” plugin.

    Is there anything else I could check?

    One more thing. Importing the file with “Customizer Export/Import” plugin works fine.


    • This topic was modified 1 year, 5 months ago by  lucalogos.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor capuderg


    Hi Luca,

    what does the import log say? Check the Media section after the import in wp-admin and see, if the customizer file is defined in the import files and if the customizer import was even started.

    Take care!

    Hi capuderg,

    Thanks so much for speedy response! Everything seems to be fine in log file, except this one line:

    “Customizer file = not defined!”


    Plugin Contributor capuderg



    are you a theme author and you are setting up the predefined demo import for your theme, or are you just trying to import the data to another site with the manual import (using our plugin)?

    If you are setting up the predefined demo imports, then I think something is wrong with the code for the predefined demo import filter. Can you please paste here the code you are using for the predefined demo imports?

    Take care!

    I’m a theme author. I have downloaded theme and exported:
    – widgets (using Widget Importer & Exporter plugin),
    – content (using native exporter),
    – customizer settings (using Customizer Export/Import plugin).

    Now I try to upload theme with predefined things above to another WordPress installation, and it goes well except that one customizer file 🙂

    Here’s the function I use:

    function ocdi_import_files() {
    	return array(
    			'import_file_name'           => 'TheWayILive Demo',
    			'import_file_url'            => trailingslashit( get_template_directory() ) . 'inc/demo/thewayilive-demo-1-content.xml',
    			'import_widget_file_url'     => trailingslashit( get_template_directory() ) . 'inc/demo/thewayilive-demo-1-widgets.wie',
    			'import_customizer_file_url' => trailingslashit( get_template_directory() ) . 'inc/demo/TheWayILive-export.dat',
    			//'import_preview_image_url'   => '',
    			'import_notice'              => __( 'Some things may need to be set up manually, like menus or widgets.', 'thewayilive' ),
    			'preview_url'                => '',
    add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' );

    Just a note – customizer file name is different from the two above just because I tried with different filenames. The file is definitely there.


    • This reply was modified 1 year, 5 months ago by  lucalogos.

    Mate, it’s my mistake. Just to let everyone know – when you have declared importer function twice, only the first one will execute.

    Plugin is working fine and support is exceptional. 🙂

    Have a great day,

    • This reply was modified 1 year, 5 months ago by  lucalogos. Reason: Marking as resolved
    Plugin Contributor capuderg


    Hi Luca,

    you are also importing local files (files are located in the theme folder), so you should use the local array key names for the predefined file paths. Please look at the FAQ section: and look for the What about using local import files (from theme folder)?. You will see that the array key names are different for the local files.

    Have a nice day!

    PS: I would really appreciate it, if you would write a review here:

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Customizer file = not defined!’ is closed to new replies.