Compatibility with PHP 8.3? #5224

Open
opened 2026-02-20 16:31:40 -05:00 by deekerman · 4 comments
Owner

Originally created by @rtpt-alexanderneumann on GitHub (Jul 31, 2024).

Issue

Thank you very much for SuiteCRM! I hope this is the right place to raise this issue, please let me know if I should raise it somewhere else.

Since newer Linux distributions like Fedora Server 40 only ship PHP 8.3, I'm wondering: what is the status of PHP 8.3 support? What are your plans?

I've tried it and quickly ran into things like the Duplicate declaration of static variable $sfh (also mentioned here), which seems to be caused by PHP 8.3 being much stricter and treating warnings as errors now.

Possible Fix

No response

Steps to Reproduce the Issue

1. Install SuiteCRM 7.14.4 on Fedora Server 40 (with PHP 8.3 and no other option available)

Context

I've installed SuiteCRM on Fedora Server 39, then updated it to 40 and discovered that SuiteCRM does not run any more. I've then rolled back the update. We'll get updates for Fedora 39 up until November, I'll need to find a solution for afterwards.

Version

7.14.4

What browser are you currently using?

Firefox

Browser Version

Firefox 128

Environment Information

PHP 8.3

Operating System and Version

Fedora Server 40

Originally created by @rtpt-alexanderneumann on GitHub (Jul 31, 2024). ### Issue Thank you very much for SuiteCRM! I hope this is the right place to raise this issue, please let me know if I should raise it somewhere else. Since newer Linux distributions like Fedora Server 40 only ship PHP 8.3, I'm wondering: what is the status of PHP 8.3 support? What are your plans? I've tried it and quickly ran into things like the `Duplicate declaration of static variable $sfh` (also mentioned [here](https://community.suitecrm.com/t/8-5-1-fails-to-install-on-virtualmin-virtual-server-ubuntu-22-04-php-8-3/91872)), which seems to be caused by PHP 8.3 being much stricter and treating warnings as errors now. ### Possible Fix _No response_ ### Steps to Reproduce the Issue ```bash 1. Install SuiteCRM 7.14.4 on Fedora Server 40 (with PHP 8.3 and no other option available) ``` ### Context I've installed SuiteCRM on Fedora Server 39, then updated it to 40 and discovered that SuiteCRM does not run any more. I've then rolled back the update. We'll get updates for Fedora 39 up until November, I'll need to find a solution for afterwards. ### Version 7.14.4 ### What browser are you currently using? Firefox ### Browser Version Firefox 128 ### Environment Information PHP 8.3 ### Operating System and Version Fedora Server 40
Author
Owner

@chris001 commented on GitHub (Aug 3, 2024):

This is certainly doable with the official guide for code running on PHP 8.2 what to modify to make it run on PHP 8.3.

@chris001 commented on GitHub (Aug 3, 2024): This is certainly doable with the [official guide for code running on PHP 8.2 what to modify to make it run on PHP 8.3](https://www.php.net/manual/en/migration83.php).
Author
Owner

@wriver4 commented on GitHub (Dec 13, 2024):

Comment the out the following lines specified in the errors from the error log and it will install and run.
example: // static $sfh;
[2024-12-12 21:24:09] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Duplicate declaration of static variable $sfh" at aow_utils.php line 645 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Compile Error: Duplicate declaration of static variable $sfh at /var/www/crm.waveguardco.net/public/legacy/modules/AOW_WorkFlow/aow_utils.php:645)"} []
[2024-12-13 14:28:17] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Duplicate declaration of static variable $sfh" at InlineEditing.php line 294 {"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Compile Error: Duplicate declaration of static variable $sfh at /var/www/crm.waveguardco.net/public/legacy/include/InlineEditing/InlineEditing.php:294)"} []

@wriver4 commented on GitHub (Dec 13, 2024): Comment the out the following lines specified in the errors from the error log and it will install and run. example: // static $sfh; [2024-12-12 21:24:09] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Duplicate declaration of static variable $sfh" at aow_utils.php line 645 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Duplicate declaration of static variable $sfh at /var/www/crm.waveguardco.net/public/legacy/modules/AOW_WorkFlow/aow_utils.php:645)"} [] [2024-12-13 14:28:17] request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\FatalError: "Compile Error: Duplicate declaration of static variable $sfh" at InlineEditing.php line 294 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Compile Error: Duplicate declaration of static variable $sfh at /var/www/crm.waveguardco.net/public/legacy/include/InlineEditing/InlineEditing.php:294)"} []
Author
Owner

@SinergiaCRM commented on GitHub (Feb 3, 2025):

Hi team,

Do we have any updates on this issue?

We are currently preping to upgrade from 7.12 to 7.14 and would prefer to push forward directly to PHP 8.3.

Thanks,

@SinergiaCRM commented on GitHub (Feb 3, 2025): Hi team, Do we have any updates on this issue? We are currently preping to upgrade from 7.12 to 7.14 and would prefer to push forward directly to PHP 8.3. Thanks,
Author
Owner

@SuiteBot commented on GitHub (Feb 6, 2025):

This issue has been mentioned on SuiteCRM. There might be relevant details there:

https://community.suitecrm.com/t/php-8-4-is-a-major-update-of-the-php-language/97706/5

@SuiteBot commented on GitHub (Feb 6, 2025): This issue has been mentioned on **SuiteCRM**. There might be relevant details there: https://community.suitecrm.com/t/php-8-4-is-a-major-update-of-the-php-language/97706/5
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5224
No description provided.