Announcement

#1 2024-04-25 22:59:52

bushi
Member
2024-04-25
9

warning: undefined array key "tn_class" in /config/www/_data/template

On my landing page running beneath my photo albums I see this warning text.

I have no idea what I screwed up or where to dig to fix. Would appreciate any pointers!

I see it repeated once for each folder on the home page.

Running 14.4.0, clean install. I didn't have this right after setup so likely caused it in some way, just not at clear as to how, no code changes.

Offline

 

#2 2024-04-26 00:46:22

erAck
Only trying to help
2015-09-06
2075

Re: warning: undefined array key "tn_class" in /config/www/_data/template

It's (only) a warning, 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-04-26 08:00:37

bushi
Member
2024-04-25
9

Re: warning: undefined array key "tn_class" in /config/www/_data/template

Thanks!
I'm running this via docker on unraid. What's the proper file name to edit, config.inc.php? I'm poking around in the console but's not obvious to me.

Offline

 

#4 2024-04-26 08:16:33

bushi
Member
2024-04-25
9

Re: warning: undefined array key "tn_class" in /config/www/_data/template

To answer my own question,

on unraid
yourhost\appdata\piwigo\www\local\config
edit
config.inc.php

as erAck helpfully said
$conf['show_php_errors_on_frontend'] = false;

Offline

 

#5 2024-04-26 12:29:25

erAck
Only trying to help
2015-09-06
2075

Re: warning: undefined array key "tn_class" in /config/www/_data/template

Or just use the LocalFiles Editor extension plugin.


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

Offline

 

Board footer

Powered by FluxBB

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