Hi
I switched my Homepage to PHP 8.0 and now the layout does not work anymore.
Going back to PHP 7.3 works again, however this version is deprecated.
When I open my webpage then it looks like this:
https://pasteboard.co/uLzwc1VUziGI.png
Not what it should be. Then when I select "tile view" (Kachelansicht), it looks like this:
https://pasteboard.co/D4HcIgb7Exox.png
... still not how it should be. I have to refresh (F5) the page, then finally it looks as it supposed to be:
https://pasteboard.co/6MPE9w85X8dH.png
https://www.domscheit.ch/piwigo/
Another note, when I switch to PHP version 8.1, then I get this error/warning:
Deprecated: "trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/httpd/vhosts/domscheit.ch/httpdocs/piwigo/include/template.class.php on line 911"
Any plans to fix this?
Kind Regards
Wernfried
Last edited by wernfried (2022-04-24 15:38:17)
Offline
I have the same issue with PHP8.1.
I have tried creating a config.inc.php (there wasn't one) in /local/config and adding
$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED;
But it doesn't appear to solve the problem.
Am I doing something wrong?
Last edited by XR219 (2022-06-07 19:00:44)
Offline
Did you by chance forget the PHP markers?
<?php $conf['show_php_errors'] = E_ALL & ~E_DEPRECATED; ?>
Offline
Doh!
Yep, that will do it. Can't see the wood for the trees.
Many thanks indeed @erAck
That's sorted the php deprecated messages. Is there a reason why it isn't obeying the server defaults (the php parser on the server is set to not display and log only)?
The only issue I'm seeing now is that I'm seeing this for each keyword. Again, this is php 8.1 and I appreciate its not fully there yet.
/var/www/vhosts/cbfsim.co.uk/httpdocs/cbfs_lib/_data/templates_c/ljbwkp^d09561e3e86529049173e24a912e353e77e6a9f2_0.file.menubar_tags.tpl.php on line 37 " href="index.php?/tags/18-fearless" title="display photos linked to this keyword">Fearless
Last edited by XR219 (2022-06-08 13:13:31)
Offline
Piwigo has it's own awkward notion of overriding error display/logging.. see [Forum, post 180778 by erAck in topic 31258] Error Message for how to override the override :p
Offline