PHP 8 deprecation errors in log re. updater

Hi,
does anybody else see these exceptions in their log?

[PHP] Error: Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100
[PHP] Error: Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98

See below for the full (privacy-redacted) messages.

They occur once a day and seem to be similar to this (fixed and backported) issue. If I get this right, this was a fix for the installer but the updater component still lacks it?

Why I’m reporting this:
While I can live with a spammed log (though I dislike it), I wonder whether this might create problems for the update process? I mean, it’s about time to move a few (at least minor) versions up in the meantime anyway, right? :wink:


.../VersionCheck.php#100

{“reqId”:“LYVqT2ULDMwu7alBkMBU”,“level”:3,“time”:“2022-03-16T07:37:43+00:00”,“remoteAddr”:“xxx.xxx.xxx.xxx”,“user”:“XYZ”,“app”:“PHP”,“method”:“GET”,“url”:"/settings/admin/overview",“message”:“Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“Error”,“Message”:“Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#100”,“Code”:0,“Trace”:[{“file”:"/var/www/html/lib/private/Updater/VersionCheck.php",“line”:100,“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::",“args”:[8192,“Function libxml_disable_entity_loader() is deprecated”,"/var/www/html/lib/private/Updater/VersionCheck.php",100]},{“file”:"/var/www/html/apps/updatenotification/lib/UpdateChecker.php",“line”:52,“function”:“check”,“class”:“OC\Updater\VersionCheck”,“type”:"->",“args”:[]},{“file”:"/var/www/html/apps/updatenotification/lib/Settings/Admin.php",“line”:90,“function”:“getUpdateState”,“class”:“OCA\UpdateNotification\UpdateChecker”,“type”:"->",“args”:[]},{“file”:"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:137,“function”:“getForm”,“class”:“OCA\UpdateNotification\Settings\Admin”,“type”:"->",“args”:[]},{“file”:"/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php",“line”:82,“function”:“formatSettings”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[{“10”:[{“class”:“OCA\Settings\Settings\Admin\Overview”}],“11”:[{“class”:“OCA\UpdateNotification\Settings\Admin”}]}]},{“file”:"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:148,“function”:“getSettings”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[“overview”]},{“file”:"/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php",“line”:67,“function”:“getIndexResponse”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[“admin”,“overview”]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“index”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[“overview”]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\AdminSettingsController”},“index”]},{“file”:"/var/www/html/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\AdminSettingsController”},“index”]},{“file”:"/var/www/html/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Settings\Controller\AdminSettingsController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“section”:“overview”,"_route":“settings.AdminSettings.index”}]},{“file”:"/var/www/html/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/settings/admin/overview"]},{“file”:"/var/www/html/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/var/www/html/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“id”:“62319635a0a66”}

.../VersionCheck.php#98

{“reqId”:“LYVqT2ULDMwu7alBkMBU”,“level”:3,“time”:“2022-03-16T07:37:43+00:00”,“remoteAddr”:“xxx.xxx.xxx.xxx”,“user”:“XYZ”,“app”:“PHP”,“method”:“GET”,“url”:"/settings/admin/overview",“message”:“Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36”,“version”:“22.2.3.0”,“exception”:{“Exception”:“Error”,“Message”:“Function libxml_disable_entity_loader() is deprecated at /var/www/html/lib/private/Updater/VersionCheck.php#98”,“Code”:0,“Trace”:[{“file”:"/var/www/html/lib/private/Updater/VersionCheck.php",“line”:98,“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::",“args”:[8192,“Function libxml_disable_entity_loader() is deprecated”,"/var/www/html/lib/private/Updater/VersionCheck.php",98]},{“file”:"/var/www/html/apps/updatenotification/lib/UpdateChecker.php",“line”:52,“function”:“check”,“class”:“OC\Updater\VersionCheck”,“type”:"->",“args”:[]},{“file”:"/var/www/html/apps/updatenotification/lib/Settings/Admin.php",“line”:90,“function”:“getUpdateState”,“class”:“OCA\UpdateNotification\UpdateChecker”,“type”:"->",“args”:[]},{“file”:"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:137,“function”:“getForm”,“class”:“OCA\UpdateNotification\Settings\Admin”,“type”:"->",“args”:[]},{“file”:"/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php",“line”:82,“function”:“formatSettings”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[{“10”:[{“class”:“OCA\Settings\Settings\Admin\Overview”}],“11”:[{“class”:“OCA\UpdateNotification\Settings\Admin”}]}]},{“file”:"/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",“line”:148,“function”:“getSettings”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[“overview”]},{“file”:"/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php",“line”:67,“function”:“getIndexResponse”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[“admin”,“overview”]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“index”,“class”:“OCA\Settings\Controller\AdminSettingsController”,“type”:"->",“args”:[“overview”]},{“file”:"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\AdminSettingsController”},“index”]},{“file”:"/var/www/html/lib/private/AppFramework/App.php",“line”:156,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Settings\Controller\AdminSettingsController”},“index”]},{“file”:"/var/www/html/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Settings\Controller\AdminSettingsController”,“index”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“section”:“overview”,"_route":“settings.AdminSettings.index”}]},{“file”:"/var/www/html/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/settings/admin/overview"]},{“file”:"/var/www/html/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::",“args”:[]}],“File”:"/var/www/html/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“id”:“62319635a0bde”}

Adding to above: The error is logged when I open the settings/admin/overview page (where the update checker is located).

Hey @lothar,

honestly I have not much of an idea why this is happening, I would expect the docker images provided by Nextcloud are build without these, there will be soon an update to NC 23, maybe this will fix the issue.

best

FYI: Problem still persists after upgrading to v23, no changes whatsoever.

Maybe the Linux container should stop displaying deprecation messages by adding this to php.ini:

error_reporting = E_ALL & ~E_DEPRECATED