-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning PHP depuis la dernière mise à jour #138
Comments
@lnprieto peut-on espérer un correctif dans les prochaines semaines ? Pour info, voici le message d'erreur :
|
C'est en cours de validation, cela devrait être fait très vite
Le mer. 18 janv. 2023 à 12:30, Thomas Brouard ***@***.***> a
écrit :
… @lnprieto <https://github.com/lnprieto> peut-on espérer un correctif dans
les prochaines semaines ?
Pour info, voici le message d'erreur :
PHP Error (Warning) in file 'chemin/vers/lodel/lodel/scripts/context.php' on line 253 :
preg_match() expects parameter 2 to be string, array given
Warnings seem to appear on this page. You may go on anyway by following this link. Please report the problem to help us to improve Lodel.
—
Reply to this email directly, view it on GitHub
<#138 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG3E6JTDEUFMDSXPDJX5JJTWS7H4FANCNFSM6AAAAAATS26XVE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@lnprieto merci |
Bonjour, |
FTR, ce problème est toujours d'actualité et assez gênant à l'utilisation sous environnement de développement. Le code teste bien le type array mais ne prends pas en compte le fait qu'un array peut lui-même contenir un array. Voir ligne 256 : a921de2#diff-c5c7a83d86838b3c576d3a2ecdd448de07b095aacc256888e43621bc49267467 |
Bonjour,
Depuis la dernière mise à jour de sécurité, un warning PHP est soulevé systématiquement à l'édition d'une entité.
https://github.com/OpenEdition/lodel/blob/master/lodel/scripts/context.php#L253
La valeur de $v est un tableau, preg_match ne peut pas fonctionner sur les tableaux.
@lnprieto @jcsouplet
The text was updated successfully, but these errors were encountered: