-
Notifications
You must be signed in to change notification settings - Fork 638
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
[4.x]: First save of a multisite entry with Matrix blocks orphans the blocks from the primary site #13155
Comments
After creating the new site, did you wait until the “Applying new propagation method to [section name] entries” queue job had completed before editing the entry? |
I did! When I saw that pop in I made sure to let that process entirely before proceeding |
Quick update – I was able to reproduce this today, and looking into it. |
Got to the bottom of it, and this is now fixed for the next release! |
Thanks, @brandonkelly! |
Craft 4.4.10 is out now with that fix. |
What happened?
I'm seeing an issue on a Craft site where a handful of Matrix blocks are being orphaned in the database and lost on my primary site when saving the "Home" single in my newly created site.
Here are the steps I'm performing:
1. Add a new Site
2. Change my Matrix field's "Propagation Method" so blocks are only on the site they were created in
3. Enable the Home single for the Spanish site
4. Visit the Spanish version of the Home single and then save it
Note: It appears that the primary site's blocks are in this view already. I thought this would normally be empty because of step 2, but I could be mistaken.
5. The primary site Home single has had all but one block removed
Database note
I've attached a screenshot of the blocks with the
ownerId
of4
(the Home single) before I saved the Home single and after (step 4). You can see that a number of these drop off.I was able to find one of the blocks that had dropped off to see where it went and here's what I found. It looks like that block was assigned a new
ownerId
and it points to a draft entry.Let me know if you need me to send anything!
Craft CMS version
Craft Pro 4.4.8
PHP version
8.1.17
Operating system and version
Darwin 22.4.0
Database type and version
MySQL 5.7.41
Image driver and version
GD 8.1.17
Installed plugins and versions
The text was updated successfully, but these errors were encountered: