Hello,

I just installed ecard-6.x-1.1 and when I activate the module, I get this message at the top of all my pages:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of validate_emails(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/.westberry/scain/scottcain.net/modules/ecard/ecard.module on line 307

Where line 307 is this:

$emails=validate_emails($form_id,&$form_state);

I tried adding this line to my .htaccess file:

php_value allow_call_time_pass_reference  1

but it doesn't appear to due any good. My site is hosted at Dreamhost and I have php 5. Any suggestions?

Thanks,
Scott

Comments

scain’s picture

Status: Active » Fixed

This is actually a problem with the way Dreamhost works--the .htaccess file is ignored(!), so you need to do some funny stuff with a custom php.ini file. It is described on the Dreamhost wiki: http://wiki.dreamhost.com/PHP.ini and modifying the php.ini file to change allow_call_time_pass_reference to 1 in it.

Scott

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

rootwork’s picture

Category: support » bug
Priority: Normal » Critical
Status: Closed (fixed) » Active

I wouldn't describe this as a problem with the server. If I understand what's happening correctly, the module is using a PHP-depreciated function. The solution isn't "modify your server settings" (though that's one workaround for now), it's to change the module so that it operates using current PHP functions.

For the module developer, you can consider it a feature request rather than a bug if you like, but I think this is pretty critical to high uptake of this module. On a purely practical level, if you're going to tell everyone who hosts on DreamHost (lots of people) that the first step to enable this module is "modify your server settings" then I don't think it's going to get very widespread use...

kars-t’s picture

Assigned: Unassigned » kars-t

Yes this seems to be deprecated. I try to fix it with the next D6 release. Please be patiant a little longer :)

rootwork’s picture

Thanks Kars-T. I see there's a slightly more recent dev version; has it been fixed in that one? If not please let us know when the dev version fixes this -- I'd be willing to start using a dev version with a fix, even if it's otherwise rough around the edges.

kars-t’s picture

Hi its not in the current dev but I am at it. A quick fix would be

//$emails=validate_emails($form_id,&$form_state);
$emails=validate_emails($form_id, $form_state);

But I think I will have a new dev in the next hours.

kars-t’s picture

Status: Active » Fixed

Latest dev fixes this. Please test it.

Status: Fixed » Closed (fixed)

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