On Pantheon, developing a site running the latest CiviCRM Starterkit.

Using only point-and-click options, have built a Contribution page with Paypal as the payment processor.
Completing a payment, the transaction goes through to Paypal which processes the payment, but no completion notice is returned back to Civi, nor is the Activity registered in Civi.

Attempted to do the same thing using the contribution widget, with the same result.

In the Pantheon control panel, it shows this error:

Php error: session_start(): Failed to initialize storage module: user (path: )
Location: profiles/civicrm_starterkit/modules/civicrm/extern/ipn.php:34

The instances of this error keep incrementing, more than the number of attempts.

So, records of contributions are lost until this is corrected. We won't be able to progress in completing the site and going live until this is working. All recommendations welcome!

CommentFileSizeAuthor
#2 2177647-sessions-fix.patch1.52 KBkreynen
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kreynen’s picture

Status: Active » Needs work

This is the same issue as #1978796: Pantheon Requires session.save_handler set to files. Because of the way Pantheon works, it requires sessions be saved as a file that can be used by any "server" processing the PHP. This is an easy fix. Just add ini_set('session.save_handler', 'files'); before session_start(); so it looks like...

ini_set('session.save_handler', 'files'); 
session_start();

Moving to 'needs work' until someone has a chance to check all instances of session_start();

kreynen’s picture

Status: Needs work » Needs review
FileSize
1.52 KB

This patch fixes the Pantheon session is in all the scripts in the extern directory

Diane Bryan’s picture

Did this get integrated into the starterkit yet? I think we've had an update since you did this, Kevin. We're really struggling with Webform / civi / civicontribute / Paypal

sonicthoughts’s picture

FYI - this is a cross post on a related issue:
I know there is a civicrm distro for pantheon but trying to install on an existing site i get the following error:
Warning: session_start(): user session functions not defined in /srv/bindings/df564905506047d9be9bdd2fd2547036/code/sites/all/modules/civicrm/install/index.php on line 33 Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /srv/bindings/df564905506047d9be9bdd2fd2547036/code/sites/all/modules/civicrm/install/index.php on line 33

Tried both 4.4.7 and 4.5

Pantheon sent a response:
Hi there,

The install profiles for custom distributions aren't 100% reliable.

I tested and also ran into an error.

Unfortunately, we are not able to provide support for broke distributions. We support and maintain the platform, freeing you up to focus on the site. We have documented this in our helpdesk article, Pantheon 101:

http://helpdesk.getpantheon.com/customer/portal/articles/717236-pantheon...

For issues with distributions, we recommend contacting the distribution maintainer directly and filing a report:

https://issues.civicrm.org/jira/secure/Dashboard.jspa
Let me know if you have any further questions.

Thanks,
Ricky

kreynen’s picture

@sonicthoughts you are running civicrm in sites/all so this is not an issue with the distribution, but changes you have made. This queue is for the distribution where civicrm is found in profile/civicrm_starterkit/modules.

kreynen’s picture

Version: 7.x-4.4-rc8 » 7.x-4.x-dev
Status: Needs review » Fixed

This fix has been in the last several releases of both the CiviCRM and Community Media Starter Kits.

Status: Fixed » Closed (fixed)

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