Incorrect Layout - {head} {styles}
askmahesh - December 21, 2005 - 22:45
I am using Drupal 4.6.5/PhP5.1.1/MySQL5.0.17
On Installing drupal it displays Incorrect Layout
Something like this
{head} {styles}
_BLOCK_.header.logo} {_BLOCK_.header.site_name}
{secondary_links}
{primary_links}
{_BLOCK_.header.blocks}
{_BLOCK_.header.message}
No default theme - It just displays the text ...
Any ideas ?

The problem is your version
The problem is your version of PHP. Currently, Drupal does not work w/version 5.1.
If you downgrade to 5.0, it should work.
Could try the phptemplate
Could try the phptemplate theme engine. xTemplate is the one with the most compatibility issue's.
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
phptemplate works
I run a test site with Apache 2.0.55, PHP 5.1.1 and MySQL 5.0.18. My site now works with Drupal 4.6.5 and the friendseletric theme, which is based on the phptemplate engine.
Thank you!
PHP5.0 worked
Thanks Oadae. Installing the PHP 5.0 worked like a charm.
Mahesh
http://www.maheshdixit.com
Quick solution - Handbook page
The quickest way to solve this problem can be found in the handbook page No theme, but code output on fresh install.
There's no immediate need to install a different php version or template engine.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
First Account?
The handbook entry doesn't say how to create the first account. I tried going to http://localhost/?q=user/register and entering a username and email address, but it brings me back to the same page with an extra {block}. Presumably the {block} is all that is visible of an error message. I don't have email set up, but 4.7 doesn't hassle me about the mail issue when registering the first account.
Give a 'valid' email address
If you give a username and a valid looking email address (e.g. nobody@localhost), drupal will display the password on-screen.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
You must think people are
complete idiots. No wounder this condition has apparently persisted for so long without being addressed. It doesn't display the password, and you make it obvious that even after a lengthy period of bug reports, no one has tested a new install w/ PHP5.1. The fixit instructions are all functional for upgrades only. If you haven't already created an account you are out of luck.
http://pctips.ustilago.org/drupal-download-php5 has a 4.6.6 install that is customized to work with php5.1. Drupal.org should have this, or something similar, on the 4.6.6 download page,
not at all
When Drupal 4.6. was released it tested fine. The PHP developers made changes in the 5.0.5+ lines that caused minor problems with the XTemplate engine. The release of PHP5.1 caused much bigger problems with the 4.6 series default XTemplate engine. The 4.6.x series is feature frozen. This means it will not have modules changed or added. Versioning freeze information is found inthe handbook here.
The system requirements page has a link to the solution http://drupal.org/node/270
And no, the 'fix it' instructions do work on a new installation. I have tested this several times myself.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
No Password
It doesn't display the password when registering the first account, so how do you login?
I click the logon button
I click the logon button then change the password.
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
You can't login to a newly
You can't login to a newly installed sight without registering first. The issue being discussed is a problem with registration.
Registration screenshots
http://pctips.ustilago.org/drupal-php5-register
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
I can and have registered
I can and have registered successully on the three php5 test systems I have setup to check this. I am aware of the distinction.
Thanks heine for doing the screen shots so I didn't have to. :)
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
Sorry
Sorry, I was sick with the flu this weekend. I really should not have my computer right next to my bed!
These things happen to all
These things happen to all of us at one time or another. :)
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
You must think people are
Excuse me? No I don't usually think people are complete idiots. I don't get your comment. FYI I started Junk {head} {styles} codes as output in the Troubleshooting FAQ and I've tested it on new installations as well. It apparantly works for many people.
I know, it's my site.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
I owe you an apology.
I owe you an apology. I was sick with the flu this weekend and it must have effected my judgement more than I realized.
I still think your custom installer should be on the drupal.org download page, next to the current 4.66 download.