FCHubFCHub.co

Preflight Checks

Validate your environment before migration. The preflight system checks WooCommerce, FluentCart, PHP memory, WC Subscriptions availability, and existing FluentCart data.

Before migrating any data, the preflight system validates your environment to catch problems early. Run preflight checks every time before starting a migration — even if you have run them before.

What Gets Checked

The PreflightCheck validator runs five checks:

Ready status

The preflight result includes a ready flag. It is true only when both the WooCommerce and FluentCart checks pass. PHP memory and existing data are advisory — they will not block the migration.

Running Preflight via REST API

GET /cartshift/v1/preflight
curl -X GET "https://yoursite.com/wp-json/cartshift/v1/preflight" \
  -H "X-WP-Nonce: YOUR_NONCE" \
  -b "wordpress_logged_in_COOKIE=VALUE"

Response:

{
  "checks": {
    "woocommerce": {
      "label": "WooCommerce",
      "pass": true,
      "version": "9.5.1",
      "message": "WooCommerce 9.5.1 is active."
    },
    "fluentcart": {
      "label": "FluentCart",
      "pass": true,
      "version": "1.0.0",
      "message": "FluentCart 1.0.0 is active."
    },
    "wc_subscriptions": {
      "label": "WooCommerce Subscriptions",
      "pass": true,
      "optional": true,
      "active": true,
      "version": "6.9.0",
      "message": "WC Subscriptions 6.9.0 detected. Subscription migration will be available."
    },
    "php_memory": {
      "label": "PHP Memory",
      "pass": true,
      "value": "512M",
      "message": "PHP memory limit is 512M (recommended: 256M+)."
    },
    "fc_data": {
      "label": "Existing FluentCart Data",
      "pass": true,
      "warning": false,
      "counts": {
        "products": 0,
        "customers": 0,
        "orders": 0,
        "subscriptions": 0,
        "coupons": 0
      },
      "message": "FluentCart database is empty. Ready for clean migration."
    }
  },
  "ready": true
}

Interpreting Results

All checks pass

If ready is true and no warnings appear, you are good to proceed with the migration. Review the entity counts to understand the scope of your migration.

Required check fails

If WooCommerce or FluentCart fails, the ready flag will be false. Activate the missing plugin and run preflight again. Do not attempt to start a migration when ready is false.

PHP memory warning

If your memory limit is below 256 MB, consider increasing it before migrating a large store. For smaller stores (under 1,000 total records), 128 MB is usually fine. The batch size of 50 records helps keep peak memory usage manageable.

To increase PHP memory, add this to your wp-config.php:

define('WP_MEMORY_LIMIT', '512M');

Or set it in your PHP configuration (php.ini):

memory_limit = 512M

Existing FluentCart data warning

If FluentCart already has data, the migration will add new records alongside it. Duplicate SKUs get a suffix to maintain uniqueness. Customers with the same email address are detected and linked rather than duplicated.

If you want a clean migration, consider removing existing FluentCart data first — or use the rollback feature after migration if the results are not what you expected.

Next Steps

Once all preflight checks pass and you have reviewed entity counts, proceed to the Migration Guide to start your migration.

On this page