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
Documents Tab on Person Profile Showing Error Page Context Entity Has Not Been Configured #5645
Comments
I'm so glad you submitted this! We are running v16.0 and have this happen intermittently. It's happened a total of 3x since upgrading. To "fix" it, I will change the document types allowed. The error disappears for a bit, and then someone will report that it's back. Haven't been able to dig into what is triggering it to occur on v16. |
I can also confirm this is occurring on our instance, also 15.2. The Documents tab on the Person Profile pages is saying that I am missing a Context Parameter (which I am not) and as soon as I populate the Document Types with one or many, or remove one or many, it resolves itself, but the issue reemerges in five minutes or so. |
Thank you all for commenting on the issue. Although I haven't been able to recreate on v15.2 or v16.0 we will continue to investigate. If the issue occurs again, please include a screenshot that includes the url. |
The URL looks like this: https://rock.pinelake.org/person/132503/persondocs. Make sure to refresh the page a few times after changing the document type parameters. I'm seeing it with three different churches on 15.2. |
I've experienced the same behavior as above. I removed the Entity Type and Re-added. I am not able to consistently recreate the issue. When adding/removing the Document Types, it appeared to fix the issue but then randomly return. It hasn't however returned since removing and re-adding the Entity Type, at least for me so far. |
Thanks for that idea! I'll try it and see if it works. |
Just reoccured for me so I guess it isn't the fix, sorry ChristineBema |
I found that doing any change to the block and saving it causes it to work again. (i.e. changing the "Show Security Button" form yes to no, adding or removing one or all Document Types, renaming it). Not sure if that helps. |
I was able to recreate it today. Thank you all for the feedback. |
…configuration error message when there really was no configuration error. (Fixes #5645)
TL;DR Longer Story However, during testing... after adding a document, deleting a document and then putting the code back into the original state, we were unable to re-create the problem (as so many others above have also seen). Therefore that gives us a small amount of pause, since the state of the things [the "contexts"] seemed to look the same as when the bug was occurring. Nevertheless, the simplified code should make the condition†† not occur. |
…configuration error message when there really was no configuration error. (Fixes SparkDevNetwork#5645)
@nairdo are you able to share what the clear condition is that causes this bug? Is it something that's avoidable? We're still on 15.3, and this issue is happening very consistently for us. The only fix I've found is to edit the block settings, but then the problem comes back anywhere from a few minutes to a couple hours later. |
@JRichmond27 Sorry, I can only give you a technical answer... The condition that would cause this bug is if there are no items in the page's "context entity types" collection or if the 'required' context entity types are not in the page's context entity types collection. The v15.4 alpha testing is almost over, but since the fix above is small enough, I'm going to see if we can get that into v15.4 too. If we can, we'll also label this issue with "Fixed in v15.4" too. |
@nairdo that's awesome, thank you!!! |
…configuration error message when there really was no configuration error. (Fixes SparkDevNetwork#5645)
Description
The core Documents block is occasionally showing this error on version 15.2. You can cause it by going in and changing the Document Types in the block settings.
Actual Behavior
Sometimes when going to the Documents tab on a person's profile, this message appears: The page context entity has not been configured for this block. Go to Page Properties and click Advanced and enter a valid parameter name under 'Context Parameters', even though the Context Parameter on the page properties is PersonId. This should not throw an error. Sometimes the documents show, like when you clear out all the Document Types allowed in the block and fill them back in, but then the error comes back.
Expected Behavior
All the documents should show because the Context Parameter on the page, PersonId, is correct.
Steps to Reproduce
Issue Confirmation
Rock Version
15.2
Client Culture Setting
en-US
The text was updated successfully, but these errors were encountered: