- 🇨🇦Canada dtarc
The patch in #2 works for Drupal 10 compatibility. Please see Upgrade Status screenshot.
Please commit.
- 🇬🇧United Kingdom Alina Basarabeanu
Verified the #3 patch on 9.5.8 for Drupal compatibility. Added screenshots for reference, RTBC++
- Status changed to RTBC
over 1 year ago 12:54pm 26 July 2023 - First commit to issue fork.
- @validoll opened merge request.
- 🇬🇪Georgia iamdroid
Hi folks,
Here is a re-roll of #9 against the latest dev.
Thanks.
- 🇫🇮Finland Nchase
The patch in #10 doesn't work for me
AH01071: Got error 'PHP message: PHP Fatal error: Declaration of Drupal\\bat_api\\StackMiddleware\\BatApiMiddleware::handle(Symfony\\Component\\HttpFoundation\\Request $request, int $type = self::MAIN_REQUEST, bool $catch = true): Symfony\\Component\\HttpFoundation\\Response must be compatible with Symfony\\Component\\HttpKernel\\HttpKernelInterface::handle(Symfony\\Component\\HttpFoundation\\Request $request, $type = self::MASTER_REQUEST, $catch = true) in /web/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php on line 38', referer: https://lm.facebook.com/
- 🇫🇮Finland jwwj
I get the same error as Nchase when applying patch from #10 against the release version, however that patch did state that it was a re-roll against the dev branch. I guess there is a difference between the dev version and the latest release (1.6) on that part. Applying the rector patch in this issue against the release branch worked for me (or at least everything is green now in upgrade status).
- 🇬🇪Georgia iamdroid
Hi @Nchase, @jwwj are you already on Drupal 10?
The error looks like an incompatibility with Symfony from Drupal 9.x.You can use the patch from #2 to prepare the codebase for the Drupal 10 upgrade. After the upgrade, the patch from #10 can be applied.
- 🇫🇮Finland Nchase
@iamdroid: thanks. That's it. I jumped to #10 without applying #2.
- 🇨🇳China lawxen
3.1.0-alpha2 didn't work on Drupal9 when running
drush updb
Fatal error: Declaration of Drupal\bat_api\StackMiddleware\BatApiMiddleware::handle(Symfony\Component\HttpFoundation\Request $request, int $type = self::MAIN_REQUEST, bool $c atch = true): Symfony\Component\HttpFoundation\Response must be compatible with Symfony\Component\HttpKernel\HttpKernelInterface::handle(Symfony\Component\HttpFoundation\Requ est $request, $type = self::MASTER_REQUEST, $catch = true) in /var/www/html/docroot/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php on line 34
- Status changed to Needs work
11 months ago 5:52am 18 December 2023 - Status changed to RTBC
11 months ago 5:57am 18 December 2023 - Status changed to Fixed
10 months ago 12:51pm 17 January 2024 - 🇬🇧United Kingdom Alina Basarabeanu
Closing as is fixed on bat_api 3.1.0-rc1.
core_version_requirement: ^9 || ^10 Automatically closed - issue fixed for 2 weeks with no activity.