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

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

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 Connexion 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 Connexion 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 Connexion 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 Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.054 seconds

Paramétrages de cookies

×

Cookies fonctionnels

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

Veuillez vous connecter pour voir vos activités!

Autres cookies

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