-
Notifications
You must be signed in to change notification settings - Fork 66
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
Duplicates NEO blocks when saving "Homepage" section #156
Comments
Created another Single Section "Test" and same issue. Happens only to NEO Blocks. |
Hi @Osze, There were duplicating block issues (actually extra block structures mistakenly being created) but they should have been resolved in v2.0.1... I've repeated the process as shown in your video and have as yet been unable to reproduce this. I'll try to look through the plugin code and find any places that fields/blocks could possibly be updated and saved without the block structure also being updated and saved. In the meantime, can I ask, since you've reported the issue with single entries; are you also experiencing this with channel or structure entries, or are they working normally? |
Hi ttempleton, I only get the issue on singles. If it helps I can give you access to the system. My name is Oscar Carlsson in the Craft Slack channel. Or add me on skype - oscar_carlsson84 Regards |
The offer is much appreciated; for the time being I'm going to see if there's any setting or combination of settings that could cause this, but if I come up empty then I'll be in touch. |
I've been trying to find a pattern or something to understand the bug better. But without luck. For example: It all looked as it should. Clear:ed my cache and re-saved the Single Section again. Then the duplicated neo blocked appeard. hm... |
I'm seeing this too, latest version of Neo and Craft 3.0.30. Every block in the page is duplicated and I can't actually open it in the CP. ETA: I managed to fix it by deleting a number of duplicated rows that had been created in the craft_structures table, don't know if this is helpful at all in tracking down the problem. |
@ttempleton did you have time to look at this issue? I'm hopefully launching the new site tomorrow and would feel much better if this was solved :) |
Sorry for the delay @Osze and @i-hardy. We've just released v2.0.2 which includes a clean-up of duplicated block structures. If you update Neo and then re-save the affected sections, the appearance of duplicated blocks should be gone. Can both of you please confirm whether this has resolved the situation for you? |
Hi Ttempleton, I've upgraded NEO to v.2.0.2. but re-savning my "Hompage" single section doesn't work at all now. Loading trying to Re-save entries, then throws me this error:
Next yii\db\Exception: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction Copy Stacktrace Search Stackoverflow Search Google Exception |
That is strange; in my testing I completely removed the deletion of old block structures and re-saved until I was seeing 36 of one block, then added the cleanup mechanism and it worked fine. Does the error still occur if you re-save the homepage entry directly? (you should not need to delete any of the duplicated blocks for this) |
Yeah, same issue when saving the entry directly. Tried it on 2 different craft installations and same problem. Endless loading until General error: 1205 Lock wait timeout exceeded;. |
I've just been testing on a few Craft installations across a couple of machines and didn't run into any errors. Were your Craft installations on the same machine and do they have the same plugins installed? I'm starting to wonder in particular if there's some conflict with another plugin, given that my tests have admittedly been on Craft installations that have been light on plugins. If possible, could you please test with a totally clean Craft install, no plugins installed except Neo, and let me know if you still get the error? |
I have two installations with the same setup and same plugins. On both the mysql locks the table when saving the Hompage section and sometimes the Homepage entry:
I've tried to get Craft support helping me without any success. I have another installation that is almost the same, but not updated to the latest NEO 2.0.2. This really starts to get annoying. I'm running a m5.large on Amazon configured by Serverpilot, so the system is definitely good enough. |
|
Can you try a clean Craft installation with Neo as the only plugin installed and see if you still get the error? Or alternatively can you please let me know what other plugins you're using? We've done further testing without any problems -- whether SQL errors or block duplicating -- which makes me wonder whether Neo is somehow conflicting with another plugin. |
Hi ttempleton, you are right. I don't think it is a NEO issue anymore. I think it might have something with Blitz Cache. Just typically that Blitz also made an update at the same time you fixed #1 bug in NEO. |
My NEO block in the entry "Homepage" gets duplicated 9! times when saving the section - "Homepage" (single)
I've made a short video explaining.
https://youtu.be/lcW89xrKjwU
The text was updated successfully, but these errors were encountered: