[support] Drupal 5-13 - warning: Wrong parameter count for session_set_cookie_params() in session.inc on line 102.

Maurice Mengel mauricemengel at gmail.com
Thu Dec 11 13:55:30 UTC 2008


I get the warning to
warning: Wrong parameter count for session_set_cookie_params() in
/home/mauricemengel-de/htdocs/includes/session.inc on line 103.

I have that, too with in Drupal 6.7  Apache/1.3.39 (Unix)
mod_gzip/1.3.19.1a PHP/4.4.8.

PHP says that this features was added in version 5.2.0 (see
http://de.php.net/session_set_cookie_params)

includes/session.inc does use it and the Drupal 6.7 release notes says
that's a feature and not a bug, see http://drupal.org/node/345462

I guess I will change the line in session.inc until my provider upgrades php...

best
Maurice



On Thu, Dec 11, 2008 at 1:04 PM, Genevieve Romier
<genevieve.romier at urec.cnrs.fr> wrote:
> Hi,
>
> Thanks a lot!
> I use php 5.1.2. It is not the last version. That could be the reason.
>
> Geneviève Romier
>
> Marijn Kruisselbrink wrote:
>>
>> It seems the latest drupal 6.7/5.13 releases (probably unintentionally)
>> introduced a dependency on php5, by calling a function with an extra
>> parameter that did not exist in earlier versions of php.
>>
>> Marijn
>>
>> On Thursday 11 December 2008 12:40:06 Genevieve Romier wrote:
>>>
>>> Hello all,
>>>
>>> I've just installed the last 5.13 Drupal core version on my test
>>> platform and I get a similar message at each connexion for each user I
>>> can login for.
>>>
>>> It is probably similar as the Gavin Henry described in his email
>>>
>>> The message is "warning: Wrong parameter count for
>>> session_set_cookie_params() in /..../drupal/includes/session.inc on line
>>> 102."
>>>
>>> That seems to be the only bad thing I get.
>>>
>>> I currently wonder if it is careful to deploy it on my production site
>>> without understanding this issue. I used the UPGRADE.txt document to
>>> upgrade my site.
>>>
>>> I would be interested to know if other people got the same problem.
>>>
>>> Thanks for your help,
>>>
>>> Geneviève Romier
>>> www.projet-plume.org
>>>
>>> Gavin Henry wrote:
>>>>
>>>> Hi All,
>>>>
>>>> We've just installed Drupal 6.7 for our new site with php 4.4 and
>>>> MySQL 5 and sessions don't work.
>>>>
>>>> We were on postgres 7.4 and sessions worked, switching to MySQL (can't
>>>> go back) and sessions broke.
>>>>
>>>> What info can we provide?
>>>>
>>>> mysql -v
>>>> mysql  Ver 14.12 Distrib 5.0.70, for pc-linux-gnu (i686) using readline
>>>> 5.2
>>>>
>>>>  php -v
>>>> PHP 4.4.8-pl0-gentoo with Suhosin-Patch 0.9.6 (cli) (built: Aug  9
>>>> 2008 09:12:56)
>>>> Copyright (c) 1997-2008 The PHP Group
>>>> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
>>>>    with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend
>>>> Technologies with Suhosin v0.9.18, Copyright (c) 2002-2006, by
>>>> Hardened-PHP Project
>>>>
>>>> Thanks.
>>
>>
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list