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 |
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 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 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 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 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) commentedAutomatically closed -- issue fixed for two weeks with no activity.