When using php 5.3.x, the following warning appears on top of drupal pages:

warning: Parameter 2 to securepages_link_alter() expected to be a reference, value given in /home/alfredo/Public/alfredo.pironti.eu/research/includes/common.inc on line 2839.

This is potentially a security issue too, because it shows the full-path of the drupal installation; this is why I am marking the bug as critical.

Please note that drupal 6 is php5.3 compatible, so it is expected that many users are encountering this problem.

Any workaround while this issue gets solved? (So that the warning doesn't show up to users anymore)

CommentFileSizeAuthor
#1 securepages.module.patch443 bytesalfredo.pironti

Comments

alfredo.pironti’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new443 bytes

Indeed, the following patch fixes the issue.

Simply remove the & from the second parameter. Btw, the $node argument is never used, so this should not affect functionality in any way.

gordon’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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

SnakePick-1’s picture

Hi, I am getting this problem also with two warnings as follows: "warning: Parameter 2 to securepages_link_alter() expected to be a reference, value given in /home/snake185/public_html/includes/common.inc on line 2784." except I can't find any of the text on this line. I can't find the "&$node" anywhere in that file. Can you help me?