Jump to content

Recommended Posts

Posted

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.

Posted

It looks like some of the unparsed code is from the file compiler, and that you are using the new 'regions' markup thingy(?).

What is in your code immediately before {$page->body}?

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

Thanks!

Is there a way to enable short_tags via command line, 'sudo something'? I'd still prefer to use <? ?> instead of <?= ?>

To be clear, I should search/replace as follows?

<? echo      becomes     <?=

<?        becomes       <?php   

Posted

It would be helpfull if we could see your template files and includes (like footer.inc), I suspect there's still some mistake there - Oculi plus vident quam oculus

  • Like 1

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
×
×
  • Create New...