Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The currently used version is an unknown version that is not a official release from Google. It looks a bit like https://github.com/google/recaptcha/tree/1.0.0/php, but there are unknown difference.
Proposed resolution
Upgrade to latest version, see https://github.com/google/recaptcha/tree/1.1.1
Remaining tasks
- Find out why the used version is not the 1.0.0
- Upgrade to 1.1.1
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#1 | Issue-2472811-by-hass-Upgrade-lib-to-latest-version.patch | 66.54 KB | hass |
Comments
Comment #1
hass CreditAttribution: hass commentedDoes anyone has an idea why the files includes in the
.info
file do not allow me to use the class directly or with other words - how can I use the classes directly? I'd like to get rid of therequire_once()
.What is the best name for the
include
folder?This is the Google reCAPTCHA library v1.1.1 and this one require PHP 5.3.2 per composer.json.
Comment #3
diolan CreditAttribution: diolan commented@haas,
As far as I remember the initial version was 1.0.0. Then the source was changed to fix the issue with allow_url_fopen=0 in php.ini (https://www.drupal.org/node/2404083).
Comment #4
hass CreditAttribution: hass commentedThanks for this detail! Looks like the new library has not fixed this, too.
Comment #5
hass CreditAttribution: hass commentedLooks like there is an open issue about this already https://github.com/google/recaptcha/pull/39 . We could commit the code as is and wait for the feature or hack the lib. I tend to wait and also add a hook_requirements() that checks if everything is available we need.
Comment #6
hass CreditAttribution: hass commented