- 🇨🇦Canada netgeek123
using drush en bat_api
drush en bat_api The following module(s) will be enabled: bat_api, bat_event Do you want to continue? (yes/no) [yes]: > yes In Container.php line 157: You have requested a non-existent service "bat_fullcalendar.fixed_state_eve nt_formatter".
Full calendar is installed.
- 🇬🇧United Kingdom Alina Basarabeanu
Using bat_api 1.3.0, with 2 patches for issue 3348451 & 3286204 on D10 we get a fatal error:
Fatal error: Declaration of Drupal\bat_api\StackMiddleware\BatApiMiddleware::handle(Symfony\Component\HttpFoundation\Request $request, $type = self::MASTER_REQUEST, $catch = true) must be compatible with Symfony\Component\HttpKernel\HttpKernelInterface::handle(Symfony\Component\HttpFoundation\Request $request, int $type = self::MAIN_REQUEST, bool $catch = true): Symfony\Component\HttpFoundation\Response in /var/www/html/docroot/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php on line 37
This module is not up to date and very difficult to keep it up to the latest changes to Drupal.
Can someone have a look at all the patches and create a new D10 stable version? - Status changed to Needs review
about 1 year ago 11:24am 9 October 2023 - 🇬🇧United Kingdom Alina Basarabeanu
A patch was created to fix the error.
The constant MASTER_REQUEST is deprecated and it was replaced with MAIN_REQUEST in BatApiMiddleware class. - 🇮🇹Italy afagioli Rome
Main issue here is fixed with
https://www.drupal.org/project/bat_api/releases/8.x-1.6 → - 🇮🇹Italy afagioli Rome
Patch at #9 is promising.
causing
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 /var/www/html/d9batapi/web/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php on line 38 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 /var/www/html/d9batapi/web/modules/contrib/bat_api/src/StackMiddleware/BatApiMiddleware.php on line 38
on
drush en bat_api
tough.Worth to be discussed in the new issue (seems to be out of scope here)
-
afagioli →
committed 8dbc483f on 8.x-1.x
fix install issue #3019531
-
afagioli →
committed 8dbc483f on 8.x-1.x
Hello Patch #9 worked for me on D10.
Thanks @Alina Basarabeanu.
indeed as you mentioned, A stable version is needed- 🇮🇹Italy afagioli Rome
Facing this.
Updating issue to latest supported release -
afagioli →
committed 9b1ba30e on 3.0.x
#3019531, Code Standard, fix dependecy
-
afagioli →
committed 9b1ba30e on 3.0.x
- 🇮🇹Italy afagioli Rome
Find this fix with https://www.drupal.org/project/bat_api/releases/3.1.0-alpha2 →
Thanks for contribuiting - Status changed to Needs work
11 months ago 5:59am 18 December 2023 - 🇨🇳China lawxen
3.1.0-alpha2 didn't work on drupal9.5 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
We need remove d9 compatibility on info.yml
- Status changed to Needs review
11 months ago 6:03am 18 December 2023 - Status changed to Fixed
11 months ago 8:43am 18 December 2023 - 🇮🇹Italy afagioli Rome
Automatically closed - issue fixed for 2 weeks with no activity.