platform icon indicating copy to clipboard operation
platform copied to clipboard

Cannot serialize Symfony\Component\Cache\Adapter\FilesystemAdapter

Open carbsrule opened this issue 2 years ago • 1 comments

Summary
When saving config for certain integrations via Oro admin, an exception is thrown which ends up displaying an error to the admin user

Steps to reproduce
Attempt to save the config for an integration

Actual Result Config is saved, but an exception is logged, but the admin user sees two error messages:

  1. Error: Unexpected content format.
  2. There was an error performing the requested operation. Please try again or contact us for assistance.

Expected Result
No exception is logged, and admin user sees the success message: Integration saved

Details about your environment

  • OroPlatform version: 5.1.0
  • PHP version: 8.2.5
  • PostgreSQL version: 15.1 (Debian 15.1-1.pgdg110+1)

Additional information

request.CRITICAL: Uncaught PHP Exception BadMethodCallException: "Cannot serialize Symfony\Component\Cache\Adapter\FilesystemAdapter" at /oro/vendor/symfony/cache/Traits/FilesystemCommonTrait.php line 179 {"exception":"[object] (BadMethodCallException(code: 0): Cannot serialize Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter at /oro/vendor/symfony/cache/Traits/FilesystemCommonTrait.php:179)\n[previous exception] [object] (BadMethodCallException(code: 0): Cannot serialize Symfony\\Component\\Cache\\Adapter\\FilesystemAdapter at /oro/vendor/symfony/cache/Traits/FilesystemCommonTrait.php:179)"} []

carbsrule avatar May 18 '23 07:05 carbsrule

A fix is available here: https://github.com/oroinc/platform/pull/1101

carbsrule avatar May 18 '23 07:05 carbsrule