XF 2.2 Function libxml_disable_entity_loader() is deprecated

TPerry

Well-known member
Since this past Saturday I've got 10 pages of errors in my ACP... all related to similar to this (different URL's, 2 examples shown)

Code:
ErrorException: [E_DEPRECATED] Function libxml_disable_entity_loader() is deprecated
src/vendor/laminas/laminas-feed/src/Reader/Reader.php:328
Generated by: Unknown account
September 25, 2022 at 8:08 PM
Stack trace
#0 src/vendor/laminas/laminas-feed/src/Reader/Reader.php(328): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/nginx/dom...', 328)
#1 src/XF/Service/Feed/Reader.php(53): Laminas\Feed\Reader\Reader::importString('<?xml version="...')
#2 src/XF/Service/Feed/Reader.php(25): XF\Service\Feed\Reader->setFeed()
#3 src/XF/Container.php(276): XF\Service\Feed\Reader->__construct(Object(XF\Pub\App), 'https://www.nas...')
#4 src/XF/App.php(1710): XF\Container->createObject('XF\\Service\\Feed...', Array)
#5 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\Feed...', Array, Object(XF\Container))
#6 src/XF/App.php(3023): XF\Container->create('service', 'XF:Feed\\Reader', Array)
#7 src/XF/Service/AbstractService.php(79): XF\App->service('XF:Feed\\Reader', 'https://www.nas...')
#8 src/XF/Service/Feed/Feeder.php(205): XF\Service\AbstractService->service('XF:Feed\\Reader', 'https://www.nas...')
#9 src/XF/Service/Feed/Feeder.php(24): XF\Service\Feed\Feeder->getFeedReader()
#10 src/XF/Job/Feeder.php(42): XF\Service\Feed\Feeder->setupImport(Object(XF\Entity\Feed))
#11 src/XF/Job/Manager.php(260): XF\Job\Feeder->run(8)
#12 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#13 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#14 job.php(43): XF\Job\Manager->runQueue(false, 8)
#15 {main}
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(37) "https://astrowhat.com/approval-queue/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }

Code:
ErrorException: [E_DEPRECATED] Function libxml_disable_entity_loader() is deprecated
src/vendor/laminas/laminas-feed/src/Reader/Reader.php:318
Generated by: Unknown account
September 24, 2022 at 6:45 AM
Stack trace
#0 src/vendor/laminas/laminas-feed/src/Reader/Reader.php(318): XF::handlePhpError(8192, '[E_DEPRECATED] ...', '/home/nginx/dom...', 318)
#1 src/XF/Service/Feed/Reader.php(53): Laminas\Feed\Reader\Reader::importString('<?xml version="...')
#2 src/XF/Service/Feed/Reader.php(25): XF\Service\Feed\Reader->setFeed()
#3 src/XF/Container.php(276): XF\Service\Feed\Reader->__construct(Object(XF\Pub\App), 'https://astrono...')
#4 src/XF/App.php(1710): XF\Container->createObject('XF\\Service\\Feed...', Array)
#5 src/XF/Container.php(234): XF\App->XF\{closure}('XF\\Service\\Feed...', Array, Object(XF\Container))
#6 src/XF/App.php(3023): XF\Container->create('service', 'XF:Feed\\Reader', Array)
#7 src/XF/Service/AbstractService.php(79): XF\App->service('XF:Feed\\Reader', 'https://astrono...')
#8 src/XF/Service/Feed/Feeder.php(205): XF\Service\AbstractService->service('XF:Feed\\Reader', 'https://astrono...')
#9 src/XF/Service/Feed/Feeder.php(24): XF\Service\Feed\Feeder->getFeedReader()
#10 src/XF/Job/Feeder.php(42): XF\Service\Feed\Feeder->setupImport(Object(XF\Entity\Feed))
#11 src/XF/Job/Manager.php(260): XF\Job\Feeder->run(8)
#12 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#13 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#14 job.php(43): XF\Job\Manager->runQueue(false, 8)
#15 {main}
Request state
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(37) "https://astrowhat.com/link-directory/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I "think" this may be due to the RSS feeds, and it calling a PHP 8.0.23 deprecated function?
The only "new" thing I did was upgrade to PHP 8.0.23 and enabled opcache.
This may actually belong in the bugs section.... I don't have any add-ons that deal with feeds - in fact, I try to run minimal add-ons.
@Chris D, if this belongs in bugs, can you move it please.
 
Back
Top Bottom