WPML

Overview of the Issue

When using WP-CLI to run an import with WP All Import and the WPML All Import add-on, the following error occurs:

PHP Fatal error: Uncaught Error: Class ‘WPML\AI\WCML’ not found in …/wp-content/plugins/wpml-all-import/wpml-all-import.php:275

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Please make a full backup of your site before proceeding.

  1. Open the …/wp–content/plugins/wpml–all–import/wpml–all–import.php file.
  2. Look for lines 12-14:
    PHP
    require_once "includes/rapid-addon.php";
    
    require_once "vendor/autoload.php";

    And replace them with:

    PHP
    require_once __DIR__ . "/includes/rapid-addon.php";
    
    require_once __DIR__ . "/vendor/autoload.php";

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.