jgeusebroek / docker-spotweb

A docker image running ubuntu/20.04 Linux and Spotweb
47 stars 27 forks source link

PHP 8 error while using latest docker build #46

Closed NjayNL closed 2 years ago

NjayNL commented 2 years ago

Hi,

I upgraded to the the latest docker image which worked fine in the past but now i get this error message on the main page:

Deprecated: Function libxml_disable_entity_loader() is deprecated in /var/www/spotweb/lib/Bootstrap.php on line 82

when clicking mark everything as read:

Deprecated: Function libxml_disable_entity_loader() is deprecated in /var/www/spotweb/lib/Bootstrap.php on line 82 {"result":"success","data":[],"info":[],"warnings":[],"errors":[]}

can you look into the code?

jgeusebroek commented 2 years ago

What version of the image are you using?

jgeusebroek commented 2 years ago

I suspect you used the 8.1 tag; this was a test version. Spotweb itself isn't optimised for PHP 8 at the moment which is why I don't use it in production (master).

NjayNL commented 2 years ago

i used the latest tag i reverted back to the php7.4 tag and the erorr is gone only the mark everthing as read button is giving the following blank page with this error code:

{"result":"success","data":[],"info":[],"warnings":[],"errors":[]}

also upgrade-db.php gives the following error:

Invalid collation setting for varchar: utf8mb3_unicode_ci

jgeusebroek commented 2 years ago

The latest tag has not been PHP version 8, are you sure you used my image? Only latest tag is support.

https://github.com/jgeusebroek/docker-spotweb/issues/36 has some info about the collation error.

NjayNL commented 2 years ago

Yes i am using the latest tag just tested again and the error is back on the main page

Deprecated: Function libxml_disable_entity_loader() is deprecated in /var/www/spotweb/lib/Bootstrap.php on line 82

using docker on synology dsm 7

jgeusebroek commented 2 years ago

That's very strange.

What does this output:

docker image ls jgeusebroek/spotweb. docker exec -ti spotweb php -v

NjayNL commented 2 years ago

root@DS916:~# docker image ls jgeusebroek/spotweb. REPOSITORY TAG IMAGE ID CREATED SIZE

root@DS916:~# docker exec -ti spotweb php -v PHP 8.0.13 (cli) (built: Nov 22 2021 09:50:43) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.13, Copyright (c) Zend Technologies with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies

jgeusebroek commented 2 years ago

docker image ls jgeusebroek/spotweb without the .. My bad.

NjayNL commented 2 years ago

root@DS916:~# docker image ls jgeusebroek/spotweb

REPOSITORY TAG IMAGE ID CREATED SIZE

jgeusebroek/spotweb latest 6a0b7fcb3a6f 3 months ago 386MB

root@DS916:~#

jgeusebroek commented 2 years ago

That is indeed the latest version. I'm stumped. I cannot replicate your problem, I don't see any errors.

NjayNL commented 2 years ago

I rolled back to a tag from a year ago and the errors are gone so for my config it’s something in the latest image 😊 I will start fresh hopefully that will work thanks for your support

Van: Jeroen Geusebroek @.> Verzonden: Friday, 8 April 2022 09:14 Aan: jgeusebroek/docker-spotweb @.> CC: NjayNL @.>; Author @.> Onderwerp: Re: [jgeusebroek/docker-spotweb] PHP 8 error while using latest docker build (Issue #46)

That is indeed the latest version. I'm stumped. I cannot replicate your problem, I don't see any errors.

β€” Reply to this email directly, view it on GitHubhttps://github.com/jgeusebroek/docker-spotweb/issues/46#issuecomment-1092524730, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACHCDAQ4J2HNMWLX2TDVMK3VD7MFLANCNFSM5SWBSBWQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

NjayNL commented 2 years ago

Fixed ! removed all images and rebuild a new one restored my config and done Only thing remaining is the upgrade-db wont work with the new mariadb 😊

Van: Nick Jamont Verzonden: Friday, 8 April 2022 09:16 Aan: jgeusebroek/docker-spotweb @.>; jgeusebroek/docker-spotweb @.> CC: Author @.***> Onderwerp: RE: [jgeusebroek/docker-spotweb] PHP 8 error while using latest docker build (Issue #46)

I rolled back to a tag from a year ago and the errors are gone so for my config it’s something in the latest image 😊 I will start fresh hopefully that will work thanks for your support

Van: Jeroen Geusebroek @.**@.>> Verzonden: Friday, 8 April 2022 09:14 Aan: jgeusebroek/docker-spotweb @.**@.>> CC: NjayNL @.**@.>>; Author @.**@.>> Onderwerp: Re: [jgeusebroek/docker-spotweb] PHP 8 error while using latest docker build (Issue #46)

That is indeed the latest version. I'm stumped. I cannot replicate your problem, I don't see any errors.

β€” Reply to this email directly, view it on GitHubhttps://github.com/jgeusebroek/docker-spotweb/issues/46#issuecomment-1092524730, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACHCDAQ4J2HNMWLX2TDVMK3VD7MFLANCNFSM5SWBSBWQ. You are receiving this because you authored the thread.Message ID: @.**@.>>

NjayNL commented 1 year ago

will test further tomorrow thanks for the quick help


From: Jeroen Geusebroek @.> Sent: Wednesday, April 6, 2022 5:06:35 PM To: jgeusebroek/docker-spotweb @.> Cc: NjayNL @.>; Author @.> Subject: Re: [jgeusebroek/docker-spotweb] PHP 8 error while using latest docker build (Issue #46)

docker image ls jgeusebroek/spotweb without the .. My bad.

β€” Reply to this email directly, view it on GitHubhttps://github.com/jgeusebroek/docker-spotweb/issues/46#issuecomment-1090380217, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACHCDAXW4K2DS4V3EW6NQKLVDWR7XANCNFSM5SWBSBWQ. You are receiving this because you authored the thread.Message ID: @.***>