Forum

[SOLVED] Error mess...
 
Notifications
Clear all

[SOLVED] Error message after upgrade to PHP 8.1

5 Posts
2 Users
0 Reactions
1,841 Views
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 
[#8315]

Hello,

I'm testing upgrade of my server to PHP 8.1, and after connection I get an error when displaying the left-side menu.

 

*

* ERROR ** [V9.5.5] on file '/projeqtor/view/menuNewGuiLeft.php' at line (677)
** ERROR ** [V9.5.5] cause = ucfirst(): Passing null to parameter #1 ($string) of type string is deprecated

Is there a solution for this ?


 
Posted : 16 Jun 2022 13H31
(@babynus)
Posts: 14952
Member Admin
 

There is an easy workaround : give a resource name to all users.

NB : fix will be included in V10.0


 
Posted : 16 Jun 2022 13H42
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 

Unfortunately I'm still getting an error.
I updated to add some names everywhere, and now it seems both 'username' and full name' are ok :

 

But still the same error


 
Posted : 16 Jun 2022 15H09
(@babynus)
Posts: 14952
Member Admin
 

Hi,

in file view/menuNewGuiLeft.php, replace line 677 from

$nameSubstr=ucfirst(pq_substr($nameSubstr,0,-4));

to 

$nameSubstr=($nameSubstr)?ucfirst(pq_substr($nameSubstr,0,-4)):'';

 
Posted : 18 Jun 2022 11H12
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 

Great to have a fix thanks 🙂
I'll stay on PHP 8.0 for now on our prod servers and upgrade after v10 to include the fix.

Thanks !


 
Posted : 21 Jun 2022 11H26
Share:

Scroll to Top