Mass Update For Custom Field Causes 500 Error

Anytime I try to mass update 2 or more leads for a custom-field (drop down menu) I get a 500 error. Doesn’t matter if I select 2 leads or 100.

My drop-down menu has 4 specific words. Each is only one word (e.g. fitness, health, life,etc.) I have about 176K leads that are listed as “fitness” and I need to change the value to “life” Suite CRM keeps crashing and I have no idea why it is happening.

The error log shows the following.

[Thu Apr 07 22:18:58.007129 2016] [proxy_fcgi:error] [pid 6084:tid 139906957215488] [client 37.187.73.79:50295] AH01071: Got error ‘PHP message: PHP Notice:
$tice: Undefined index: in /opt/bitnami/apps/suitecrm/htdocs/modules/AOW_WorkFlow/AOW_WorkFlow.php on line 507\nPHP message: PHP Fatal error: Cannot acces$
empty property in /opt/bitnami/apps/suitecrm/htdocs/modules/AOW_WorkFlow/AOW_WorkFlow.php on line 512\n’, referer: http://suitecrm22.bitnamiapp.com/$
p.com/suitecrm/index.php?module=Leads&action=index

workflow.php info specific to line 507 and 512

switch($condition->value_type) {
case ‘Field’:
$data = $condition_bean->field_defs[$value]; <<<<<<507 line>>>>>>>>

                    if($data['type'] == 'relate' && isset($data['id_name'])) {
                        $value = $data['id_name'];
                    }
                    $value = $condition_bean->$value;                 <<<<<<512 line>>>>>>>

                    if(in_array($data['type'],$dateFields)) {
                        $value = strtotime($value);
                    }

                    break;

I’m using bitnami to manage the software on an Amazon EC2 and use Putty.

Does anybody know what is wrong and how to fix it? I really rather not delete all those leads and import them again, if at all possible.

Thanks.

Try turning off Notices altogether in your php.ini. But there is definably something wrong with your server somewhere. I would imagine either SuiteCRM hasn’t installed correctly (could be permissions issues) or there is something not right in your servers setup. I assume you have tried doing a quick repair and rebuild etc?

I did a quick repair/rebuild, but the issue is still present. I checked out the php.ini file and there seem to be a lot of notices that are set to on/off depending on the command. I couldn’t find anything online about how to turn off all notices.

There is lots of info out there for turning off errors in your php.ini. But in your case I would edit your suitecrm index.php and put this line

error_reporting(E_ERROR);

above

include ('include/MVC/preDispatch.php');

That should suppress all errors.

For future ref:



// Turn off all error reporting
error_reporting(0);

// Report simple running errors
error_reporting(E_ERROR | E_WARNING | E_PARSE);

// Reporting E_NOTICE can be good too (to report uninitialized
// variables or catch variable name misspellings ...)
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);

// Report all PHP errors (see changelog)
error_reporting(E_ALL);

// Report all PHP errors
error_reporting(-1);

// Same as error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);