This happens when c.multitheme is active, not with barceloneta. To reproduce this case, try:
create a normal user with only Member role
create a folder (i.e. as manager) and keep it private
share this folder with the user
logged as the user, go to this folder and add an element
In this situation, the theme is absent, no specific error message neither in plone logs neither in browser console:
Publish the folder and everything is ok.
NB: the error message (below) in browser console is also present when Barceloneta is active:
This happens when c.multitheme is active, not with barceloneta. To reproduce this case, try:
Publish the folder and everything is ok.
NB: the error message (below) in browser console is also present when Barceloneta is active: