Giter Site home page Giter Site logo

Comments (4)

brandonkelly avatar brandonkelly commented on July 22, 2024

CKEditor 3 isn’t compatible with Craft 5, but CKEditor 4 is. Change your craftcms/ckeditor requirement in composer.json to ^4.0.0 and try again.

If you have other plugins, they might need to be updated as well. See the “Craft 5 Upgrade” utility in your Craft 4 install – it will list each of the installed plugins and their latest Craft 5-compatible version (if they have one).

from cms.

masiorama avatar masiorama commented on July 22, 2024

Hi @brandonkelly thank you very much for the support, I already followed the docs but somehow I was missing that step. I mean, once seeing the craft panel section that listed the plugins ready for migration I assumed plugins were already at the correct version, but didn't match with the version installed. Once I got that I managed to proceed.

I have to stress a thing, though: I tested the upgrade on a dev env, and all was ok, but when I replicated on production env there was an issue with migrations which didn't let me proceed (I had to restore db backup something like 10 times of try-error-repeat). In detail, the issue was with this two migrations:

  • vendor/craftcms/commerce/src/migrations/m240308_133451_tidy_shipping_categories.php
  • vendor/craftcms/commerce/src/migrations/m240313_131445_tidy_shipping_methods.php

To make php craft up works properly I had to invert rows $this->addForeignKey(... and $this->alterColumn(... in both those migrations, because there was an irreversible error. Once edited, I was able to successfull migrate.

Why the issue was only on prod environment? Maybe some differences in mysql server (some different constraints)? Questions I got no answers to, but I hope my workaround doesn't mean I introduced any more issues.
This is why I decided to report this, I bet you can point me to right direction.

Hope this makes sense somehow, and if necessary I can properly open an issue to better investigate the matter.

from cms.

brandonkelly avatar brandonkelly commented on July 22, 2024

@masiorama Any chance you can share a production database backup, from before those migrations were run? If so, please send to [email protected] along with your composer.json and composer.lock files, and we’ll see if we can reproduce + fix.

from cms.

masiorama avatar masiorama commented on July 22, 2024

@brandonkelly done, thanks!

from cms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.