Skip navigation.
Home
A place for random things I am learning

Problems with Drupal and PHP5

|

While adding Google Analytics to the site, I started to experience a strange problem where Drupal kept losing my sessions. I could login to Drupal but, as soon as I would click on anything, Drupal would lose my session and ask me to login again. The removal of the Google Analytics javascript tag did not resolve the problem.

I started to panic. I am not technical enough to "recover" this website without help if Drupal collapses completely.

Fortunately, this article put me on a trail which allowed me to resolve the problem. Apparently, Drupal 4.7 and PHP5 don't get along. My ISP provides a simple radio button interface to select which version of PHP you would like to run and I mindlessly upgraded from PHP4 to PHP5 a couple of weeks ago. I "downgraded" back to PHP4 and my session problem disappeared.