mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Since version 7.12.5 an email import is no longer possible #4881
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#4881
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 @C42AT on GitHub (Oct 28, 2022).
Issue
Since version 7.12.4 an email import is no longer possible
Expected Behavior
Since version 7.12.4 an email import is no longer possible -> Modal "An error has occurred"
-> http://xxxxxxx/index.php?module=Emails&action=ImportView&_=1666952964408 -> HTTP 500 Response
Actual Behavior
PHP Error-LOG:
Fatal error: Uncaught TypeError: Unsupported operand types: string % int in /bitnami/suitecrm/cache/smarty/templates_c/%%1A^1AB^1AB6DD00%%tab_panel_content.tpl.php:194 Stack trace: #0 /bitnami/suitecrm/vendor/smarty/smarty/libs/Smarty.class.php(1875): include() #1 /bitnami/suitecrm/include/Sugar_Smarty.php(168): Smarty->_smarty_include() #2 /bitnami/suitecrm/cache/smarty/templates_c/%%A2^A25^A25BDAE8%%ImportView.tpl.php(156): Sugar_Smarty->_smarty_include() #3 /bitnami/suitecrm/vendor/smarty/smarty/libs/Smarty.class.php(1269): include('...') #4 /bitnami/suitecrm/include/Sugar_Smarty.php(151): Smarty->fetch() #5 /bitnami/suitecrm/include/TemplateHandler/TemplateHandler.php(172): Sugar_Smarty->fetch() #6 /bitnami/suitecrm/include/TemplateHandler/TemplateHandler.php(361): TemplateHandler->buildTemplate() #7 /bitnami/suitecrm/include/EditView/EditView2.php(934): TemplateHandler->displayTemplate() #8 /bitnami/suitecrm/include/MVC/View/views/view.edit.php(104): EditView->display() #9 /bitnami/suitecrm/include/MVC/View/SugarView.php(210): ViewEdit->display() #10 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(432): SugarView->process() #11 /bitnami/suitecrm/include/MVC/Controller/SugarController.php(363): SugarController->processView() #12 /bitnami/suitecrm/include/MVC/SugarApplication.php(101): SugarController->execute() #13 /bitnami/suitecrm/index.php(55): SugarApplication->execute() #14 {main} thrown in /bitnami/suitecrm/cache/smarty/templates_c/%%1A^1AB^1AB6DD00%%tab_panel_content.tpl.php on line 194Steps to Reproduce
-> Broswer Console: sugar_grp1_jquery.js?v=cKF5_SXiQ85BhW-fTYRB9A:2 GET http://xxxxx/index.php?module=Emails&action=ImportView&_=1666952964408 500 (Internal Server Error)
Context
High priority: A corresponding allocation of the emails in SuiteCRM is therefore not possible, so that consistent documentation can no longer be guaranteed - the CRM system becomes unusable.
Your Environment
@C42AT commented on GitHub (Oct 29, 2022):
Now I was able to further isolate the problem:
modules/Emails/include/ImportView/ImportView.tpl Line: 120
{{include file='themes/SuiteP/include/EditView/tab_panel_content.tpl'}}-> themes/SuiteP/include/EditView/tab_panel_content.tpl Line: 140
Error:
Fatal error: Uncaught TypeError: Unsupported operand types: string % int in
This could be the solution: convert $col to int from $col%2 to $col|intval%2
@alvanson commented on GitHub (Feb 9, 2023):
Confirmed that @C42AT's proposed solution solved the issue for me - SuiteCRM 7.13.1, PHP 8.0.27.