Tried installing usernode and get error
Parse error: syntax error, unexpected '=', expecting ')' in /data/12/1/160/69/1160558/user/1233314/htdocs/CMYskills/modules/usernode/usernode.module on line 400
Is there a chance that this has corrupted anything?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | usernode_no_reference_default_values.patch | 671 bytes | jpetso |
Comments
Comment #1
jpetso commentedLooks like PHP 4 (which you are using, I suppose) doesn't do default values for references...
I didn't know that, sorry. Here's the patch to fix it.
Comment #2
fagohm, I had already fixed that, but it seems that it get lost. so fixed again, thanks.
Comment #3
mikemet commentedThanks for the quick response. Two follow-up questions:
1. As far as I can tell, to apply the patch I need to execute the command patch -p0 < path/file.patch on the server. What do I do if I only have FTP access to my server?
2. Is PHP 4 going to present me with more problems in the future? I have little control over the version provided to me.
Thanks
Comment #4
jpetso commented1. As fago has already put it into CVS, you can just get the latest version from there, here is the link to the latest usernode.module version. Download that one and replace the file on your server with it.
2. Drupal also runs on PHP 4, and any problems introduced will be fixed very quickly. Such problems shouldn't occur often, especially if you are using released versions of those modules (as opposed to the CVS versions). Granted, Usernode does not yet have a released 5.0 version yet.
Comment #5
mikemet commentedThanks. Install now works.
Comment #6
(not verified) commented