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.

Update PHP to 8.3 a...
 
Notifications
Clear all

Update PHP to 8.3 and above breaks LDAP

10 Posts
3 Users
0 Reactions
1,450 Views
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 
[#10035]

Hello,
On our test instance of projeqtor that we use for every update, we noticed that after updating PHP from 8.2 to 8.4 (we jumped a version since we don't update every time it happens)
Apparently, PHP 8.3 and above have deprecated ldap_connection from

ldap_connect($host, $port)
to
ldap_connect("ldap://$host:$port??369")

at least from whatI could see in the projeqtor log file Any idea how I could correct that ?
Since changing code in the projeqtor file will be overwritten next update I do ?

Thank you


 
Posted : 19 Jan 2026 12H58
(@cecile)
Posts: 161
Active Member Admin
 

Hello, 
Thanks for telling us.
Actually, the technical requirements advice to use only 8.3 version of PHP.
Your comment will be taken into consideration for future updates.

Have a nice day.
 


 
Posted : 19 Jan 2026 13H16
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 

Thank you for the swift answer
I will see with my colleague and try using 8.3 only
maybe something in 8.4 was more deprecated than 8.3
if not, we can just wait until a Projeqtor Update has a fix for it

Thank you again


 
Posted : 19 Jan 2026 13H26
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

We tried to fix some issues for PHP 8.4 compatibility on ProjeQtOr V12.4.1
So first, versions of ProjeQtOr before V12.4.1 won't be compatible at all with PHP 8.4
There are meny deprecations on V12.4 that are commonly used on many php developments.
We did not notice the issue with LDAP.
We'll check this.
Note that you can just configure PHP to remove deprecation notice 😉


 
Posted : 19 Jan 2026 16H27
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 

Thank you for the quick update
We will see on our end how it goes
Have a good day


 
Posted : 19 Jan 2026 16H35
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

I just checked : ProjeQtOr is already compatible with new ldap_connect syntax.
Old stlye syntax is deprecated since PHP 8.3 and has been fixed on ProjeQtOr V11.2.0 almost 2 years ago (Ticket #8079)
So you may be using a quite old version of ProjeQtOr, V11.1 or older.
V11.1.0 was deployed on december 2023, when PHP 8.3 was just brand new.
Don't expect this version to be compatible with PHP V8.4

So please remeber that we only support last stable release on this forum for free support.
If you need support for older version, have a look at our accurate and very reactive professional support service.


 
Posted : 19 Jan 2026 16H57
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 

Weirdly enough, my projeqtor on this instance is on 12.3.3, as I never go to the current one (12.4.1), I'm always using the previous stable version
I'll update PHP to 8.3 and 8.4 again and record the log as I forgot to do it before reverting to a backup

Thank you


 
Posted : 19 Jan 2026 17H00
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Be sure to enter LDAP Server in URL format
 


 
Posted : 20 Jan 2026 21H14
(@cpt_jabberwock)
Posts: 56
Active Member
Topic starter
 

Hello again, (sorry for the wait)

Here are the information about our testing instance (the one we update first to see if everything work)
Debian 13.3
PHP 8.2.29
Projeqtor 12.4.4

The problems I encounter are as follow
after updating to PHP 8.4 (8.4 now since it got a new version since) and adding all the extentions back (and reconfiguring the php.ini)
I can't log in and get this error in the log
 

I had forgotten to re-add the LDAP extention for PHP (2 first lines)

and then it tells me I have this problem of ldap°connect with two arguments
This is the ldap config in Projeqtor
 

Also, There doesn't seem to be any mail being sent anywhere on any of my Projeqtor instance since a few month
even using the test send in the global settings in Projeqtor to myself (and 0 error recorded, its green and all)
Openssl is installed properly and it worked before


 
Posted : 20 Apr 2026 17H43
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Your configuration still expects non uri format.
Just add in parameters.php

$ldapFormatUri=true;


 
Posted : 02 May 2026 17H04
Share:

Scroll to Top