Jump to content

Strange error by rendering body field


Juergen
 Share

Recommended Posts

Hello @ all,

I have very strange error messages if I want to render my body field in a template. First of all: This happens only if I am not logged in as administrator and only for the body field. If I am logged in with superuser rights everything seems ok.

Here are the error messages from Tracy debugger:

error1.jpg

error2.jpg

Has anyone an idea what the cause could be?

Best regards Jürgen

Link to comment
Share on other sites

Hi,

Does the page/template in question has the view permissions set for the guest user?
Seems like the check for the right permission goes wrong. According to the debug code, if you are logged in as a super user, this check won't happen -- this would explain why it works if you're logged in.

cheers
Tom

  • Like 1
Link to comment
Share on other sites

Best thing would be to strip it back to basics to try and narrow down the problem:

  • Remove any textformatters applied to the field.
  • Try removing all the content from the field.
  • Try the simplest template file possible, that just echos the field with no prepended or appended files.
  • Try adding the field to a new template that doesn't contain any other fields (besides title) and see if you still get the problem there.
  • Like 2
Link to comment
Share on other sites

I have created the exact same field and added it instead of the body field. Now everything works fine. Unfortunately I was not able to trace down the problem according to the tipps of Robin S.

Thanks all for your help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...