Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4780

Update Session handler for better PHP 8.1 compatibility

    Details

      Description

      The following errors are written to the logs when logging in to Blesta and when navigating pages.

      [2022-10-28T23:06:50.682932+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::read($sessionId) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::read($sessionId) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":73}

      [2022-10-28T23:06:50.682997+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::write($sessionId, $data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::write($sessionId, $data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":91}

      [2022-10-28T23:06:50.683060+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::destroy($sessionId) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::destroy($sessionId) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":41}

      [2022-10-28T23:06:50.683122+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":53}

      [2022-10-28T23:06:50.746482+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::open($savePath, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::open($savePath, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":65}

      [2022-10-28T23:06:50.746820+00:00] general.NOTICE: E_DEPRECATED: Return type of Minphp\Session\Handlers\PdoHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

      {"code":8192,"message":"Return type of Minphp\\Session\\Handlers\\PdoHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice","file":"/home/blestau/public_html/560b1/vendors/minphp/session/src/Handlers/PdoHandler.php","line":33}

        Activity

        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Abdy Franco [ abdy ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 6 [ 171, 172, 175 ] 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 5 [ 171, 172, 174 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 5 [ 171, 172, 174 ] 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 6 [ 171, 172, 175 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 4 [ 171, 172, 173 ] 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 5 [ 171, 172, 174 ]
        Hide
        abdy Abdy Franco added a comment -

        It appears that there is already a Pull Request that addresses this issue. https://github.com/phillipsdata/minphp-session/pull/22

        Show
        abdy Abdy Franco added a comment - It appears that there is already a Pull Request that addresses this issue. https://github.com/phillipsdata/minphp-session/pull/22
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2, 5.7.0 Sprint 3 [ 171, 172 ] 5.7.0 Sprint 2, 5.7.0 Sprint 3, 5.7.0 Sprint 4 [ 171, 172, 173 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2 [ 171 ] 5.7.0 Sprint 2, 5.7.0 Sprint 3 [ 171, 172 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 1 [ 169 ] 5.7.0 Sprint 2 [ 171 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2 [ 171 ] 5.7.0 Sprint 1 [ 169 ]
        jonathan Jonathan Reissmueller made changes -
        Fix Version/s 5.7.0-b1 [ 11737 ]
        Fix Version/s Short Term [ 10800 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.7.0 Sprint 2 [ 171 ]
        admin Paul Phillips made changes -
        Field Original Value New Value
        Rank Ranked higher
        admin Paul Phillips created issue -

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              4/May/23

              Agile