- Issue created by @kelvinwong
- Status changed to Needs review
over 1 year ago 6:12am 19 September 2023 - π¦πΊAustralia kelvinwong
Patch provided to lock psr/http-message to version v1.1.
- Status changed to RTBC
over 1 year ago 7:21pm 19 September 2023 - πΊπΈUnited States danflanagan8 St. Louis, US
I ran into this same thing trying to edit an existing handler. Exactly the same modules version as in the IS.
I added required
psr/http-message:^1.1
in my project and that has fixed the bug. It would be great to see this patch committed. Thanks! - Assigned to Kostiantyn
- Status changed to Needs work
about 2 months ago 9:02pm 2 January 2025 - πΊπ¦Ukraine Kostiantyn
We just need to update the dependencies in the module's composer file to a newer version of the library, as they fixed it.
https://github.com/HubSpot/hubspot-php/pull/420 - π«π·France chauvirea Cholet
Hi,
I'm new to Drupal (1 year's experience).
I have a site factory with Drupal 10.2.6.
I have installed version 3.0.0 Alpha 4 of the module.
Do I just need to install this patch https://www.drupal.org/files/issues/2025-01-02/updated-hubspot-php-libra... β ?
Best regards - π¬π§United Kingdom thetwentyseven
After I install the module with composer
composer require 'drupal/hubspot:^3.0@alpha'
and I add patch number #5, I do still have version ofhubspot/hubspot-php 3.2.1
and not 5.3 - πΊπΈUnited States SocialNicheGuru
Can place this in your composer.json:
"hubspot/hubspot-php": "5.3 as 3.2", - πΊπ¦Ukraine Kostiantyn
@chauvirea and @thetwentyseven after applying the patch, it will not take effect locally (it is only for the module developer to make changes more easily and quickly).
The patch does not work because when installing dependencies, Composer does not look at the local composer.json file inside the module folder but rather at the one in the remote repository. Therefore, any changes you make to the file:/web/modules/contrib/hubspot/composer.json
will not be applied.
You can manually modify composer.lock in your project and change the version of the hubspot-php library (e.g., "hubspot-php": "^5.3") by replacing it with a different version. However, this is a poor solution and should only be done by those who fully understand the implications.