Page 1 of 1

FlatPress Github 892, nginx 1.22 and plugin photoswipe

Posted: Tue Apr 11, 2023 5:08 pm
by laborix
While testing with a FP blog with gallery, more PHP warnings appear:

Code: Select all

Warning: Undefined array key "default" in .../fpgit892/fp-plugins/photoswipe/photoswipefunctions.class.php on line 42
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in .../fpgit892/fp-plugins/photoswipe/photoswipefunctions.class.php on line 45
Warning: Undefined array key 0 in .../fpgit892/fp-plugins/photoswipe/photoswipefunctions.class.php on line 73
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../fpgit892/fp-plugins/photoswipe/photoswipefunctions.class.php on line 74
Warning: Trying to access array offset on value of type null in .../fpgit892/fp-plugins/photoswipe/photoswipefunctions.class.php on line 74
The current PHP 8.1 version is used and in this case the warning appears in the Webbrowser window.

Re: FlatPress Github 892, nginx 1.22 and plugin photoswipe

Posted: Sun Apr 16, 2023 3:47 pm
by fraenkiman
Hello Laborix,

Thank you very much for reporting. I have opened an issue on this.

With best weekend greetings
Frank

Re: FlatPress Github 892, nginx 1.22 and plugin photoswipe

Posted: Sun Dec 31, 2023 6:18 pm
by Arvid
Matthias, thanks for reporting, and Frank, thanks for creating the issue!
I'll have to inspect this; the issue is now part of the 1.3 milestone.

You two, please enjoy a fantastic New Year's Eve - "good slide" oder so :)

Re: FlatPress Github 892, nginx 1.22 and plugin photoswipe

Posted: Sun Jan 21, 2024 12:18 pm
by Arvid
Matthias,

are you still able to reproduce this? I have E_ALL error logging enabled on my apache, but the error does not seem to occur (1.3 beta 1).
If reproducable: What is the content of your entry that triggers the error?

All the best,
Arvid

Re: FlatPress Github 892, nginx 1.22 and plugin photoswipe

Posted: Sun Jan 21, 2024 4:14 pm
by laborix
Arvid wrote: Sun Jan 21, 2024 12:18 pm... are you still able to reproduce this? ...
I can no longer reproduce the error as I no longer use this environment.

The current test environment with "error_reporting = E_ALL":
Nginx 1.24, PHP 8.1.27 and FlatPress Github 1142

The FlatPress Github 1142 version with PrettyURLs and activated Photoswipe plugin runs in the quick test without PHP errors. Clicking through the FlatPress-Leggero theme style gallery images went through without a PHP error message.
Thus, the error case #235 could be closed.

Re: FlatPress Github 892, nginx 1.22 and plugin photoswipe

Posted: Sun Jan 21, 2024 7:46 pm
by Arvid
Okay, thanks for checking. I closed the issue :)