Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Migration breaks on MacOs with Warning: Something went wrong while running sed #103

@danmurray2k

Description

@danmurray2k

Describe the bug

When running a migration with any option, I get the error

Warning: Something went wrong while running sed

multiple times, followed by database errors.

On dumping the sed commands it's trying to run, it looks like it's trying to use the -i flag, as I found doesn't work the same on MacOS, see the following SO thread.

https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux

Steps to Reproduce

Start migration import with or without the change url / blog ID options
The error Warning: Something went wrong while running sed shows several times
Database errors result

Screenshots, screen recording, code snippet

N/A

Environment information

No response

WordPress information

Wordpress v6

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions