I'm attempting to download the latest stable 7.x release of the GatherContent module to try it out and have received the following errors when trying to install (via the admin UI):
Parse error: syntax error, unexpected T_BOOLEAN_OR, expecting ')' in .../sites/all/modules/gathercontent/includes/Account.inc on line 39
I tried removing || $api_key
to see if that'd resolve it, but got a new error:
Parse error: syntax error, unexpected T_BOOLEAN_OR, expecting ')' in .../sites/all/modules/gathercontent/includes/Template.inc on line 32
I made the same change there and tried again, only to get another new error:
Parse error: syntax error, unexpected '[' in .../sites/all/modules/gathercontent/gathercontent.module on line 632
Any ideas as to how I can get the module installed would be appreciated! Looking forward to trying it out on upcoming Drupal projects.
Comments
Comment #2
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedHi, thanks for reporting. Can you please specify version of PHP you are using?
Comment #3
KurtTrowbridgeHello - it's 5.3.29.
Comment #4
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedI’m afraid we don’t support that version of PHP. Its official support ended 2 years ago (http://php.net/eol.php). So the backward support would be a feature request rather than a bug. If it does get requested a lot we will consider supporting it in the future. Is there any reason why you are using this version of php?
Comment #5
KurtTrowbridge...Good question. :) I guess that was set as default, but I upgraded to 5.5.38 and got it to install. Also reverted the module files back to how they were at first, and installed Composer and verified that's all working, but I get this error on the /admin/config/gathercontent/mapping page:
cURL error 6: Could not resolve host: http (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Any idea what might be causing that, or if there's a setting I need to adjust? Not sure if it's an issue specific to this module or something more broad (e.g. Composer Manager), so apologies if it's nothing on your end.
Comment #6
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedYou need first authenticate yourself. Go to /admin/config/gathercontent/config and select credentials and project you want to use. You can test your connection on /admin/config/gathercontent/config/test.
Comment #7
KurtTrowbridgeI tried that first and got an error: "User with provided credentials wasn't found." Checking my recent log messages shows that same cURL error 6 on the config page. (I did confirm that my email and API key were correct.)
Comment #8
KurtTrowbridgeComment #9
minorOffense CreditAttribution: minorOffense at Coldfront Labs Inc. commentedIf that's the case then you should specify the PHP version in the .info file to avoid Drupal sites from partially installing the module and potentially breaking their sites.
See https://www.drupal.org/docs/7/creating-custom-modules/writing-module-inf...