Jump to content

Unparsed code on front-end pages


modifiedcontent
 Share

Recommended Posts

If I get unparsed code like this on my homepage:

Spoiler

compile(\ProcessWire\wire("config")->paths->root . 'site/templates/_head.php',array('includes'=>true,'namespace'=>true,'modules'=>true,'skipIfNamespace'=>true))); ?> compile(\ProcessWire\wire("config")->paths->root . 'site/templates/_nav.php',array('includes'=>true,'namespace'=>true,'modules'=>true,'skipIfNamespace'=>true))); ?>

{$page->body}
 
...

What does that mean? What is PW missing? What misconfiguration would produce this result?

And the admin area works as normal.

I am troubleshooting an attempt to install Processwire on Amazon EC2, but suspect this could be an unrelated issue.

Link to comment
Share on other sites

Quote

... you are using the new 'regions' markup thingy ...

Not consciously... ;-|

Could bad syntax in a template really bring down the entire front-end?

I have this in my home page template:

<div class=left><? echo "<p>{$page->body}</p>" ?></div>

That is wrong on many levels... Not sure how that got there.

  • Like 1
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

×
×
  • Create New...