So, please can you check that the structure I am using is correct and if not tell me what needs to change.
Hi Bill, I don't know of anything that would result in 'View not found' because of something structural in the blocks lists you've shown. From what I can see in the screenshots here, everything looks pretty good to me.
In the WordPress Archive block menu, the main structural elements you should expect to find in every custom search WordPress Archive are there, in proper order, including WordPress Archive block, WordPress Archive Search block, WordPress Archive Output block, and WordPress Archive Loop block.
In the View block menu, the main structural elements you should expect to find in every custom search View are there, in proper order, including View Block, View Search Block, View Output Block, and View Loop Block. Placing the View inside another Container block is completely acceptable, too.
Blocks is pretty good at preventing you from creating an invalid blocks structure. For example, if you try to drag a custom search filter into the results area, you'll be blocked by the system.
So if there is a recurring problem where Views disappear, I would suspect something outside of the blocks structure from being the main culprit. I checked your other ticket and saw this comment:
"When the page stopped displaying I did a full restore to a point when it should have been ok (last Friday), but it didn't change anything."
You restored the database and the file system but the problem persisted? If the database and file system were restored to a point where everything worked before, but the problem remained, that points to more of a systems issue like server-side caching, optimization issues, . One test we can try is to create a clone of the site and install it on my local environment. If the issue was server-side caching, the problem should be resolved on my local site where I have no server-side caching installed. If you'd like me to run a test like this, I'm happy to do so. I would need access to the backups you used to restore the site, or whatever backups you would like for me to use as a baseline.
Here I have a direct link to the Custom Post Archive in the navigation menu, but I’m not sure this is the best way to structure the site and it seems the functions I use would need to be re-written.
Hmm, I don't see any problem with a direct link to an archive placed in your main navigation menu, from a technical perspective. I'm not really clear how this relates to the main problem at hand, though, where Views are disappearing. Am I misunderstanding something? What functions are you referring to?
Do you have any regular site backup processes scheduled? Do you regularly backup your database? If so, is it possible we could compare two versions of the site, before and after the custom search Views disappeared?
If no such processes are scheduled, could we go ahead and create a backup now so that we have something to compare against should the problem arise again?