Problem/Motivation

Function libxml_disable_entity_loader throws deprecation warning on PHP8.

Steps to reproduce

Install Feeds and this module in D7.
Create a feed with processor parser, "XPath XML parser"
Run the import
Watchdog shows warning
Deprecated function: Function libxml_disable_entity_loader() is deprecated in FeedsXPathParserBase->errorStop() (line 598 of feeds_xpathparser/FeedsXPathParserBase.inc).

Proposed resolution

Fix it the same way they did on feeds_ex by adding check for PHP version: https://www.drupal.org/project/feeds_ex/issues/3257376

Remaining tasks

I will supply a patch shortly.
Patch attached.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

darkodev created an issue. See original summary.

darkodev’s picture

darkodev’s picture

Issue summary: View changes
darkodev’s picture

Issue summary: View changes
klausi’s picture

Status: Active » Reviewed & tested by the community

Makes sense, thanks!

fredonia_webteam’s picture

Hello,

I am getting this error after upgrading to PHP8.1. Using version 7.x-1.1 with feeds module 7.x-2.0-beta6. Any update on getting this patch into a release?

Thank you!

darkodev’s picture

Added an MR and PHP 8 test to push this along.

laryn’s picture

LGTM. This has also been pulled into the Backdrop version of the module and is in the latest release there, working nicely. Thank you!

https://github.com/backdrop-contrib/feeds_xpathparser/commit/d2335ed39cb...