Announcement

#1 2020-07-01 20:52:00

StephanieM
Member
2020-07-01
3

Piwigo throws errors with PHP 7.4.7

Hello:

I recently upgraded my server to PHP 7.4.7. I now get errors displayed on my Piwigo pages:
Deprecated
: Invalid characters passed for attempted conversion, these have been ignored in
/var/www/smphoto.com/gallery2/include/template.class.php
on line
215 (also on lines 1024 and 1899)

Reverting to PHP 7.3.19 gets rid of the errors, but other sites on the same machine require PHP 7.4.7.

Piwigo version: 2.10.2
PHP version: 7.4.7
MySQL version: 5.7.30
Piwigo URL: https://smphoto.kulekats.com/gallery2/

Offline

 

#2 2020-07-02 03:43:20

Zentalquabula
Member
2014-05-10
191

Re: Piwigo throws errors with PHP 7.4.7

You are not supposed to display errors on production sites. Did you do a search on this topic? It has been covered numerous times.

Offline

 

#3 2020-07-02 04:57:18

StephanieM
Member
2020-07-01
3

Re: Piwigo throws errors with PHP 7.4.7

I'll forgive the tone and unhelpfulness of this reply because no, I didn't do a search on the topic. Now that I have, I got one hit on "PHP 7.4" and a few unhelpful ones on "deprecated". When I search on "display error messages" I get no hits.

I've been through every page on the Administration UI and haven't found a switch to not display error messages. Until I started getting errors, I didn't think I needed to look for one.

At this point, I guess I file a bug report re PHP 7.4.7. I would have expected the latest production version of Piwigo to work on the latest production version of PHP, but maybe I've just got bitten by version skew.

Offline

 

#4 2020-07-02 06:22:39

executive
Member
2017-08-16
1099

Re: Piwigo throws errors with PHP 7.4.7

It should be in your host's PHP options. Ask your hoster if you're not sure how.

Offline

 

#5 2020-07-02 21:58:25

erAck
Only trying to help
2015-09-06
1064

Re: Piwigo throws errors with PHP 7.4.7

The forum is full of threads about deprecated because no one searches before asking..
So again, deprecated is not an error but a deprecated message, you can use [extension by Piwigo Team] LocalFiles Editor to add

Code:

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

to your local/config/config.inc.php


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

Offline

 

#6 2020-07-03 21:21:15

StephanieM
Member
2020-07-01
3

Re: Piwigo throws errors with PHP 7.4.7

Thank you erAck - that got rid of the messages. However, I still think Piwigo should be updated to run cleanly with PHP 7.4.7.

Offline

 

#7 2020-07-04 00:33:46

jnashpiwigo
Piwigo Team
2014-10-21
236

Re: Piwigo throws errors with PHP 7.4.7

I'd ask about getting a refund...

Not sure how much luck you'll have though as Piwigo does run cleanly with 7.4.7.

PHP doesn't however, as it spits out those deprecated warnings (not errors)  - Maybe you can seek a discount from them?

Last edited by jnashpiwigo (2020-07-04 00:35:19)

Offline

 

#8 2020-07-05 01:26:34

executive
Member
2017-08-16
1099

Re: Piwigo throws errors with PHP 7.4.7

Cpanel users don't even need to touch any codes or extensions. It's right in the PHP options.

https://i.imgur.com/Fto74g0.png

Offline

 

#9 2020-07-05 07:54:21

Zentalquabula
Member
2014-05-10
191

Re: Piwigo throws errors with PHP 7.4.7

Default value for display_error is off in production settings.

[Github] php-src file php.ini-production@L96

jnashpiwigo wrote:

I'd ask about getting a refund...

Not sure how much luck you'll have though as Piwigo does run cleanly with 7.4.7.

PHP doesn't however, as it spits out those deprecated warnings (not errors)  - Maybe you can seek a discount from them?

Offline

 

#10 2020-07-05 12:05:42

erAck
Only trying to help
2015-09-06
1064

Re: Piwigo throws errors with PHP 7.4.7

Zentalquabula wrote:

Default value for display_error is off in production settings.

Shrug, the effective setting entirely depends on what your hosting provider configures in php.ini


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

Offline

 

Board footer

Powered by FluxBB

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