From 2af2cd6061d418a37926b0f04d11d5a85813bef1 Mon Sep 17 00:00:00 2001 From: kreynen Date: Sat, 12 Sep 2015 22:38:37 +1200 Subject: [PATCH] CRM-17212: Pantheon: php error: session_start(): Failed to initialize storage module --- extern/authorizeIPN.php | 1 + extern/googleNotify.php | 3 +++ extern/ipn.php | 3 +++ extern/pxIPN.php | 4 +++- extern/rest.php | 3 +++ extern/soap.php | 3 +++ 6 files changed, 16 insertions(+), 1 deletion(-) diff --git a/extern/authorizeIPN.php b/extern/authorizeIPN.php index 35547f18a5..84765452a4 100644 --- a/extern/authorizeIPN.php +++ b/extern/authorizeIPN.php @@ -31,6 +31,7 @@ * $Id$ */ +ini_set('session.save_handler', 'files'); session_start(); require_once '../civicrm.config.php'; diff --git a/extern/googleNotify.php b/extern/googleNotify.php index 0916e53989..95d4acd969 100644 --- a/extern/googleNotify.php +++ b/extern/googleNotify.php @@ -31,6 +31,9 @@ * $Id$ */ +if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) { + ini_set('session.save_handler', 'files'); +} session_start(); require_once '../civicrm.config.php'; diff --git a/extern/ipn.php b/extern/ipn.php index 619c688a46..a7f56d10b1 100644 --- a/extern/ipn.php +++ b/extern/ipn.php @@ -31,6 +31,9 @@ * $Id$ */ +if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) { + ini_set('session.save_handler', 'files'); +} session_start(); require_once '../civicrm.config.php'; diff --git a/extern/pxIPN.php b/extern/pxIPN.php index edf1283774..e1d6f063be 100644 --- a/extern/pxIPN.php +++ b/extern/pxIPN.php @@ -10,7 +10,9 @@ * in creating this payment processor module */ - +if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) { + ini_set('session.save_handler', 'files'); +} session_start(); require_once '../civicrm.config.php'; diff --git a/extern/rest.php b/extern/rest.php index 6f9303c3cd..b944dba5bc 100644 --- a/extern/rest.php +++ b/extern/rest.php @@ -28,6 +28,9 @@ require_once '../civicrm.config.php'; $config = CRM_Core_Config::singleton(); +if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) { + ini_set('session.save_handler', 'files'); +} session_start(); $rest = new CRM_Utils_REST(); diff --git a/extern/soap.php b/extern/soap.php index 48627a2c25..f50939a906 100644 --- a/extern/soap.php +++ b/extern/soap.php @@ -33,6 +33,9 @@ if (phpversion() == "5.2.2" && $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input'); } +if (!empty($_SERVER['PRESSFLOW_SETTINGS'])) { + ini_set('session.save_handler', 'files'); +} session_start(); require_once '../civicrm.config.php'; -- 2.25.1