-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoDaddy Email Sync Breaks on MIME Header Decoding in SuiteCRM 8.4 #363
Labels
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Severity: Major
Significant impact/severe disruption
Type: Bug
Something isn't working
Comments
I have a fix, but should I leave this open so you can create a branch? Do you want me to do it? I haven't done one of those before on here. I would be happy to learn. Replacing the function with this resolved my issue:
|
DBRenny
added a commit
to DBRenny/SuiteCRM-Core
that referenced
this issue
Oct 19, 2023
DBRenny
added a commit
to DBRenny/SuiteCRM-Core
that referenced
this issue
Oct 19, 2023
DBRenny
added a commit
to DBRenny/SuiteCRM-Core
that referenced
this issue
Oct 19, 2023
This reverts commit 5002ced.
DBRenny
added a commit
to DBRenny/SuiteCRM-Core
that referenced
this issue
Oct 19, 2023
Merged
6 tasks
johnM2401
added
Type: Bug
Something isn't working
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Area: Emails
Issues & PRs related to all things regarding emails & email module
Severity: Major
Significant impact/severe disruption
labels
Apr 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: Emails
Issues & PRs related to all things regarding emails & email module
Priority:Important
Issues & PRs that are important; broken functions; errors; there are workarounds
Severity: Major
Significant impact/severe disruption
Type: Bug
Something isn't working
Issue
We are experiencing an issue with the email synchronization functionality in SuiteCRM. Specifically, the system encounters a fatal error during the process of handling MIME header decoding for email subject, to list, from, and other headers. The error message indicates a problem with the foreach() function, suggesting that the variable being iterated upon is not an array or object as expected.
Expected Behavior
The CRM should seamlessly decode MIME headers and handle email headers, regardless of their encoding, without encountering fatal errors. The process should iterate over the decoded headers and correctly process the email details into a readable format.
Actual Behavior
Instead of successful processing, the system throws a fatal error, particularly pointing to the foreach() line in the handleMimeHeaderDecode method. The error message is: "Invalid argument supplied for foreach()". This issue disrupts the normal flow of email synchronization, preventing emails from being properly imported and read in the CRM.
Relevant logs indicate the error originates from the handleMimeHeaderDecode method, but there's no additional information about the state or format of the data being passed to foreach().
SuiteCRM_10236 sample log.txt
Possible Fix
A potential fix could involve adding robust checks before the foreach() statement to ensure the variable is indeed iterable. If the variable is a JSON string, it might require decoding with json_decode().
Here's a proposed code snippet (GPT helped): It referenced subject, but all header information except time information is not syncing.
Steps to Reproduce
Context
This is our pilot system, but we need to use as many integrated features as possible. I want to get through these roadblocks to start expanding the scope of users.
Outbound email automation still works, and in the meantime my users can use outlook. but this is a major adoptability issue.
Inbound email box view:
Email detail level view:
Your Environment
This is somewhat similar to this issue: SuiteCRM#9921, but I opened a new one so it could be replicated with my environment.
The text was updated successfully, but these errors were encountered: