Member
Member
mowgli597   10-06-2024, 07:31
#1

After updating to 1.6.3 the Debug log is flooding with the following error message:

DEPRECATED: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/bpskdk/public_html/development/zenphoto/zp-core/functions/functions-basic.php on line 342
trim called from require_once (functions-basic.php [342])
from require_once (admin-globals.php [12])

this is then followed by further data on the trace which comes from various functions being called, e.g.:

from setup.php [2]
from admin-logs.php [8]

(these were entered in the log immediately after the update - other messages appear when accessing the albums, but the initial error on line 342 of functions-basic is always the same)

Have tried changing theme to one of the standard themes to see if the error was theme related but no difference.

Installation info:

Zenphoto version 1.6.3 (Official build) 
Current locale setting: en_US.UTF8  
 Server software: Apache
PHP version: 8.2.18
Database: MySQL 8.0.37
Database handler: mysqli
Database client: mysqlnd 8.2.18
Administrator
Administrator
acrylian   10-06-2024, 08:05
#2

It's not theme related and not an actual error (yet), just a deprecation notice. Nothing really to worry right now, just PHP 8+ being a bit more strict on variable values. We fixed lots of these issues already but surely have not caught all of them so they always pop up every now and then. Thanks for letting us know.

Administrator
Administrator
acrylian   10-06-2024, 08:17
#3

The issue should be fixed in the 1.6.4a support build which will be released very soon due to some important bugfixes.

Member
Member
mowgli597   03-07-2024, 08:21
#4

Indeed it is.

Thank you.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.