Hi guys.
I'm new to this, so hello at all.
I just wanted to setup projeqtor v934, latest version on my
rockylinux server
I have installed php8.1 with all its subcomponents, mariadb and apache
I came to the configuration page where I set all the parameters for db access etc, saved settings, got a warning for max_input_value and pressed continue (just wanted to proceed first and later "fix" o sea set this value correctly)
Then I got ERROR: an error ocurred....
So I changed loglevel to get any log file, restarted httpd and got this:
ERROR : trim(): Passing null to parameter #1 ($string) of type string is deprecated
in log file, there is
2021-11-30 21:36:28.219 ** ERROR ** [] ERROR **
2021-11-30 21:36:28.219 ** ERROR ** [] on file '/var/www/html/projeqtor/model/persistence/SqlElement.php' at line (747)
2021-11-30 21:36:28.219 ** ERROR ***** [] cause = trim(): Passing null to parameter #1 ($string) of type string is deprecated
Any ideas how to fix this? Am I missing sth?
ProjeQtOr is not validated on PHP 8.1
Please revert to PHP 8.0
I had a quick research last night and it seems php8.x is the "problem" there are not-nullable functions which have been nullable in previous versions.
see [ https://php.watch/versions/8.1/internal-func-non-nullable-null-deprecation ]
And now that the comment in your source tells
* @param $id the
* id of the object in the database (null if not stored yet)
the problem seams clear to me.
Setting back is not possible for me, because it's not the only thing running on that machine.
In readme.txt it tells "PHP 7.x or 8.0 is advised when available (the latest the better) : it brings great performance improvments"
so I thought it works.
Will the next release 9.4.0 work under php8.1?
Just to follow up, I installed it under a new, blanc vm using php8.0 and it works.
Will the next release 9.4.0 work under php8.1?
No, V9.4 is already under finalization, and drawbacks brought by php 8.1 are to numerous to be done in few days.
We'll work on the subject for V9.5