Closed codepuncher closed 1 year ago
@codepuncher sorry about this. Would have come back to you sooner also, but this issue wasn't forwarded.
OK - I can't actually reproduce this using the tagged 6.0.3 files. Does it happen on widget submit?
Does it still happen for you if set this in composer.json:
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"php-http/discovery": false
}
}
The vendor folder as tagged should have everything required: http://plugins.svn.wordpress.org/dotmailer-sign-up-widget/tags/6.0.3/vendor/ but perhaps the discovery package is looking for other options because we've told it to do so.
No worries.
It is happening on submit of a form from a different plugin (Gravity Forms).
I have changed php-http/discovery
to false
but it has made no difference.
I should add that the WordPress site is Composer managed which may be related to the issue? Seems that we have Composer packages that use similar packages in our project root vendor.
How does it work then, you add our plugin from the WordPress repository then run composer install
? Did you re-run composer install
after setting "php-http/discovery": false
?
I'd appreciate any help you can give us here, we don't currently have a composer-installed local env to replicate on. Here's the diff between 6.0.3 and 6.0.2 (which presumably you were on before, and worked in this respect):
I've highlighted the specific changes we made to composer.json.
v6.0.3 of the plugin comes bundled with v2.0.0-RC1 of our SDK, diff here too:
Perhaps we also need to set "php-http/discovery": false
there as well.
One other thing to try:
"require": {
"php": "^7.4 || ^8.0",
"dotdigital/dotdigital-php": "2.0.0-RC1",
"guzzlehttp/psr7": "^2.5",
"guzzlehttp/guzzle": "^7.7",
"php-http/curl-client": "^2.3",
"php-http/message": "^1.16"
},
composer install --no-dev
in the plugin folderI've pushed up the above suggestions to a new branch: https://github.com/dotmailer/dotdigital-signup-form/tree/AM/216205-package-update
Perhaps you could try this out on your system at some point? Thanks
@codepuncher Hi again - we've released a new version with namespace scoping. See https://github.com/dotmailer/dotdigital-for-wordpress/commit/a87afef79518912bfeab29d3b50d2ee1b78ba348. A namespace clash could have been responsible for your issue, based on your June 27 comment.
Upgrading to https://github.com/dotmailer/dotdigital-signup-form/releases/tag/v6.0.3 causes fatal errors on sites using the plugin.
I am guessing that perhaps a package is missing from your
vendor
directory in the published ZIP for the release?Let me know if I can assist with tests.
Thanks