Repository navigation
Troubleshooting
Written against v0.35.0.
One entry per symptom, as you meet it: the message or behavior, its cause, and the fix. Errors are logged to storage/logs/laravel.log; Command reference shows how to start a run with an empty log.
- The command refuses the export file
- Every migration API request answers 401
- SSL certificate problem: self-signed certificate
- A large import runs out of memory or time
- An import does not show in the Control Panel
- Imported content looks wrong after a warning
- An unattended run imports one type and exits non-zero
- Fixed
The run stops before scanning.
Cause: the path does not exist, PHP cannot read it, or the file is not a WordPress WXR export.
Fix: check the path and its permissions, and export again from Tools, Export in WordPress.
An import with --source=api, or the check requests, answers 401 whatever you change.
Cause: the API returns the identical 401 for an unset constant, a wrong key and a correctly refused anonymous request, so the code alone does not say which. A key piped from PowerShell 5.1 arrives with an invisible three-byte byte-order mark and is always wrong.
Fix: run the three check requests in Importing from the migration API. Pipe the key with printf '%s' from bash, or a file redirect, not from PowerShell 5.1.
curl or the import stops on SSL certificate problem: self-signed certificate.
Cause: the WordPress site is a local .test host with a self-signed certificate.
Fix: for a local host you control, curl -k skips the check. Never skip it for a real host; see the warning in Importing from the migration API.
The run stops with a PHP memory or execution-time error.
Cause: the export is large, and one process imports all of it.
Fix: raise PHP's memory and time limits for the run, for example php -d memory_limit=2G artisan statamic:import:wordpress ....
The run completed, but the entries are missing or out of date in the Control Panel.
Cause: the Stache or a cache still holds the state from before the import, for example when the run stopped before finalization cleared them.
Fix: clear the caches and refresh the Stache (php artisan cache:clear, php artisan statamic:stache:refresh).
Entries imported after a Classic, Row, Details or Freeform warning look different from the WordPress page.
Cause: those patterns have no exact equivalent, which is why the command warns about them.
Fix: review the entries named in the warnings and adjust them by hand, or rerun with --unsupported-content=skip to leave them out.
A run with no terminal imports the first supported content type, reports the rest as untouched, and exits non-zero.
Cause: without --content-type the run cannot ask which type to import.
Fix: pass --content-type with the type you want, once per type.
Problems fixed in a release stay here, with the release that fixed them, instead of being deleted.
Home | Your first import | Guides | Troubleshooting | Reference | README | Repository
Written against v0.35.0. Edit these pages in docs/wiki/ through a pull request; edits made in the wiki are overwritten by the next publish.
Getting started
Guides
- Importing from the migration API
- Previewing an import with verify
- Importing navigation menus
- Importing MinervaKB articles
Troubleshooting
Reference
Project