I get a HTTP 500 error when I save an account, a contact or update any record

Hi,
I get a HTTP 500 error when I create an account, a contact or any new record (call, meeting). Same issue when I update any records.

Next after clic on “save” button, the 500 error is displayed on an empty page, with the URL index.php.

After pressing the F5 key to refresh the browser screen, the form page is displayed again. In some cases, my changes are saved, in other cases, especially when updating information, the changes are lost.

This error happens only on live server. In my local server its working fine .

My actual adjustments:

  • SuiteCRM-version: Version 7.11.15
  • Sugar Version 6.5.25 (version de construction 344)
  • Installation: on server at german host Strato
  • PHP 7.4
  • SuiteCRM (admin/locale): Default Character Set = UTF8
  • chmod -R 775 cache custom modules themes data upload config_override.php
  • chmod -R 755 on other folders

Any suggestions …?

Best Regards
Eric

Hi and welcome to the community!
Did you already have a look at the suitecrm.log/php-error log? Maybe there is some useful information.

Hi,
Thank you for your reply.

Where can I find this error log file?
I found this file at the root of the site: suitecrm.log

Is this the correct file?

This is what i found :

Sun Aug 09 19:25:24 2020 [14657][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:25:28 2020 [14726][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:30:03 2020 [2354][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Sun Aug 09 19:30:19 2020 [2362][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Sun Aug 09 19:30:22 2020 [2363][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Mon Aug 10 10:48:48 2020 [28208][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Mon Aug 10 10:54:10 2020 [10125][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array

Do you have any suggestion about this log? Or my request about error log file path?
Thank you

:point_up: this is your problem

Hi,
Thank you for your reply. I have changed php version to 7.2.
The http500 error is still present

Hi all,

After new tests with two web, no changes about this error.
Here are the results of the logs after two tests in two different web browsers (edge ​​and chrome).

Trace info:
/mnt/web514/d0/95/510728395/htdocs/crm/cache/smarty/templates_c/%%7A^7A5^7A50C0C3%%EditView.tpl.php[L:489](:StackTraceErrorHandler)
/mnt/web514/d0/95/510728395/htdocs/crm/vendor/smarty/smarty/libs/Smarty.class.php[L:1263](:include)
/mnt/web514/d0/95/510728395/htdocs/crm/include/Sugar_Smarty.php[L:163](Smarty:fetch)
/mnt/web514/d0/95/510728395/htdocs/crm/vendor/smarty/smarty/libs/Smarty.class.php[L:1113](Sugar_Smarty:fetch)
/mnt/web514/d0/95/510728395/htdocs/crm/modules/Configurator/views/view.edit.php[L:175](Smarty:display)
/mnt/web514/d0/95/510728395/htdocs/crm/include/MVC/View/SugarView.php[L:226](ConfiguratorViewEdit:display)
/mnt/web514/d0/95/510728395/htdocs/crm/modules/Configurator/views/view.edit.php[L:100](SugarView:process)
/mnt/web514/d0/95/510728395/htdocs/crm/include/MVC/Controller/SugarController.php[L:435](ConfiguratorViewEdit:process)
/mnt/web514/d0/95/510728395/htdocs/crm/include/MVC/Controller/SugarController.php[L:375](SugarController:processView)
/mnt/web514/d0/95/510728395/htdocs/crm/include/MVC/SugarApplication.php[L:113](SugarController:execute)
/mnt/web514/d0/95/510728395/htdocs/crm/index.php[L:52](SugarApplication:execute)

Mon Aug 10 11:27:36 2020 [12344][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: DynamicFields
Mon Aug 10 11:27:36 2020 [12344][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Mon Aug 10 11:27:36 2020 [12344][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Mon Aug 10 11:27:36 2020 [12344][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Mon Aug 10 11:27:36 2020 [12344][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Mon Aug 10 11:27:52 2020 [12973][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Mon Aug 10 11:27:55 2020 [12973][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Mon Aug 10 11:27:56 2020 [12973][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Connectors
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: Versions
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Mon Aug 10 11:28:00 2020 [13307][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] Cannot find bean file for module: CustomFields
Mon Aug 10 11:28:33 2020 [14424][82681def-4a5c-11d6-edf7-5f3006e169ba][FATAL] SugarBean::populateDefaultValues $field_defs should be an array

All the errors that look like the above are false-positives. Ignore them.

Look for other things, even if they look less important than FATAL.

Try a few options from Admin / repairs:

  • QR & R

  • Relationships

  • anything javascrcipt related

  • if you’re using a language pack, try the same things from the basic english version

  • try from a different user to see if it changes anything

Can you try following fixes, they might help.
Please add these values to config_override.php with replacing the URL to your CRM URL.

$sugar_config[‘http_referer’][‘list’][0] = ‘yourcrmurl.com’;
$sugar_config[‘http_referer’][‘actions’][0] = ‘index’;
$sugar_config[‘http_referer’][‘actions’][1] = ‘ListView’;
$sugar_config[‘http_referer’][‘actions’][2] = ‘DetailView’;
$sugar_config[‘http_referer’][‘actions’][3] = ‘EditView’;
$sugar_config[‘http_referer’][‘actions’][4] = ‘oauth’;
$sugar_config[‘http_referer’][‘actions’][5] = ‘authorize’;
$sugar_config[‘http_referer’][‘actions’][6] = ‘Authenticate’;
$sugar_config[‘http_referer’][‘actions’][7] = ‘Login’;
$sugar_config[‘http_referer’][‘actions’][8] = ‘SupportPortal’;
$sugar_config[‘http_referer’][‘actions’][9] = ‘RepairJSFile’;

Disable Client IP verification

$sugar_config[ ‘verify_client_ip’] = false;

change custom and cache directory permissions

chmod -R 777 cache custom modules themes

and make sure the Owner of these directories is set properly.
Disable PHP.ini Display Errors and Run Admin->Repair -> Quick Repair Rebuild a few times.

Hi,
I have implemented all of your recommendations. No change. Always the 500 error. For information, this error did not appear immediately after installation, but after several hours of use.
I then installed the French language module. No change either. The 500 error was already active.
Do you have any other suggestions or checks to perform?
Thank you for your help

Hi,
I have implemented all of your changes too. No change. Always the 500 error. For information, this error did not appear immediately after installation, but after several hours of use.
I then installed the French language module. No change either. The 500 error was already active.
Do you have any other suggestions or checks to perform?
Thank you for your help

I launched Admin-> Repair -> Quick Repair Rebuild 4 times

Always this error message
" Cette page ne fonctionne pas

Impossible de traiter cette demande via crmurl à l’heure actuelle.

HTTP ERROR 500"

Hi,

I have created a new user with admin rules, Unfortunately no change…

Thanks in advance for your help and testing new solutions. If you need more info to help me, I’m here to help.
Eric

Hi,

For your information, here are some extracts from the config.php file. Are they correct?

‘db_host_instance’ => ‘SQLEXPRESS’,
‘db_type’ => ‘mysql’,
‘db_port’ => ‘’,
‘db_manager’ => ‘MysqliManager’,
‘collation’ => ‘utf8_general_ci’,
‘charset’ => ‘utf8’,

array (
‘persistent’ => true,
‘autofree’ => false,
‘debug’ => 0,
‘ssl’ => false,
‘collation’ => ‘utf8_general_ci’,
‘charset’ => ‘utf8’,
),
‘default_action’ => ‘index’,
‘default_charset’ => ‘UTF-8’,
‘default_currencies’ =>

Hi,

What do you mean by “make sure the Owner of these directories is set properly.”?

Best
Eric

Hi,
One more information: When I try to upgrade an account, after click on “save” button, the error 500 is still remaining, but for each test, the record is property saved.

However, when I try to update a call or a meeting, the 500 error occurs when I click on the “save” button, but the changes to the recording are not saved.

if this information can help …

Eric

If you go in Admin / Diagnostics and download your phpinfo from there, which PHP version does it show?

Also, which value do you get for error_log in that phpinfo? If you go to the file mentioned in that entry, do you see any additional errors for your problem?

The rights and ownership of CRM files
you can change the crm directory to

chmod -R 0755 ./

and for some specific folders

chmod -R 0775 custom modules cache themes upload

Hi,

Faced with the number of difficulties to make the suiteCRM application work and the bugs encountered, I definitely switched to another CRM application, much simpler to install and use, reliable for the moment, and free of blocking bugs.

Thank you for your support