mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Compatibility with PHP 8.3? #5224
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#5224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
@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.
@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)"} []
@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,
@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