Skip to content
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

Problème avec PHP 8.1.16 #14

Closed
stf4-Sony opened this issue Apr 4, 2023 · 1 comment
Closed

Problème avec PHP 8.1.16 #14

stf4-Sony opened this issue Apr 4, 2023 · 1 comment

Comments

@stf4-Sony
Copy link

Bonjour

Je rencontre des problèmes d'affichage du plugin

Deprecated: substr_count(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www//plugins/ExtendedDescription/include/events.inc.php on line 331

Merci a qui aura une solution pour corriger le problème.

BD

@git-emil
Copy link

git-emil commented Jun 13, 2023

Hi!

I'm facing the very same error message after upgrading from v12 to v13 and switching to php 8.1.
After changing the code to this:

if (substr_count($pictures[$i]['name'] ?? "", $conf['ExtendedDescription']['not_visible']))

the problem seems to be solved. But I am not 100% sure; the source code is missing meaningful comments.

Emil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants