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?

CommentFileSizeAuthor
#1 usernode_no_reference_default_values.patch671 bytesjpetso

Comments

jpetso’s picture

StatusFileSize
new671 bytes

Looks 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.

fago’s picture

Status: Active » Fixed

hm, I had already fixed that, but it seems that it get lost. so fixed again, thanks.

mikemet’s picture

Thanks 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

jpetso’s picture

1. 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.

mikemet’s picture

Thanks. Install now works.

Anonymous’s picture

Status: Fixed » Closed (fixed)