After installing Project 4.7.0 on Drupal 4.7.2, every time I hit project page I see this error:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). 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. However, future versions may not support this any longer. in /home/.dowdiddie/[...]/drupal/modules/project/project.module on line 520
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). 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. However, future versions may not support this any longer. in /home/.dowdiddie/[...]/drupal/modules/project/project.module on line 523
I think its about incompatibility with PHP5.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | project_php5_stray_ampersand.patch | 813 bytes | dww |
Comments
Comment #1
Nick Wilson commentedI tried this in php.ini
but it does not solve the problem, where it clearly should do right?
Comment #2
Nick Wilson commentedadded, also tried that as 'On' instead of 'true' of course.
Comment #3
nicholasthompsonIn the .htaccess file in your drupal folder, I added this line:
php_value allow_call_time_pass_reference 1to all 3 PHP IfModule sections (just under php_value session.auto_start)
Problem solved :-)
Comment #4
dandaka commentedI've tried to edit .htaccess like this:
Also I've tried to do so with sites/default/settings.php
ini_set('allow_call_time_pass_reference', 1);Negative result for me. Am I wrong somewhere?
Comment #5
eafarris commentedFrom the looks of things (I haven't tested this, mind you), you should be able to simply remove the ampersands from those lines.
Line 520 should look like:
and line 523 should look like:
Note the missing ampersand from "$node" in both of them. I can roll a patch if need be, but that should do it. The function definitions for both project_project_nodeapi (in project.inc) and project_issue_nodeapi (in issue.inc) expect $node to be passed by reference, so the ampersands in project.module lines 520 and 523 are superfluous.
Comment #6
dwwyup. just tested this on a php5 site, and those stray '&'s are the problem. sorry about that.
here's a patch to fix it. however, i'm not going to commit immediately, since i'm in the middle of a major code re-organization in http://drupal.org/node/74995. once that's done, i'll just commit this fix. only posting the patch so it's easy for php5 users to patch their system in the meantime. sorry for the delay.
Comment #7
dandaka commentedthanks, worked for me
Comment #8
dwwcommitted to HEAD, DRUPAL-4-7 and DRUPAL-4-6. note: 1/2 of the code in this patch now lives in modules/project_issue/project_issue.module. i had already applied the fixes there.
Comment #9
(not verified) commented