Hi,
I've been having this issue for a few days and can't figure a way around it.
On the customer side, I'm using a basic form, set to read only, to show data on opportunities. This form can show other data fine, just the documents section shows a message saying "We're sorry, but something went wrong. Please try again, and if this persists, contact the website administrator." in a red box. I thought it would be a permissions error, however if I play with the permissions, I'll get a different error saying something along the lines of you don't have the appropriate permissions.
There's also a 500 internal server error in the dev tools console log, which only appears when the documents section is being used on a page.
Further info:
The opportunityid is being passed in through the url params, this works fine and can get the data for other sections fine.
I'm able to get information such as document names through a view on a different page, so I really don't think it's a permissions problem.
I've been stuck for days, this is doing my head in, it's the last thing that really needs doing for the website.