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

KurtTrowbridge created an issue. See original summary.

mirom’s picture

Hi, thanks for reporting. Can you please specify version of PHP you are using?

KurtTrowbridge’s picture

Hello - it's 5.3.29.

mirom’s picture

Status: Active » Closed (won't fix)

I’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?

KurtTrowbridge’s picture

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

mirom’s picture

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

KurtTrowbridge’s picture

I 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.)

KurtTrowbridge’s picture

Status: Closed (won't fix) » Active
minorOffense’s picture

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