Warning: Call-time pass-by-reference has been deprecated in /home/cyberfan/htdocs/sites/all/modules/captcha/captcha.install on line 306

on update... any ideas?

Comments

AntiNSA’s picture

also get this when trying to update

warning: Cannot modify header information - headers already sent by (output started at /home/cyberfan/htdocs/sites/all/modules/captcha/captcha.install:306) in /home/cyberfan/htdocs/includes/common.inc on line 148.

soxofaan’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Category: bug » task
Priority: Critical » Normal
Status: Active » Patch (to be ported)

This one should fix this: http://drupal.org/cvs?commit=387570

Did the update succeed apart from the error message?

to be ported to Drupal 7 version

travisnapoleansmith’s picture

Version: 7.x-1.x-dev » 6.x-2.2
Category: task » bug
Priority: Normal » Critical

This should be fixed and released as a RTM immediately. I updated the software because of a security issue and it has caused my site to not work. ALL MODULES should be testing in both PHP 4 and 5. This release should not have been released because it totally does not work on any system using PHP 5. When someone downloads this module for any Drupal site using PHP 5 it will not work because of this. With this message a user cannot uninstall it and is not good development practice.

Please make sure to test in both PHP 4 and 5 before an RTM. This should not have been in the RTM of this module!

travisnapoleansmith’s picture

It was in the captcha.install file and was on line 306. Removed the reference symbol on the function call db_add_column.

travisnapoleansmith’s picture

Version: 6.x-2.2 » 6.x-2.3-rc1

Just updated version to 6.x-2.3-rc1

soxofaan’s picture

Version: 6.x-2.3-rc1 » 7.x-1.x-dev
Category: bug » task
Priority: Critical » Normal

Please don't over-exaggerate: the bug is only in the upgrade path to CAPTCHA 6.x-2.3-RC1, so a non-upgrade install does not suffer from it. The release description of 6.x-2.3-RC1 also clearly states that and why it lacked broad testing, and that it should not be used blindly on production sites.

Anyway, the fix is now included in the freshly released CAPTCHA 6.x-2.3-rc2.

Still to be ported to D7, when #810534: Fix CAPTCHA session reuse is ported.

soxofaan’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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