Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In PHP 7.2, errors are produced on install or verify of a Drupal 6.45 site because the generated settings.php contains the following line:
ini_set('session.save_handler', 'user');
Commenting that line out of Provision/Config/Drupal/provision_drupal_settings_6.tpl.php and re-verifying solves it.
That's not the only issue with getting D6 running on PHP 7.2, but this is a simple step in the right direction.
Comment | File | Size | Author |
---|---|---|---|
#3 | provision-d6-php7.2.patch | 636 bytes | pkiddle |
Comments
Comment #2
izmeez CreditAttribution: izmeez commentedThe same issue is reported in a Symphony issue, https://github.com/symphonycms/symphony-2/issues/2783
In the discussion there, simply removing the line works in php 7.2 and also in php 5.6
Comment #3
pkiddle CreditAttribution: pkiddle commentedRemoving this line is the correct solution, as it actually has no effect in php5 anyway (as noted in the PHP changelog), and has been simply removed from the default settings template in the d6 lts project.
Comment #4
izmeez CreditAttribution: izmeez commentedMarking as RTBC.
Comment #6
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commentedThanks, committed.
Comment #9
Goldi_Kumar CreditAttribution: Goldi_Kumar commentedHi
I got the issue Fatal error: Uncaught Error: Call to undefined function cache_get() settings.php file I do it changes but the issue is not resolved can you please help us me