Jump to content

Mysterious Output Formatting Errors


thetuningspoon
 Share

Recommended Posts

I'm getting output formatting errors even when I've called of(false) on a page earlier on in my script. Is there something other than calling of(true) that could cause a page's output formatting status to turn back on during the same request? (saving another page, perhaps?)

EDIT:

Okay, here's one example out of many I've run into: I have one template that includes two other files (one for a "controller" and one for the "view"/markup output). If I call $page->of(false) at the bottom of the first file and then check it's status with $page->of() in the second, output formatting is back on again. However, if I call $page->of(false) in the second file right before I output the status, then it shows it as off, as you would expect.

EDIT #2:

Just tried this again on a separate install. This time I tried turning off output formatting in a head.inc file and then echoed $page->of() in the main template file. Once again, output formatting is back on in the template file. But if I turn off output formatting in the template file itself (as long as it is after the include statement), it remains off.

EDIT #3:

I was able to narrow this particular issue down to the MarkupSimpleNavigation module, which must be switching outputformatting back on somewhere in its code without resetting the state after that. Let's see if I can narrow down my other issues....

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...