Announcement

#1 2023-01-22 14:20:48

fruityten
Member
2020-03-11
4

[resolved] Warning: Attempt to read property "value" after server migration

Hello,

I have migrated my instance from one server to another and I am now getting the following error in the console bit at the top of my Piwigo homepage:

Code:

/storage/piwigo/_data/templates_c/q8iuuy_rafr8z^d6f35c5e013fc6191b9bc70762dff28b14c92af3_0.file.header.tpl.php on line 64

Warning: Attempt to read property "value" on null in /storage/piwigo/_data/templates_c/q8iuuy_rafr8z^d6f35c5e013fc6191b9bc70762dff28b14c92af3_0.file.header.tpl.php on line 64
">

I've tried clearing the user cache and purging templates from the maintenance page. I've migrated servers previously and not had an issue but this time I have gone from Debian -> Ubuntu rather than Debian -> Debian.

Anyone any ideas what this is complaining about? I'd really like to avoid re-installing Piwigo as everything else is working fine and the instance is over 3 years old.

Thank you for any assistance you can offer.

Environment

    Piwigo 13.4.0 Check for upgrade
    Installed on 16 August 2019, 3 years 5 months 5 days ago
    Operating system: Linux
    PHP: 8.1.2-1ubuntu2.9 (Show info) [2023-01-22 13:19:50]
    MySQL: 5.5.5-10.6.11-MariaDB-0ubuntu0.22.04.1 [2023-01-22 13:19:50]
    Graphics Library: External ImageMagick 6.9.11-60
    Cache size 1963.46 Mo   calculated 14 minutes ago Refresh

Activated plugin list 7

    Admin Tools
    Exif View
    Language Switch
    LocalFiles Editor
    meta
    OpenStreetMap
    Statistics


Piwigo URL: https://itsjp.pro

Offline

 

#2 2023-01-22 15:56:09

erAck
Only trying to help
2015-09-06
2035

Re: [resolved] Warning: Attempt to read property "value" after server migration

Usually unassigned template variables, like

Code:

{... <?php echo $_smarty_tpl->tpl_vars['PAGE_TITLE']->value; ...}

where tpl_vars['PAGE_TITLE'] wasn't set. (before the 'value' warning there should had been a 'Undefined array key "PAGE_TITLE"' warning as well). If not, then just value may had been not set. Check what's actually in the file on the indicated line.

Since PHP 8 they generate that warning, maybe you ran an earlier PHP before. The proper remedy would be to either set the variable in code, or prepare the template to cope with unset variables like asking isset($_smarty_tpl->tpl_vars['PAGE_TITLE']) or isset($_smarty_tpl->tpl_vars['PAGE_TITLE']->value) before use. Up to the programmer.

Once you found out what exactly it is and to which plugin it belongs (the source code the template .php was generated from is mentioned at start of file), it would be best to report an issue.

I reported two plugin places just yesterday, see
[Github] piwigo-ShareAlbum issue #93
[Github] Piwigo-automatic_size issue #3

To suppress messages or rather log them see [Forum, post 183126 by erAck in topic 31852] Menubar tags issue after 12.2.0 upgrade.


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

Offline

 

#3 2023-01-22 18:08:50

fruityten
Member
2020-03-11
4

Re: [resolved] Warning: Attempt to read property "value" after server migration

erAck wrote:

To suppress messages or rather log them see [Forum, post 183126 by erAck in topic 31852] Menubar tags issue after 12.2.0 upgrade.

This will do for me, thank you.

Offline

 

Board footer

Powered by FluxBB

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