View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - libxml_disable_entity_loader is depecated in php8 - ProjeQtOr
 
 

libxml_disable_entity_loader is depecated in php8

More
04 Mar 2022 16:25 #1 by support_infogerance
Hello,
We did an installation with PHP8 and nginx, and metadata for SP are not available due to an use of a deprecated function :
2022-03-04 16:11:41.482 ***** ERROR ***** [V9.3.1] ERROR ***** 2022-03-04 16:11:41.482 ***** ERROR ***** [V9.3.1] on file '/var/www/html/sso/lib/Saml2/Utils.php' at line (143) 2022-03-04 16:11:41.482 ***** ERROR ***** [V9.3.1] cause = Function libxml_disable_entity_loader() is deprecated

Does a workaround exist to stay on php8, and get those metadata ?
Regards

Please Log in or Create an account to join the conversation.

More
04 Mar 2022 17:28 #2 by babynus
This issue should not happen on V9.4.3
(we wrote a workaround)
Regards.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
07 Mar 2022 11:49 #3 by support_infogerance
Hello babynus,
We did the upgrade in our dev environment, and the issue is still present.

2022-03-07 11:43:00.728 ===== TRACE ===== NEW CONNECTED USER 'admin'
2022-03-07 11:43:35.420 ***** ERROR ***** [V9.4.3] ERROR *****
2022-03-07 11:43:35.420 ***** ERROR ***** [V9.4.3] on file '/var/www/html/sso/lib/Saml2/Utils.php' at line (143)
2022-03-07 11:43:35.420 ***** ERROR ***** [V9.4.3] cause = Function libxml_disable_entity_loader() is deprecated

We are using php8, and libxml_disable_entity_loader() is deprecated

Regards

Please Log in or Create an account to join the conversation.

More
14 Mar 2022 00:04 - 14 Mar 2022 00:04 #4 by babynus
Change code on file projeqtor/sso/lib/Saml2/Utils.php, lines 143-145 from
        $oldEntityLoader = libxml_disable_entity_loader(false);
        $res = $dom->schemaValidate($schemaFile);
        libxml_disable_entity_loader($oldEntityLoader);
to
        if (version_compare(phpversion(), '8.0.0', '<')) $oldEntityLoader = libxml_disable_entity_loader(false);
        $res = $dom->schemaValidate($schemaFile);
        if (version_compare(phpversion(), '8.0.0', '<')) libxml_disable_entity_loader($oldEntityLoader);

Babynus
Administrator of ProjeQtOr web site
Last edit: 14 Mar 2022 00:04 by babynus.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.035 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.