salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.53k stars 2.1k forks source link

HTTP Error 500 after upgrade to 7.13 in "Inbound Email Accounts" Setting #9878

Closed maurizioaiello closed 1 year ago

maurizioaiello commented 1 year ago

If your issue is still applicable in 7.12.x, please create the issue following the template below -->

Issue

After upgrade to 7.13 from 7.12.8, following the compatibility matrix, going into User's "Inbound Email Accounts" there is the possibility to set gmail map server for example. Doing that, selecting "Test Connection Setting", everything is ok.

When "Save" button is clicked a blank screen appears, with an HTTP ERROR 500.

Expected Behavior

It should save the setting

Actual Behavior

When "Save" button is clicked a blank screen appears, with an HTTP ERROR 500.

Possible Fix

No idea

Steps to Reproduce

A brief summary of the apache2 log follows:

Mon Jan 02 12:49:04.889497 2023] [proxy_fcgi:error] [pid 337591] [client 10.20.66.100:63216] AH01071: Got error 'p on line 184PHP message: PHP Warning: Undefined array key “link” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “customCode” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “tabindex” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/Smarty/plugins/function.sugar_field.php on line 104PHP message: PHP Warning: Undefined array key “link” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “bold” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “bold” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “link” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “customCode” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “tabindex” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/Smarty/plugins/function.sugar_field.php on line 104PHP message: PHP Warning: Undefined array key “link” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “bold” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “bold” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “link” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “customCode” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/cache/smarty/templates_c/%%14^148^14804A90%%DashletGenericDisplay.tpl.php on line 184PHP message: PHP Warning: Undefined array key “tabindex” in /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/Smarty/plugins/function.sugar_field.php on line 104PHP message:

Context

It is a high priority, blocking problem.

Your Environment

clemente-raposo commented 1 year ago

Hi @maurizioaiello,

Thank you for reporting this issue.

Could you try setting the following error reporting on you php.ini? (This is a temporary work around. We are looking into fixing all the notices and warnings from the legacy code. )

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE & ~E_WARNING

I'm not sure the logs about are related with the error you are seeing as many of them are related with Dashlets display. Do you have any errors on your suitecrm.log?

maurizioaiello commented 1 year ago

Hi and thanks for the answer. Here are the errors (only fatal):

[03-Jan-2023 13:37:54 Europe/Berlin] PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /var/www/suitecrm.mydomain.com/SuiteCRM_713/modules/InboundEmail/Save.php:90 Stack trace:

0 /var/www/suitecrm.mydomain.com/SuiteCRM_713/modules/InboundEmail/Save.php(90): trim()

1 /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/MVC/View/SugarView.php(824): include_once('...')

2 /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile()

3 /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/MVC/View/SugarView.php(210): ViewClassic->display()

4 /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/MVC/Controller/SugarController.php(432): SugarView->process()

5 /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/MVC/Controller/SugarController.php(363): SugarController->processView()

6 /var/www/suitecrm.mydomain.com/SuiteCRM_713/include/MVC/SugarApplication.php(101): SugarController->execute()

7 /var/www/suitecrm.mydomain.com/SuiteCRM_713/index.php(52): SugarApplication->execute()

8 {main}

thrown in /var/www/suitecrm.mydomain.com/SuiteCRM_713/modules/InboundEmail/Save.php on line 90

clemente-raposo commented 1 year ago

Hi @maurizioaiello,

Thank you for the logs.

Our QA team has also been able to replicate. It is happening in php 8, 7.4 should work ok.

We are currently looking into it.

maurizioaiello commented 1 year ago

I confirm, it is working on 7.4!

SuiteBot commented 1 year ago

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

https://community.suitecrm.com/t/http-error-500-on-save-setting-inbound-email-account/87476/13