Jump to content

Recommended Posts

Posted

Not sure what the problem is here, the error tells you exactly what's going on ? You appear to have a namespace statement somewhere inside your template – as per the documentation, namespaces need to be defined at the very start of your script. Either remove the namespace statement or move it to the top and the error will go away. If the namespace statement is at the very top and you're still getting the error, it might have something to do with (a) a problematic file encoding, make sure you're using utf-8 or (b) something going wrong with ProcessWire's template compiler. If correcting the problem does not make the error go away, please post your template so we can check what's going on.

Posted
18 hours ago, zoeck said:

Line 437:


					<?php namespace ProcessWire; $content = $page->body;?>

Just delete the "namespace ProcessWire" ? 

Ok, so, I must write <?php $content = $page->body;?>

or 

<?php echo $content = $page->body;?>

Posted
3 minutes ago, franciccio-ITALIANO said:

Ok, so, I must write <?php $content = $page->body;?>

or 

<?php echo $content = $page->body;?>

Just write

<?php echo $page->body; ?>

or the short code ? 

<?=$page->body?>

 

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