• Resolved sabdullah98

    (@sabdullah98)


    Hello,
    i am using this plugin for the past 6 months and it works great. I even purchased 2 addons.
    I have tried to use this plugin on a new website but when i upload the header, it shows nothing, just blank screen. i switched on WP_DEBUG to true, then repeated the same process and it showed this error.

    `Warning: array_key_exists() expects parameter 2 to be array, boolean given in /var/www/example.com/public_html/wp-content/plugins/woocommerce-csvimport/admin/partials/woocsv-import-admin-header-preview.php on line 27

    Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /var/www/example.com/public_html/wp-content/plugins/woocommerce-csvimport/include/class-woocsv-import.php:455 Stack trace: #0 /var/www/example.com/public_html/wp-content/plugins/woocommerce-csvimport/admin/partials/woocsv-import-admin-header-preview.php(37): woocsv_import->get_lines_from_file(‘/var/www/example…’, 0, 4, ‘,’, true) #1 /var/www/example.com/public_html/wp-content/plugins/woocommerce-csvimport/admin/class-woocsv-import-admin.php(113): include(‘/var/www/indian…’) #2 /var/www/example.com/public_html/wp-includes/plugin.php(524): woocsv_import_admin->import(”) #3 /var/www/example.com/public_html/wp-admin/admin.php(222): do_action(‘toplevel_page_w…’) #4 {main} thrown in /var/www/example.com/public_html/wp-content/plugins/woocommerce-csvimport/include/class-woocsv-import.php on line 455

    Server PHP version 7.0

    i have replaced the website name with example.com here so that it doen’t appears in google search.

    • This topic was modified 7 years, 5 months ago by sabdullah98.
Viewing 1 replies (of 1 total)
  • Thread Starter sabdullah98

    (@sabdullah98)

    Ok i solved it myself.

    As by observing the error i found that it says Call to undefined function utf8_encode(), and as i am using PHP 7 on this new server and in php7 utf8_encode() and utf8_decode are not accessible so i just installed php7.0-xml extension and its done.

    posting this so that others can benefit from it.
    thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to import header’ is closed to new replies.