buttonbox icon indicating copy to clipboard operation
buttonbox copied to clipboard

Problem upgrading Craft/Button Box

Open tyssen opened this issue 1 year ago • 4 comments

Describe the bug

I've been working on an upgrading a site which was on Craft 3.7.42 to v4.

First off I attempted an upgrade to the latest 3.x version. Part of that process involved replacing Supercool BB 2.0.4 with Verbb BB 3.0.2 (there were a couple of other plugins that were replaced with Verbb versions too like Patrol and Tablemaker). Then I upgraded to Craft 4.

All this went fine on my local but when attempting the same thing on staging after running composer update and then craft migrate/all I get:

You need to be on at least Button Box 3.0.0 before you can update to Button Box 4.2.4.

What do I need to do to get the update process to complete?

Steps to reproduce

  1. Update to Craft 3.9.13
  2. Update to Craft 4.0.0
  3. Attempt same thing on staging

Craft CMS version

3.742-3.9.13 and then 4.0.0

Plugin version

Supercool 2.0.4 to 3.0.2 and then 4.2.4

Multi-site?

No response

Additional context

No response

tyssen avatar Sep 03 '24 00:09 tyssen

So it's quite possible that each environment needs to be upgraded to the latest of that major version, rather than everything all in one go. So you would go to the latest 3.x of Craft (and the associated plugins), and deploy that to all environments. Then, continue with your Craft 4.x (and associated plugins) after that.

I'm not sure if that's an option anymore for your site (with everything already done on Craft 4)?

engram-design avatar Sep 04 '24 03:09 engram-design

@engram-design so do I need to roll all environments back to the 3.x stage and then start over? I'm sure I've done 3-4 upgrades on other sites where I haven't had to go to the latest on the current version for each environment before moving to the next one.

tyssen avatar Sep 04 '24 03:09 tyssen

It's more than we don't really support changes from 2.0.2 straight to 4.0.4, and we don't bundle migrations for multiple major versions of plugins. I can look into what's involved in the upgrade to handle multiple major versions.

engram-design avatar Sep 04 '24 03:09 engram-design

OK, thanks. 👍

tyssen avatar Sep 04 '24 03:09 tyssen