I've upgraded from Drupal 5 to 6. The site is working smoothly with Garland themes. But, if I switch to my custom themes, it only displays blank screens everywhere (no errors, no html).
I'm not sure it's because of my themes registry.
I created new file (page-login.tpl.php). So, I added the following code in template.php.

function mythemename_theme($existing, $type, $theme, $path){
return array(
'user_login' => array(
'template' => 'page-login',
'arguments' => array('form' => NULL),
),
);
}

I'm not sure I'm doing right. Can anyone help me please?

Comments

vm’s picture

Did you upgrade your custom theme from Drupal 5 to Drupal 6?

Drupal 5.x themes won't work with Drupal 6.x

peti2006@googlemail.com’s picture

Yes, I have read converting themes post. (http://drupal.org/node/132442)

I did
1. new .info file and create regions in it
2. change the variables ($sidebar_left --> $left) ($sidebar_right --> $right) in page.tpl.php
3. Create function (mytheme_theme) in template.php for custom page-login.tpl.php

But, theme('page', $return) doesn't output anything.
Do I still miss something?

peti2006@googlemail.com’s picture

I got the solution now.
This post (http://community.contractwebdevelopment.com/drupal-blank-screen-after-su...) helped me.

It is working fine now and I don't see Blank Screens anymore after I remove old functions of drupal 5 in template.php