#1 2023-09-26 19:44:39

f3red
Member
Cold Springs (Reno), NV, USA
2015-06-11
71

Back2Front Error Messages

Hello/Hi/Greetings,

When attempting to designate a photo as a backside of another, I see the following message immediately following the "This picture is a backside" checkbox:

    Warning: Undefined array key "B2F_IS_VERSO" in /home/u_group/preller.us/384thBombGroupWebsite/htdocs/piwigo_384th_gallery/_data/templates_c/p6jhns_bdxo9y^82ee72dcda7e2f01282ae68e16349118fdb25090_0.file.picture_modify.tpl.php on line 415

Warning: Attempt to read property "value" on null in /home/u_group/preller.us/384thBombGroupWebsite/htdocs/piwigo_384th_gallery/_data/templates_c/p6jhns_bdxo9y^82ee72dcda7e2f01282ae68e16349118fdb25090_0.file.picture_modify.tpl.php on line 415
>

After clicking on the checkbox I see the following message following the "...of the picture n°" data entry field:

    /home/u_group/preller.us/384thBombGroupWebsite/htdocs/piwigo_384th_gallery/_data/templates_c/p6jhns_bdxo9y^82ee72dcda7e2f01282ae68e16349118fdb25090_0.file.picture_modify.tpl.php on line 422

Warning: Attempt to read property "value" on null in /home/u_group/preller.us/384thBombGroupWebsite/htdocs/piwigo_384th_gallery/_data/templates_c/p6jhns_bdxo9y^82ee72dcda7e2f01282ae68e16349118fdb25090_0.file.picture_modify.tpl.php on line 422

AND the data entry field contains the following: <br /><b>Warning</b>:  Undefined array key

By trial and error I learned that backside assignment is successful if I clear the data entry field before entering the index of the photo this one is the backside of.

Something clearly is rong but I am not sure where to start troubleshooting - especially since the plugin can be made to (apparently) function correctly.

HELP!

Piwigo 13.8.0
Installed on 7 June 2015, 8 years 3 months 2 weeks 4 days ago
Operating system: Linux
PHP: 8.0.28 (Show info) [2023-09-26 10:30:21]
MySQL: 8.0.28-0ubuntu0.20.04.3 [2023-09-26 10:30:21]
Graphics Library: External ImageMagick 6.9.7-4
Cache size N/A   never calculated

Admin Tools
Autocorrect Filename
Back2Front
Batch Downloader
Check Uploads
Comments on Albums
Community
Custom Download Link
Edit Filename
Exif View
Extended Description
File Uploader
Force HTTPS
Image Preview
LocalFiles Editor
Manage Properties Photos
Media Icon
Photo Update
Piwigo Donate
prevnext
RV DB Integrity
VideoJS

URL: https://photos.384thbombgroup.com/

Offline

 

#2 2023-09-28 16:11:21

f3red
Member
Cold Springs (Reno), NV, USA
2015-06-11
71

Re: Back2Front Error Messages

The same problem occurs on my Preller Family Gallery at http://gallery.preller.us/ with a new download and activation of Back2Front.

Offline

 

#3 2023-09-28 18:07:40

erAck
Only trying to help
2015-09-06
2184

Re: Back2Front Error Messages

Might be best to submit an issue at https://github.com/Piwigo/Piwigo-Back2Front/issues

Meanwhile ...as 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

 

#4 2023-09-28 18:45:50

f3red
Member
Cold Springs (Reno), NV, USA
2015-06-11
71

Re: Back2Front Error Messages

Thanks for the tips, erAck.

Offline

 

#5 2023-10-21 07:43:55

viosca
Member
St. Paul, MN US
2019-07-22
7

Re: Back2Front Error Messages

Fix posted to github on forked branch with a pending pull request.

https://github.com/Piwigo/Piwigo-Back2Front/pull/3

This is a fix for issue #2:
Fixed:
PHP Warnings due to uninitialized template variables.
Some logic in had to be modified to prevent empty/corrupt fields, etc.
Cleaned up grammar in English language translations.
Modified Maintenance mode to put check boxes before descriptions.
Added comments/notes describing code flow.
Testing:
Done in a docker container through localhost.
Done in a small production/online website hosted by godaddy: www.freshwater.ws

Offline

 

Board footer

Powered by FluxBB

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