Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have this error when activating the module :
Parse error: syntax error, unexpected '=', expecting ')' in /path/modules/private_upload/private_upload.module on line 86
Comment | File | Size | Author |
---|---|---|---|
#2 | private_upload.module.patch | 558 bytes | Marc Angles |
Comments
Comment #1
starbow CreditAttribution: starbow commentedI suspect that means that you are using PHP4, and that line is PHP5 only.
The line in question is:
function private_upload_requirements($phase, &$status=array()) {
Comment #2
Marc Angles CreditAttribution: Marc Angles commentedok,
anarcat (http://drupal.org/user/1274) helped me and now I have a little patch to use this module with php4
anyways thanks for the good job
Comment #3
starbow CreditAttribution: starbow commentedHmm, this issue with that patch is that it won't return the status array, which means you won't see the results. Let me know if this works for you:
function private_upload_requirements($phase, &$status = NULL) {
Comment #4
starbow CreditAttribution: starbow commentedOk, looks like PHP4 and PHP5.2.4 don't like setting references to default values. I have changed it to:
function private_upload_requirements($phase, &$status) {
which throws a couple warnings, but should work correctly on all php versions.
Comment #5
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.