-
Notifications
You must be signed in to change notification settings - Fork 2
Repeater issues after master upgrades with multilang fields, data loss possible #2061
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
Comments
@skeltern Thanks for the report. I've tried a few times, but not having any luck duplicating this. I'm testing on an old multi-language installation where the repeaters were created and populated a long time ago, in the early 3.x versions. I've turned on the "remember which items open" for both the matrix and the nested repeater. I've tried making edits in various open/closed contexts, but haven't been able to lose any content. I'm wondering if you are seeing any JS errors in your console? Are there any other site modules installed on all the installations where you can reproduce it? The only other thing I notice from your screenshot is that you are using an old admin theme, so wondering if you can try with the current theme (AdminThemeUikit), just in case? |
@skeltern, can you test with dev versions from 229 up to the point where you encounter problems? That would most likely help in solving this issue. |
Good idea, thanks. I would do this, but I only see legacy master versions (https://github.com/processwire/processwire/tags). Is there a repository or download option for individual dev versions? The Upgrades module only refers to the newest versions. By the way, I don't use Composer for ProcessWire and would install minor dev versions the old-school way. |
Many thanks for checking out my issue. The console is clean, and it makes no difference whether I use Admin Classic or UIkit. I tried a lot of things before I opened this thread. All affected sites are sharing the site modules Repeater Matrix and Upgrades. Next, I tried a clean install of version 3.0.227 and created the issue context. Then, I upgraded to the latest version, 3.0.247. There were no issues at all. It seems that only older installs are affected (created between 2019 and 2023) with a longer upgrade queue (ProcessWire and Modules)? I'm not sure how to recreate the issue from scratch. So, I just duplicated an affected website (created in spring 2021) and removed all unnecessary stuff. There are only some fields and one page with the described issue left. It's technically separated, so I could provide ProcessWire superuser and FTP access (via email) if that makes sense. Some more tests revealed that it's connected with the setting "Remember which repeater items are open?" set to "Yes". Page save actions with a closed Repeater item in a Repeater Matrix item work. However, with an open Repeater, each multilanguage value is no longer displayed as value="" and gets lost on the second page save. I can delete the cookie "repeaters_open" in the dev tools to see the multilanguage values again until the next page save. Every idea is welcome. |
Download dev versions as zip file and replace current wire directory with the wire directory in the zip file. I usually start in the middle of the current working version and the latest master/dev. Here are the links to some dev versions: 3.0.243 https://github.com/processwire/processwire/tree/94bc7c346eb809e4b492b9512299c962759782ef So, start with 236, if it's working try 240, if not try 232. On GitHub https://github.com/processwire/processwire/commits/dev you can click on |
@matjazpotocnik @ryancramerdesign Matjaž, many thanks for help! I figured out that my described issue first appears in version 3.0.237. So, I checked out all commits/changes between versions 236 and 237. I was able to narrow down the problem to ".../FieldtypeRepeater/FieldtypeRepeater.module". There are only a few code changes between those versions and I tested them all by trial and error. A small code addition is the troublemaker in my specific context.
Without this line, everything works as expected again, even in the latest version 247. It would be nice to get rid of this issue in an upcoming release. I am wondering if I am the only one experiencing these hiccups. Maybe it's a rare context and only occurs in multilingual settings. I don't have a clue about the dependencies here and output formatting. I could only provide access to my test system to see and trace the issue. |
@ryancramerdesign - can we assume this is what caused my RM issue: https://processwire.com/talk/topic/31047-nearly-lost-a-lot-of-content/#comment-247921 |
Setup:
Issue:
Tests:
Workaround:
The text was updated successfully, but these errors were encountered: