Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Errors using PHP 8.1 #386

Closed
Mathias-Ro opened this issue Jul 18, 2022 · 2 comments
Closed

Errors using PHP 8.1 #386

Mathias-Ro opened this issue Jul 18, 2022 · 2 comments

Comments

@Mathias-Ro
Copy link

Hello,
it was working fine with php 7.4, but after upgrading PHP to version 8.1.8 the install check is still green, but index.php stops with:
PHP Fatal error: Uncaught TypeError: Attribute value must be of type int for selected attribute, string given in .../lib/BicBucStriim/bicbucstriim.php:58\nStack trace:\n#0 .../lib/BicBucStriim/bicbucstriim.php(58): PDO->setAttribute()\n#1 .../index.php(144): BicBucStriim->__construct()\n#2 {main}\n thrown in .../lib/BicBucStriim/bicbucstriim.php on line 58

Best regards,
Mathias

@ralfberger
Copy link

ralfberger commented Dec 23, 2022

yes I can confirm that. Erros in version 1.5.3 under PHP 8.1.
Installation check shows everything green but it also shows many erros in the lexer.php from line 211.
With PHP 7.4 it runs without problems.

Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/xyz/xyz/bbs/vendor/twig/twig/lib/Twig/Lexer.php on line 211
Deprecated: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /home/xyz/xyz/bbs/vendor/twig/twig/lib/Twig/Lexer.php on line 223

Nice Christmas

@mikespub
Copy link
Contributor

This was due to an outdated version of the twig/twig package included in the 1.5.3 release.

Updated in #391 and release 1.6.0 at https://github.com/mikespub-org/rvolz-BicBucStriim

@rvolz rvolz closed this as completed Jul 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants