Only part of the site is loading for non-admins

Weird bug. Only administrator (for wordpress) can see the whole site. For non-users or users below admin only the title picture shows up. Picture attached.

Everything is up to date. Php is 5.4.45 which I believe is sufficient.

I messed around a little and found the problem
There are a lot of
current_user_can( ‘edit_theme_options’ )
being used and apparently guests or anything below admin don’t have this capability.
I’m not familiar with web at all so I just replaced it with a dirty
true || current_user_can( ‘edit_theme_options’ )
and it worked.
I’m sure the default capability can be changed, but why is it even there?

Hello there,

I hope you are doing well today and nice work on finding a solution.

This is a simple security feature to ensure that only one user is making changes to the theme at anytime.

Best Regards,
Support

I suppose it’s something along that line. But how do you explain the picture I uploaded? Everything under the condition check refused to load (from a incognito tab). I wasn’t editing anything. A single anonymous user was on the website and it didn’t work.

I don’t know what I did triggered this side effect. It was a brand new server. This is a major bug that you guys may want to take notice. Thank you for your support.

Hello there,

I have already created an issue for this so that our developer can look into the problem.
You can also log the issue for the developer to use also:

Best Regards,
Support