• Resolved Fabian Deitelhoff

    (@fdeitelhoff)


    I want to import the demo data for the “Blazin Demo Import”. I am using WordPress 6.6.1 | PHP 8.2.18 | Apache | MySQL 8.0.35 and I get the following error trying to import the data:

    [31-Aug-2024 14:49:45 UTC] PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, string given in /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/ImportActions.php:46
    Stack trace: 0 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/ImportActions.php(46): array_key_exists(‘nav_menu’, ‘default’) 1 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/class-wp-hook.php(324): OCDI\ImportActions->fix_custom_menu_widget_ids(‘default’) 2 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘default’, Array) 3 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/Helpers.php(686): apply_filters(‘ocdi/widget_set…’, ‘default’) 4 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/WidgetImporter.php(196): OCDI\Helpers::apply_filters(‘ocdi/widget_set…’, ‘default’) 5 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/WidgetImporter.php(74): OCDI\WidgetImporter::import_data(Object(stdClass)) 6 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/WidgetImporter.php(26): OCDI\WidgetImporter::import_widgets(‘/data/web/1/000…’) 7 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/ImportActions.php(71): OCDI\WidgetImporter::import(‘/data/web/1/000…’) 8 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/class-wp-hook.php(324): OCDI\ImportActions->widgets_import(Array, Array, 0) 9 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 10 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 11 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/Helpers.php(714): do_action(‘ocdi/after_cont…’, Array, Array, 0) 12 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/OneClickDemoImport.php(389): OCDI\Helpers::do_action(‘ocdi/after_cont…’, Array, Array, 0) 13 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/class-wp-hook.php(324): OCDI\OneClickDemoImport->import_demo_data_ajax_callback(”) 14 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 15 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 16 /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_ocdi_im…’) 17 {main}

    thrown in /data/web/1/000/029/466/83503/htdocs/schreibkollegen/wordpress/wp-content/plugins/one-click-demo-import/inc/ImportActions.php on line 46

    Could this be a PHP related error which needs to be fixed in the plugin?

    I am using Version 3.2.1 of the demo import plugin.

    Best,
    Fabian

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @fdeitelhoff.

    This might be an issue with the import XML file. Our plugin expects an array, but a string is given from the XML file.

    For which theme do you want to import the demo data?

    Also, have you reached out to the theme support, since it might be resolved by an updated XML import file?

    Kind regards.

    Plugin Support Victoria Sakal

    (@sakalvictoria)

    Hi, @fdeitelhoff!

    We haven’t heard back from you in a few days, so we’ll be closing this thread for now. No worries though! If you need more help or have any updates, just respond back here anytime and it’ll reopen it.

    Thanks and have a great day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.