flatpressblog / flatpress

FlatPress is a lightweight, easy-to-set-up flat-file blogging engine.
https://flatpress.org
GNU General Public License v2.0
185 stars 57 forks source link

PHP warnings in conjunction with seometataginfo plugin (PHP 8.1 + Nginx 1.22) #236

Closed Fraenkiman closed 10 months ago

Fraenkiman commented 1 year ago

Hello all,

Laborix reports PHP warnings after installing FlatPress 892.

PHP Warning:  Undefined variable $file_meta in .../fpgit892/fp-plugins/seometataginfo/plugin.seometataginfo.php on line 458
PHP Deprecated:  file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in .../fpgit892/fp-plugins/seometataginfo/plugin.seometataginfo.php on line 458

Server: Nginx 1.22, PHP 8.1 This warning occurs when you enter either an empty string or a search term in the search. The warnings appear in php_error.log, not in the browser.

With best regards Frank

Fraenkiman commented 10 months ago

Solved with af14f3f