Jump to content
gornycreative

Trying to convert to markup regions - blank output NOT Tracy

Recommended Posts

So I'm running into a weird issue and I don't know what I am doing wrong exactly.

I'm trying to convert a site from delayed output to markup regions.

I've tried separating out some of the original parts between the three files:

_init.php - I am using an init because I have a few config variables and other bits that are used to pull global links for css and other bits.

home-page.php - which is where I plan on working through regions based on the home page content sections that are special.

_main.php - here I haven't really changed much. It's got a namespace and does refer to some values from the page object, but nothing fancy. Generic scaffolding. There are echo commands in there, but based on the example Regular profile that seems to be fine.

As soon as I made this separation, I loaded a view using the template and got a white screen - granted, I usually know what that means, but then I see Tracy has loaded!

I go through the template info, it has loaded all of what you would expect. No php errors showing and so I am totally lost.

I've even tried just running simple output in the template file - a print_r or an echo. Nothing.

If I disable loading the init, I get php errors because the variables I'm trying to call are not defined, nothing shocking there.

But if I include the files, I get blank output - no HTML at all. But I get Tracy at the bottom and I can access object properties/arrays etc within the page context from the console.

The only thing I guess that is weird, and I will try digging into this, is that I don't actually have any markup regions defined with ids anywhere yet. Because I'm just starting the conversion.

Is there a step I am missing someplace that is keeping the HTML markup in _main.php from showing up - just being blank?

Share this post


Link to post
Share on other sites

This seems to be related to the new version of Tracy - I updated a second testing instance with all other files being equal and the same behavior occurred. I'm going to try to knock out the cached version and revert and see if the site returns.

Share this post


Link to post
Share on other sites

I haven't been able to revert, and so I removed the plugins entirely and two sites of mine are now completely broken on the front end.

Not happy about this at all.

Share this post


Link to post
Share on other sites

I've replied on your other post about this - please try to keep things in one place 🙂

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...