Junk {head} {styles} codes as output
Symptom:
When visiting your Drupal site for the first time you see what looks like code output, instead of the expected theme:
{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links}
{primary_links}
{_BLOCK_.header.blocks} This chunk of code is followed by the standard welcome message.
Cause:
Changes made after 4.6.x was released in PHP 5.0.5+/5.1.1+ and the template engine XTemplate are incompatible.
The quickest solution is to go to http://www.example.com/?q=admin/themes and change the default theme to Chameleon or Marvin.
Before you can change the theme you'll need to be logged in. Either create the first account or login at http://www.example.com/?q=user.
Another solution is to switch to a PHPTemplate based theme. PHPTemplate is another theme engine, which will become the default in Drupal 4.7 anyway. You will need to download and install PHPTemplate before you can use themes that depend on it.
Make sure to disable all XTemplate themes to prevent visitors from using them. Drupal 4.6 comes with two XTemplate themes included: Bluemarine and Pushbutton. A PHPTemplate version of Bluemarine is available. Primary/Secondary links configured in the theme general settings will not carry over to PHPTemplate. You will need to re-configure any Primary/Secondary links in the PHPTemplate configuration of the theme.
