• Resolved Angelo Rocha

    (@angelorocha)


    I’m trying to install wordpress 5.7.1 in a Docker container, everything works fine in version 5.7, but in version 5.7.1 the build returns an error related to the twentytwentyone theme.

    wordpress_1    | Success: WordPress installed successfully.
    wordpress_1    | ## Updating default themes and plugins
    wordpress_1    | Success: Plugin already updated.
    wordpress_1    | Warning: twentytwentyone: version higher than expected.
    wordpress_1    | Error: No themes updated.
    docker-compose_wordpress_1 exited with code 1

    I already identified where my script is breaking, it’s in the command:
    sudo -u www-data wp theme update --all

    I use this command to prevent my WordPress image from uploading with an outdated theme, it worked normally even before this new version.
    Does anyone have any idea how to solve this (I don’t want to remove the theme update command.)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK the issue is 5.7.1 is shipped with version 1.3 of twentytwentyone but the repo latest version is 1.2.

    Why that is ( maybe an omission ) I don’t know.

    can you not force a zero exit code by or-ing an echo e.g.

    sudo -u www-data wp theme update --all || echo 'no update'

    Thread Starter Angelo Rocha

    (@angelorocha)

    Thanks Alan!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error install WordPress 5.7.1 in Docker’ is closed to new replies.