- May 21, 2020 at 8:40 pm #21344asmrctParticipant
On a new WordPress (5.4.1), I just installed the theme but I can’t import the demo data.
I either tried to import the xml file or click or on “Import demo data”.
In the error PHP file, I have :
[Thu May 21 22:31:05.761880 2020] [php7:warn] [pid 18178] [client 188.8.131.52:55377] PHP Warning: Invalid argument supplied for foreach() in /home/marion/wp-content/themes/air-theme/functions/class/class-ux-importer.php on line 202, referer: https://marion-thealet.com/wp-admin/themes.php?page=theme-option
[Thu May 21 22:31:05.763732 2020] [php7:error] [pid 18178] [client 184.108.40.206:55377] PHP Fatal error: Uncaught Error: Call to a member function children() on null in /home/marion/wp-content/themes/air-theme/functions/theme/theme-import.php:79\nStack trace:\n#0 /home/marion/wp-includes/class-wp-hook.php(287): airtheme_import_xmldata(”)\n#1 /home/marion/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)\n#2 /home/marion/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#3 /home/marion/wp-content/themes/air-theme/functions/class/class-ux-importer.php(125): do_action(‘import_start’)\n#4 /home/marion/wp-content/themes/air-theme/functions/class/class-ux-importer.php(73): WP_Import->import_start(‘../wp-content/t…’)\n#5 /home/marion/wp-content/themes/air-theme/functions/theme/theme-import.php(1110): WP_Import->import(‘../wp-content/t…’)\n#6 /home/marion/wp-includes/class-wp-hook.php(287): airtheme_theme_import_ajax(”)\n#7 /home/marion/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)\n#8 /home/marion/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#9 /home/marion/wp-a in /home/marion/wp-content/themes/air-theme/functions/theme/theme-import.php on line 79, referer: https://marion-thealet.com/wp-admin/themes.php?page=theme-option
PHP is version 7.2.
Could you help me ?May 22, 2020 at 4:45 am #21349SeaThemeKeymaster
Please try to use Import My Saved Data
Please go to Appearance>Theme Options, click “Import My Saved Data”:
It will go the importing page:
Click “choose file”,
Pick up the xml file, you could find the xml files(default-demo.xml) in /functions/theme/ folder
The page will be shown, set author and attachment, click submit:
Note: Because some site host PHP setting is not high enough. The images downloading will take long time, it would be always timeout. So you may have to repeat the Import step until all demo content import.
Make sure to activate the BM Page Builder and BM Slider plugins.
Disable the FTP box( refer to https://www.hongkiat.com/blog/update-wordpress-without-ftp/ )
I checked on my testing server just now, I didn’t reproduce this issue.
ps: my PHP version is 7.3, but I don’t think 7.2 would cause this error
Please make sure install/activate the 3 plugins( https://www.dropbox.com/s/d86f6fq09ovye3w/qq20200522-123752.jpg?dl=0 ), disable other plugins, try to import again:
- You must be logged in to reply to this topic.