Okay
  Public Ticket #2169606
Error importing demo content
Open

Comments

  • Ace started the conversation

    Hi, when I was trying to import the demo content using the BT_import plugin, here is what I got:

    BoldThemes Import

    I am not installing any other 3rd party plugins other than the required ones by this theme, and what specific questions that I should check from hosting provider on this importing issue?

    regards,

    Ace

    Importing... 0% JSON Parse error: Unrecognized token '<'  Fatal error: Uncaught Error: Class 'XMLReader' not found in /usr/share/nginx/html/wordpress/wp-content/plugins/bt_wordpress_importer/bt_wordpress_importer.php:278 Stack trace: #0 /usr/share/nginx/html/wordpress/wp-content/plugins/bt_wordpress_importer/bt_wordpress_importer.php(486): BT_WP_Import->get_reader('/usr/share/ngin...') #1 /usr/share/nginx/html/wordpress/wp-content/plugins/bt_wordpress_importer/bt_wordpress_importer.php(103): BT_WP_Import->import('/usr/share/ngin...') #2 /usr/share/nginx/html/wordpress/wp-includes/class-wp-hook.php(286): bt_import_ajax_callback('') #3 /usr/share/nginx/html/wordpress/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #4 /usr/share/nginx/html/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /usr/share/nginx/html/wordpress/wp-admin/admin-ajax.php(99): do_action('wp_ajax_bt_impo...') #6 {main} thrown in /usr/share/nginx/html/wordpress/wp-content/plugins/bt_wordpress_importer/bt_wordpress_importer.php on line 278
  •  927
    Support Agent 1 replied

    Hi Ace,

    Thank you for purchasing our theme!smile.png

    Please proceed and check your memory an script timeout time:

    Memory increase: 

    1. If you have access to your PHP.ini file, change the line in PHP.ini If your line shows 32M try 64M or 128M: memory_limit = 64M ; Maximum amount of memory a script may consume (64MB) 

    2. If you don't have access to PHP.ini try adding this to an .htaccess file: php_value memory_limit 64M 

    3. Try adding this line to your wp-config.php file: Increasing memory allocated to PHP define('WP_MEMORY_LIMIT', '64M');

    Script timeout:

    If you have access to edit your php.ini, it is recommended that you increase the value of max_execution_time to 900 (15 minutes).

    If that doesn't help, please contact your hosting provider and see if they are blocking some settings which are causing the demo not to import.

    Please let us know of the outcome.


    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Ace replied

    I figured it out! 

    I suggest that you can put this issue in FAQ section as there are a lot of tickets asking on the same issue. The most possible issue is that you need to install the xmlreader and xmlwriter extension to the PHP on the server which enables the import to work.

  •  927
    Support Agent 1 replied

    Hi Ace,

    We are glad you have managed to resolve the issue!

    Thank you for sharing your solution with us!smile.png

    Let us know if you need help with anything else.


    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!