General permissions gives fatal error with PHP8.1

Started by ~Souza~, October 30, 2024, 05:13:05 AM

Previous topic - Next topic

~Souza~

I have Light Portal installed and that requires at least PHP8.1. But in PHP8.1 (or 8.0) I can't load general permissions. Seems to be the only one not loading. The error I get is:

Fatal error: Uncaught TypeError: Unsupported operand types: string + string in (website)/forum/Sources/ManagePermissions.php:302 Stack trace: #0
(website)/forum/Sources/Subs.php(6068): PermissionIndex() #1
(website)/forum/Sources/ManagePermissions.php(77): call_helper('PermissionIndex') #2
(website)/forum/Sources/Admin.php(499): ModifyPermissions() #3
(website)m/forum/index.php(196): AdminMain() #4 {main} thrown in
(website)/forum/Sources/ManagePermissions.php on line 302

Hope someone knows how to solve it!

Doug Heffernan

Can you uninstall the portal and the other custom mods and see if the error will go away?

Kindred

what OTHER mods do you have?   Because SMF 2.1.x supports php 8.1 without error AFAIK
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

~Souza~

I uninstalled all mods, did a clean install and still it's not working. Only when I change back to PHP7.4 will it work again.

Kindred

Then you have something seriously misconfigured....

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

~Souza~

Quote from: Kindred on October 31, 2024, 07:55:04 AMThen you have something seriously misconfigured....



Ya think...? It would be helpful to know WHAT is misconfigured. My board is old, database started in 2009 as a phpbb2 forum, was converted to smf around 2011, always updated and now recently upgraded to 2.1.4. Somewhere something is not right, I am fully aware it's a misconfiguration, but if I knew more than that I wouldn't have asked for help. If I at least would have a hint on where to find the problem I would probably be able to figure it out.

~Souza~

p.s. in between have had a gazillion mods, have imported stuff in fresh databases etc. Forum is working fine on 7.4 so I just installed TinyPortal instead of light portal for now. Maybe when 2.1.5 comes it will fix the issue somehow.

vbgamer45

Can you attach your Sources/ManagePermissions.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro


Doug Heffernan

Quote from: ~Souza~ on October 31, 2024, 07:38:49 PMYa think...?

First off, when you are asking for support it would help if you tone down the sarcasm and the attitude. Kindred is trying to help you.

Quote from: ~Souza~ on October 31, 2024, 07:38:49 PMIt would be helpful to know WHAT is misconfigured. My board is old, database started in 2009 as a phpbb2 forum, was converted to smf around 2011, always updated and now recently upgraded to 2.1.4. Somewhere something is not right, I am fully aware it's a misconfiguration, but if I knew more than that I wouldn't have asked for help. If I at least would have a hint on where to find the problem I would probably be able to figure it out.

According to the info that you provided us, that error is caused due to php 8.1. incompability. As mentioned above, Smf 2.1.4 is fully compatible with php 8.1., so that error is most likely caused by a mod that is not compatible with php 8.1. But without having an actual look in the environment where the error is happening, all we can do is make an educated guess.

That being said, you claimed that you did a clean install and the error is still happening. That's just not possible. So that makes me think that the clean install that you did was not done properly. Can you tell us how you did the clean install?

To elaborate a little further on the error, 2 vars/strings or whatever are being concatenated together with the + operator, which is depricated. For this error to go away, a valid concatenation operator should be used instead, such as the dot one (.) for example.

Is that hint enough for you?


vbgamer45

You can try this file and see if it helps.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: