After updating to 4.7.5, my update.php was no longer accessible; I get an empty document (tested Firefox and IE). Even turning on error and warning reporting in update.php failed.
Some other pages also resulted in an empty document:
* every page, when the site is 'offline' (except for privileged users)
* search form results
* node submit pages (but not node preview page), even though nodes did get submitted
* filtered admin/log pages (but not the main, unfiltered log page)
* admin/modules after the page was submitted
Basically, most pages which POST information, but not all (eg node previews), and some more (eg update.php).
Manually updating the database according to the updates in updates.inc did not fix the problem, but rolling back to 4.7.4 did.
In a bizarre twist, the site has a multisite configuration. Another site, hosted using the same codebase, seemed to work fine with 4.7.5
Comments
Comment #1
ahoeben commentedSite is hosted on Linux, Apache and PHP 4.4.2
Comment #2
ahoeben commentedSince no error/warning is logged, I deduced the culprit by updating the changed files one by one.
It turns out session.inc in 4.7.5 was causing the problem. Specifically, 1.27.2.1 introduced a call to
register_shutdown_function('session_write_close');Removing that line fixed my problems. See #93945, Session handler executed after $user object is destructed, backport from HEAD
I still have no idea why this broke my 'default' site, but not a multi-site hosted site on the same codebase. I will see if I can reproduce this on some of my other sites.
Comment #3
ahoeben commentedAfter updating a number of other sites with 4.7.5, this seems to be an isolated case.
Comment #4
pasqualleThis version is not supported. Reopen or create a new issue if the problem exist in any recent version (version equal or above Drupal 5)
Comment #5
ahoeben commentedThe problem eventually went away. Thanks for the housekeeping.