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
PHP 8 undefined array keys in template #93
Comments
Hi, |
Piwigo 13.4.0 - Share Album 13.2 - PHP 8.0.27 |
I'm getting similar errors. It's only when using the share link in Chrome Incognito... Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/renae.ca/piwigo/plugins/ShareAlbum/main.inc.php on line 262 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/renae.ca/piwigo/plugins/ShareAlbum/main.inc.php on line 263 Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/renae.ca/piwigo/plugins/ShareAlbum/main.inc.php on line 266 Since it's not exactly the same, would you like a fresh issue report? ShareAlbum 13.2 / Piwigo 13.6.0 (core and extensions fully up to date) / Bootstrap Darkroom 2.5.15 / Ubuntu 22.04.2 / PHP 8.1.2-1ubuntu2.10 |
Error/warning is shown despite php.ini config because piwigo default configuration turns on error reporting. Put this in piwigo's include/config.php
|
Turning error reporting completely off is a workaround, but not a solution. I'd rather log errors and warnings to file but exclude Notice and Deprecated messages, and turn displaying errors off. So
If messages are still displayed then likely because php.ini sets |
@erAck Agreed. I was merely commenting on why changing php.ini has no effect on the errors/warnings. Ideally, the code is fixed. |
With PHP 8.0 I get the following warnings logged:
The text was updated successfully, but these errors were encountered: