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.

CommentFileSizeAuthor
#3 provision-d6-php7.2.patch636 bytespkiddle
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

millenniumtree created an issue. See original summary.

izmeez’s picture

The 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

pkiddle’s picture

FileSize
636 bytes

Removing 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.

izmeez’s picture

Status: Active » Reviewed & tested by the community

Marking as RTBC.

  • helmo committed 31a3509 on 7.x-3.x authored by pkiddle
    Issue #3006336 by pkiddle, izmeez, millenniumtree: ini_set() block in D6...
helmo’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

  • helmo committed 31a3509 on 7.x-4.x authored by pkiddle
    Issue #3006336 by pkiddle, izmeez, millenniumtree: ini_set() block in D6...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Goldi_Kumar’s picture

Hi
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