mkucej / i-librarian-free

I, Librarian - open-source version of a PDF managing SaaS.
https://i-librarian.net
GNU General Public License v3.0
244 stars 28 forks source link

Errors with PHP 8.1 #68

Closed luis-j closed 2 years ago

luis-j commented 2 years ago

Hi,

I'm on Arch Linux, and after upgrading php from 8.0.14 to 8.1.2, this error pops up all the time:

500 Internal Server Error E_DEPRECATED: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated.

arunoruto commented 2 years ago

I am having similar problems when trying to import using an ISBN. I am getting the error message:

500 error
E_NOTICE: Trying to access array offset on value of type bool.

The console of chrome and firefox says:

Failed to load resource: the server responded with a status of 500 ()

for the endpoint /index.php/ol/convert:1.

luis-j commented 2 years ago

Anyone with enough knowledge of PHP to solve this? Now even Ubuntu switched to php 8.1 and as soon as people begin upgrading their systems, I, Librarian will stop working.

mkucej commented 2 years ago

We'll be adjusting to PHP 8.1 soon.

luis-j commented 2 years ago

That's great, Martin, thank you!

mkucej commented 2 years ago

fixed in 5.10.1