Announcement

#1 2024-05-17 18:05:16

dewluca
Member
2015-05-26
13

Error on comments pages

Greetings,

I recently updated from a very old version of Piwigo to 14.4.0 AND updated my PHP to 8.2

I've sorted out several errors that have resulted but now find the following on pages related to comments (which I also can't seem to manage to display anymore):

Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ladewitt/natomabaycve62.org/photogallery/include/functions_plugins.inc.php on line 214

Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ladewitt/natomabaycve62.org/photogallery/include/functions_plugins.inc.php on line 214

Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ladewitt/natomabaycve62.org/photogallery/include/functions_plugins.inc.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/ladewitt/natomabaycve62.org/photogallery/include/functions_plugins.inc.php:214) in /home/ladewitt/natomabaycve62.org/photogallery/include/page_header.php on line 99

--------------
I'm not sure what plug in this might be related to (I thought I had disabled or deleted most of them).
Any help/pointers would be appreciated.

-------------------
Piwigo 14.4.0 Check for upgrade
Installed on 26 May 2015, 8 years 11 months 3 weeks 1 day ago
Operating system: Linux
PHP: 8.2.15 (Show info) [2024-05-17 08:59:10]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2024-05-17 08:59:10]
Graphics Library: ImageMagick 6.9.10-23
Cache size N/A   never calculated Refresh

Piwigo URL: https://natomabaycve62.org/photogallery/
Error seen at: https://natomabaycve62.org/photogallery/comments.php
as well as in admin tools > comments section

Offline

 

#2 2024-05-17 23:27:41

erAck
Only trying to help
2015-09-06
2128

Re: Error on comments pages

It's (only) a deprecation, either disable displaying deprecated and warning messages (because it effectively may break functionality of a page even if nothing else is broken), in local config

$conf['show_php_errors_on_frontend'] = false;

or fine tune message classes to display, see [Forum, post 183126 by erAck in topic 31852] Menubar tags issue after 12.2.0 upgrade, or better, log to file instead.
See [Forum, post 180778 by erAck in topic 31258] Error Message.


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

Offline

 

#3 2024-05-20 17:04:22

dewluca
Member
2015-05-26
13

Re: Error on comments pages

I would really rather find and fix errors rather than suppress them . . .
Just hiding the problem is like painting over a mold spot on the wall . . . eventually it comes back to bite you . . .

The main (possibly related) issue is that the comments aren't actually displaying with the photos anymore.

I'm guessing there's some setting that changed when I had to changes themes with the update.  But I haven't been able to locate it.

Anyone else have thoughts about why the comments aren't working AND I'm getting the error message?

Offline

 

#4 2024-05-21 22:41:27

erAck
Only trying to help
2015-09-06
2128

Re: Error on comments pages

dewluca wrote:

I would really rather find and fix errors rather than suppress them . . .

But you do know what a deprecation message is? It tells that the code in question works now but will cease to work in a later version of PHP.

The main (possibly related) issue is that the comments aren't actually displaying with the photos anymore.

And that may as well be because those messages written to display interfere. Just try disabling E_DEPRECATED.


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

Offline

 

Board footer

Powered by FluxBB

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