Hello,
I'm seeing this error while opening the portal once it is published.
Discussion posts and replies are publicly visible
Please remap the object to used and again publish the portal.
adityag0011
Tried still the same error.
Did you check the Portal activity log and environment log files for more information about the error?