I upgraded my PHP from 5.0.5(?) to 5.1.1, and now I can't view pages or log in to the site. The site shows:

{head} {styles}
{_BLOCK_.header.site_name} 	
{secondary_links}
{primary_links}
{_BLOCK_.header.blocks}
{_BLOCK_.header.mission}
{_BLOCK_.node.title} {submitted} {_BLOCK_.node.taxonomy}
{content}
{_BLOCK_.node.links}

...and so on. Apache's error_log shows these every time I load the main page:

[Sun Jan 08 00:38:13 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  module in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 86
[Sun Jan 08 00:38:13 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  module in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 335
[Sun Jan 08 00:38:13 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  filter in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 93
[Sun Jan 08 00:38:13 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  system in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 335
[Sun Jan 08 00:38:13 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  system in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 93
[Sun Jan 08 00:38:13 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  trackback in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 335
[Sun Jan 08 00:38:14 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  user in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 335
[Sun Jan 08 00:38:14 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  user in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 93
[Sun Jan 08 00:38:14 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  watchdog in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 335
[Sun Jan 08 00:38:14 2006] [error] [client 194.204.124.4] PHP Notice:  Undefined index:  watchdog in /usr/pkg/share/httpd/drupal/includes/bootstrap.inc on line 93

I'm running apache-2.0.55, php-5.1.1, and drupal-4.6.5.

I've read on this site that I should try disabling cache and friendly URLs. How can I do that if I can't log in to the site? Is there a way to make that change in the DB? Is there anything else I should try?

Comments

Zen’s picture

I'm not sure about the errors, but check this for directions on disabling stuff..

hth
-K

chrisj74’s picture

Thanks for the hint! I had to do all of the following:

  • Turn off the cache.
  • Turn off clean URLs.
  • Set the theme to 'chameleon'.

Once all that was done, I was able to log in and make changes myself. I made configuration changes to match the above, then reset my settings.php to what it was before. Then I was able to turn the clean URLs back on and they worked fine.

heine’s picture

From system requirements:

Also, xTemplate (default theme engine for 4.6.x and previous) based themes are reported to have issue's with php5.0.5 and 5.1. Switching to phpTemplate (default in 4.7) engine seems to work around this issue.

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.