Support » Plugin: Redirection » CLI database commands assume multisite.

  • Resolved daverobinsonpw


    It appears that running wp redirection database upgrade fails if you’re not running multisite.

    It looks like it’s down to this change

    So the multi site behaviour of iterating across get_sites() and executing the callback is being applied in any CLI environment even if the site is not multisite.

    The end result is that a non multi-site build gets a fatal error for a call to an undefined function get_sites.

    I assume that the change is related to this item in the changelog “Fix database upgrade on multisite WP CLI”. Unfortunately it’s caused a regression for non multisite WP CLI.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter daverobinsonpw


    The issue reported here was in 4.0.1 which appears to have been withdrawn since the current version according to the plugin page and download link is 3.7.3
    It would be useful to have a sticky note in the support queue and/or a notice on the plugin page to warn people who had already updated.

    Plugin Author John Godley


    Yep, fixed and in the next version! Thanks for the report.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CLI database commands assume multisite.’ is closed to new replies.