rvolz / BicBucStriim

BicBucStriim streams books, digital books. It fills a gap in the functionality of current NAS devices that provide access to music, videos and photos -- but not books. BicBucStriim fills this gap and provides web-based access to your e-book collection.
Other
412 stars 73 forks source link

Errors using PHP 8.1 #386

Closed Mathias-Ro closed 1 year ago

Mathias-Ro commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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