Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost some data and content after upgrading from Craft 4 to Craft 5 #943

Open
bhashkar007 opened this issue Sep 11, 2024 · 10 comments
Open
Labels
bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required bug report

Comments

@bhashkar007
Copy link

Bug Description

I had built a website using Craft 2.6.3019 several years ago and Neo field is widely used with the combination of Matrix field. Now we are planning to upgrade it to Craft 5 (latest version). So I did:

  • Upgrade from Craft 2 to Craft 3 (successful - everything is fine.)
  • Upgrade from Craft 3 to Craft 4 (successful - everything is fine).
  • Upgrade from Craft 4 to Craft 5 (latest version Craft 5.4.2, Neo 5.2.5) - Upgrade and migration went successful but while checking entries Craft 5 website, I found that data/content of some fields were lost.

Please help for it.

Steps to reproduce

  • Upgrade Craft 4 to Craft 5 using Neo

Expected behaviour

No response

Neo version

5.2.5

Craft CMS version

5.4.2

What is the affected Neo field's propagation method?

No response

Does this issue involve templating, and if so, is eager-loading used?

This is not a templating issue

@bhashkar007 bhashkar007 changed the title lost data and content after upgrading from Craft 4 to Craft 5 Lost some data and content after upgrading from Craft 4 to Craft 5 Sep 11, 2024
@LinneaHarts
Copy link

LinneaHarts commented Sep 12, 2024

This is happening to me too, just in an upgrade from 4 to 5. And it was working before, so I think a new neo upgrade may have done it.

@LinneaHarts
Copy link

I pinned my neo to 5.2.2 and re-upgraded and it seems to have fixed the problem at least so I can go forward with my upgrade

@bhashkar007
Copy link
Author

@LinneaHarts It didn't work for me. I re-upgraed from Craft 4 to Craft 5 with Neo v5.2.2 and still having same problem.

@ttempleton
Copy link
Contributor

Are there any particular field types that are losing content?

@ttempleton ttempleton added bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required and removed bug report status: new labels Sep 18, 2024
@LinneaHarts
Copy link

LinneaHarts commented Sep 18, 2024

EDIT: sorry, complete different issue

@bhashkar007
Copy link
Author

Thank you, @ttempleton I found this issue in entries of different sections basically with the field types like:

  • Plain Text
  • Plain Text (multiline)
  • CKEditor (which is migrated from Redactor)
    I am afraid that there may be other field types also. It's something large website with 4k+ entries and 14 languages (sites). Please share your thoughts,

@ttempleton
Copy link
Contributor

If possible, could you please send both your Craft 4 and 5 composer.json/lock files, and your Craft 4 database backup (so I can see the expected content on Craft 4 and then attempt the upgrade to see where the content is being lost) to [email protected], and we'll have a look.

@navneetshukla9
Copy link

@bhashkar007 I have also faced the same issue, It gets fixed when you just re-save the field again from Settings->Fields.

@daveguillory
Copy link

Confirming that I also had the same issue, specifically with CKE fields, and it was resolved by following @navneetshukla9's suggestion of re-saving each Neo field in Settings->Fields.

@ttempleton
Copy link
Contributor

My above request remains open for anyone experiencing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report status: unconfirmed A bug report that has not yet been reproduced by the maintainer(s), and more information is required bug report
Projects
None yet
Development

No branches or pull requests

5 participants