Error with WP All Import

You may have this kind of error with WP All Import :

Fatal error: Cannot redeclare get_cli_args() (previously declared in /wp-admin/includes/class-wp-importer.php:282) in /wp-admin/includes/class-wp-importer.php on line 333
The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.

Or :

Fatal error: Uncaught Error: Call to undefined method RapidAddon::set_post_saved_function() in \wp-content\plugins\wpml-all-import\wpml-all-import.php:77 Stack trace: #0 \wp-content\plugins\wpml-all-import\wpml-all-import.php(60): WPAI_WPML->__construct() #1 \wp-content\plugins\wpml-all-import\wpml-all-import.php(423): WPAI_WPML::getInstance() #2 \wp-admin\includes\plugin.php(1897): include('C:\\domains\\code...') #3 \wp-admin\plugins.php(172): plugin_sandbox_scrape('wpml-all-import...') #4 {main} thrown in \wp-content\plugins\wpml-all-import\wpml-all-import.php on line 77

Or :

Backtrace from Exception "No trid for product variation in secondary language, imposssible to set _wcml_duplicate_of_variation" In /wp-content/plugins/wpml-all-import/wpml-all-import.php [line 304]/wp-includes/class-wp-hook.php 288 calling saved_post() | /wp-includes/class-wp-hook.php 310 calling apply_filters() | /wp-includes/plugin.php 453 calling do_action() | /wp-content/plugins/wp-all-import-pro/models/import/record.php 3611 calling do_action() | /wp-content/plugins/wp-all-import-pro/controllers/admin/import.php 2834 calling process() | /wp-content/plugins/wp-all-import-pro/wp-all-import-pro.php 652 calling process() | /wp-includes/class-wp-hook.php 286 calling adminInit() | /wp-includes/class-wp-hook.php 310 calling apply_filters() | /wp-includes/plugin.php 453 calling do_action() | /wp-admin/admin.php 156 calling do_action()

Or :

NOTICE: PHP message: PHP Warning: fopen(uploads/wpallimport/uploads/[…]/file.csv): failed to open stream: No such file or directory in plugins/wp-all-import/libraries/XmlImportCsvParse.php on line 962

Or :

Update Failed: Could not copy file. wp-all-export-pro/static/js/jquery/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png

Or :

Notice: Undefined variable: export in \wp-content\plugins\wp-all-export-pro\views\admin\export\success_page.php on line 6

Notice: Trying to get property of non-object in \wp-content\plugins\wp-all-export-pro\views\admin\export\success_page.php on line 6

There are multiple solutions to try to make it work.


The first thing to do if you are stuck with WP All Import is to ensure that all your WordPress is up to date. You should check your :

  • WordPress
  • Plugins
  • Theme

Once all these updates are done, check back if these errors appear.

Check WP All Import

Sometimes, you just need to disable the plugin, and enable it just after to make it work again.

If it doesn’t work, your WP All Import plugin may be corrupted. To ensure that it’s not your case, you have to re-download the plugin (or the theme delivered with the plugin) and try to install it again.

Check others plugins

Are you sure that the error is related to WP All Import? Maybe not.

It could be related to another plugin that is not compatible. It could happen when you use a cache plugin, a security plugin, or simply a poorly developed plugin.

Disable all plugins. Then, check for your error, if the error is still there, the problem is not related to plugins compatibility. If there are no more errors, then enable every plugin one by one and check for the error. The goal is to target the plugin involved.

Try another theme

The error can be a problem with your theme.

If it’s not already done, then you should install & activate the default WordPress theme like Twenty Twenty-Two. Check for the error, and see what is happening to be sure that your WordPress theme is not the cause.

Permalinks & htaccess

If it doesn’t work, you may have a problem with your WordPress permalinks and/or your htaccess file. You should go on your WordPress dashboard, and re-saving permalinks from the permalinks page.

Contact the developer

If all these solutions don’t work, we advise you to contact the plugin developer.

You may have found a new bug, or a specific issue. You should get in touch with the developer either on the WordPress plugin forum, either by mail, either on their specific website with their own support.

Alternative solutions

If the developer doesn’t reply, or your problem is very urgent, then you should try an alternative to the plugin.

There are thousands of plugins on the official directory, and many others outside. You should try to find and test them!

If the issue is very specific, and the plugin could not be replaced, we advise you to contact an expert.
This is the best way to ensure you're not going to break your site anymore.