Announcement

  •  » Themes
  •  » PHP 8 support for Bootstrap Darkroom

#1 2022-04-24 15:34:16

wernfried
Member
2012-01-21
82

PHP 8 support for Bootstrap Darkroom

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

 

#2 2022-06-07 19:00:06

XR219
Member
UK
2017-06-25
3

Re: PHP 8 support for Bootstrap Darkroom

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

Code:

$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

 

#3 2022-06-07 23:50:40

erAck
Only trying to help
2015-09-06
1395

Re: PHP 8 support for Bootstrap Darkroom

Did you by chance forget the PHP markers?

Code:

<?php

$conf['show_php_errors'] = E_ALL & ~E_DEPRECATED;

?>

Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2022-06-08 13:12:44

XR219
Member
UK
2017-06-25
3

Re: PHP 8 support for Bootstrap Darkroom

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.

Code:

 /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

 

#5 2022-06-08 19:48:10

erAck
Only trying to help
2015-09-06
1395

Re: PHP 8 support for Bootstrap Darkroom

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


Running Piwigo at https://erack.net/gallery/

Offline

 
  •  » Themes
  •  » PHP 8 support for Bootstrap Darkroom

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact