I was working on a Drupal website offline on my windows machine. It was running on XAMPP 1.6.6a for Windows with PHP 5.2.5.5, Apache 2.2.8 and MySQL 5.0.51a.

I migrated the drupal instance to the host (a Solaris Box with PHP 5.2.4, Apache 2.2 and MySQL 5.x).

I have enabled local .htaccess, mod_rewrite, etc.

PHPMyAdmin runs fine (so I know php/mysql is running fine).

On opening the drupal homepage (/index.php or even /), I get a 'White Screen of Death" - blank page with no output.

I checked apache error logs and they had the following output:

[Wed Jul 02 07:52:05 2008] [error] [client 66.249.67.231] PHP Notice:  Undefined property:  stdClass::$theme in /tanku/belwwwds/includes/theme.inc on line 45
[Wed Jul 02 07:52:05 2008] [error] [client 66.249.67.231] PHP Fatal error:  Call to undefined function node_get_types() in /tanku/belwwwds/includes/theme.inc on line 271
[Wed Jul 02 07:54:04 2008] [notice] caught SIGTERM, shutting down
[Wed Jul 02 07:54:12 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Jul 02 07:54:12 2008] [warn] module rewrite_module is already loaded, skipping
[Wed Jul 02 07:54:12 2008] [warn] module php5_module is already loaded, skipping
[Wed Jul 02 07:54:13 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 02 07:54:13 2008] [notice] Digest: done
[Wed Jul 02 07:54:13 2008] [notice] Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8a DAV/2 PHP/5.2.4 configured -- resuming normal operations
[Wed Jul 02 07:54:15 2008] [error] [client 192.18.43.225] PHP Notice:  Undefined property:  stdClass::$theme in /tanku/belwwwds/includes/theme.inc on line 45
[Wed Jul 02 07:54:15 2008] [error] [client 192.18.43.225] PHP Fatal error:  Call to undefined function node_get_types() in /tanku/belwwwds/includes/theme.inc on line 271
[Wed Jul 02 07:54:16 2008] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Wed Jul 02 07:54:22 2008] [error] [client 192.18.43.225] PHP Notice:  Undefined property:  stdClass::$theme in /tanku/belwwwds/includes/theme.inc on line 45
[Wed Jul 02 07:54:22 2008] [error] [client 192.18.43.225] PHP Fatal error:  Call to undefined function node_get_types() in /tanku/belwwwds/includes/theme.inc on line 271

I read up about 2 of the above errors here:
http://drupal.org/node/109459

and here:
http://drupal.org/node/173758

Both solutions don't to solve the problem.

I also have the "Secure Login" module installed, but that should be invoked only at login right?

Please help, it is very important to launch this website...

Comments

angad_singh’s picture

Alright I have got the server to show the errors on the page itself, this what it shows:


Notice: Undefined property: stdClass::$theme in /tanku/belwwwds/includes/theme.inc on line 46

Fatal error: Call to undefined function node_get_types() in /tanku/belwwwds/includes/theme.inc on line 272

These are exactly the errors are I searched (links in above post) in the first place.

Mainly the second error. It cannot find node_get_types function. Any idea why?

angad_singh’s picture

Found the problem!

It was a php.ini glitch:

The directory "." and the Drupal's basedir has to be added to php's incude_path by editing /etc/php5/5.2.4/php.ini:

include_path = ".:/usr/php5/5.2.4/include/php:/tanku/belwwwds"

It works fine on Windows even without the above configuration, but not on Solaris for some reason.