i have two sites, one is drupal 6 (open-atrium/slave) and the other drupal 7 (master), both have bakery install and are working fine when in the http protocol. but when i turn on https/ssl it stops working. and i get these errors messages on the master site.

- access denied on /bakery/login
- Warning: Cannot modify header information - headers already sent by (output started at /var/aegir/platforms/ssl-d7/includes/common.inc:2699) in drupal_send_headers() (line 1221 of /var/aegir/platforms/ssl-d7/includes/bootstrap.inc).
- Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/aegir/platforms/ssl-d7/includes/common.inc:2699) in drupal_session_start() (line 287 of /var/aegir/platforms/ssl-d7/includes/session.inc).
- Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/aegir/platforms/ssl-d7/includes/common.inc:2699) in drupal_session_start() (line 287 of /var/aegir/platforms/ssl-d7/includes/session.inc).

i really have no idea where to look to try to fix this problem.

i created two vanilla site with only bakery install and the same problem arrise.

thx

Martin

Comments

ouelmart’s picture

Version: 6.x-2.0-alpha4 » 7.x-2.0-alpha4
ouelmart’s picture

found the problem. my D6 site didnt have the 'session.cookie_secure' variable set to true

to do so, in my setup with aegir, i had to add a local.settings.php file in /var/aegir/platforms//sites/

<?php
  ini_set('session.cookie_secure', isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on');

if your server is https the value of the variable is set to true and you should be able to make bakery work with a drupal7 master site and a drupal 6 slave site

this is unnecesary if both sites are of the same drupal version and untested for a D6 master and D7 slave

ouelmart’s picture

Status: Active » Needs review