Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Installation issue ...
 
Notifications
Clear all

Installation issue - can't complete

6 Posts
2 Users
0 Reactions
1,896 Views
 jona
(@jona)
Posts: 11
Active Member
Topic starter
 
[#7930]

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?


 
Posted : 30 Nov 2021 21H50
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

ProjeQtOr is not validated on PHP 8.1
Please revert to PHP 8.0


 
Posted : 01 Dec 2021 10H57
 jona
(@jona)
Posts: 11
Active Member
Topic starter
 

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.


 
Posted : 01 Dec 2021 11H13
 jona
(@jona)
Posts: 11
Active Member
Topic starter
 

Will the next release 9.4.0 work under php8.1?


 
Posted : 01 Dec 2021 11H14
 jona
(@jona)
Posts: 11
Active Member
Topic starter
 

Just to follow up, I installed it under a new, blanc vm using php8.0 and it works.


 
Posted : 02 Dec 2021 12H28
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 03 Dec 2021 19H32
Share:

Scroll to Top