Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

: Attempt to read property "value" on null in #2004

Closed
crisleipnitz opened this issue Sep 26, 2023 · 11 comments
Closed

: Attempt to read property "value" on null in #2004

crisleipnitz opened this issue Sep 26, 2023 · 11 comments

Comments

@crisleipnitz
Copy link

Hi, all. Can you help me with this issue:

/config/www/_data/templates_c/1uyas8y_rafr8z^51f34276967318fc82694b733f6652fbc085696f_0.file.header.tpl.php on line
109

Warning
: Attempt to read property "value" on null in
/config/www/_data/templates_c/1uyas8y_rafr8z^51f34276967318fc82694b733f6652fbc085696f_0.file.header.tpl.php
on line
109

">

@osworx
Copy link
Contributor

osworx commented Sep 26, 2023

Could you post which versions of Piwigo and php you are using?

@crisleipnitz
Copy link
Author

[Piwigo 14.0.0.beta3]
Using this docker img: https://hub.docker.com/r/linuxserver/piwigo

@crisleipnitz
Copy link
Author

Tag 13.8.0

@crisleipnitz
Copy link
Author

PHP: 8.1.22

@osworx
Copy link
Contributor

osworx commented Sep 27, 2023

Unfortunetaly are there several uninitialized variables through the whole system.
Guess (without closer checking that file) one of those bugs.
The core devs of Piwigo should check that an fix.

@crisleipnitz
Copy link
Author

I hope so, but I wander if they already know that... Until now I really don´t know what to do.

@osworx
Copy link
Contributor

osworx commented Sep 27, 2023

Sorry, tried to help you (soving that bug is easy), but my installation (got it from here: https://piwigo.org/forum/viewtopic.php?id=33105) has less lines.
Therefore I don't know what your lin 109 contains.
Maybe post it here or open a new thread in the piwigo forum: https://piwigo.org/forum/viewforum.php?id=8

@crisleipnitz
Copy link
Author

The line is not always the same. For now, the message I got is:

/config/www/_data/templates_c/rr6dxn_rafr8z^afffd7bc43f1f2b35d1815b0cc89de72f825b1df_0.file.header.tpl.php on line 63

Warning: Attempt to read property "value" on null in /config/www/_data/templates_c/rr6dxn_rafr8z^afffd7bc43f1f2b35d1815b0cc89de72f825b1df_0.file.header.tpl.php on line 63
">

@erAck
Copy link
Contributor

erAck commented Sep 27, 2023

You have to open that file and look in the header comment what source template file actually generated the file. It might not even be Piwigo core but some plugin.

@osworx
Copy link
Contributor

osworx commented Sep 28, 2023

Correct what @erAck said.
Not only the error/warning message is the important part, also that mentioned line.

And if the line is changing, it seems that a plugin is changing that file.
Can be easely tested wehn you disable all plugins and perfom the same action - repeat that by enabling the plugins one by one.
Once you should then know which cause this error - then a help is possible.

@crisleipnitz
Copy link
Author

Guys, problem solved. The Meta Plugin caused this error. I had to disable all the plugins to find it out. I appreciate your help and want to thank you for taking a moment on this.

@plegall plegall closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants