TerryL
20 November 2022 20:02
1
Hi all
Can anyone help me with the following error?
PHP Fatal error: Declaration of AOPInboundEmail::handleCreateCase(Email $email, $userId) must be compatible with InboundEmail::handleCreateCase($email, $userId) in /home/terry/public_html/crm/modules/InboundEmail/AOPInboundEmail.php on line 59
I am running SuiteCRM Version 7.12.7 Sugar Version 6.5.25 (Build 344).
My SCRM error.log is logging the following error every minute. I assume when it goes to check mail.
I am a little baffled as to what this error is about and how to fix it.
Any pointers in the right direction would help.
Thanks Terry
pgr
20 November 2022 21:55
2
This is a known issue:
salesagility:hotfix
← kgaillot:bug_9728
opened 08:21PM - 05 Aug 22 UTC
… from AOPInboundEmail.php
## Description
Trying to run cron.php with PHP … 8 fails with a fatal error (see [issue salesagility/SuiteCRM-Core#143](https://github.com/salesagility/SuiteCRM-Core/issues/143)):
PHP Fatal error: Declaration of AOPInboundEmail::handleCreateCase(Email $email, $userId) must be compatible with InboundEmail::handleCreateCase($email, $userId)
## Motivation and Context
This allows cron.php to succeed on a system with PHP 8.
The fix was suggested by pgr on forum team: "it’s a known issue that was aggravated in PHP 8 because it used to be a warning, now it’s FATAL"
## How To Test This
Run cron.php with PHP 8
(Note: for the script to fully succeed, PR salesagility/SuiteCRM#9731 for Issue salesagility/SuiteCRM#9730 must also be applied)
## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
### Final checklist
- [x] My code follows the code style of this project found [here](https://docs.suitecrm.com/community/contributing-code/coding-standards/).
- [ ] My change requires a change to the documentation.
- [x] I have read the [**How to Contribute**](https://docs.suitecrm.com/community/contributing-code/) guidelines.
You’ll find it’s fixed in 7.12.8