Undefined property: AOPInboundEmail::$team_id

Hey,

OS: CentOS 7
Apache: 2.4.6
PHP Version: 5.6.14
SQL: 5.5.44-MariaDB

When running the cron I get “PHP Notice: Undefined property: AOPInboundEmail::$team_id in /home/wow/subdomains/suitecrm/crm/custom/modules/Schedulers/Ext/ScheduledTasks/scheduledtasks.ext.php on line 208”

Tried with php -q, php -v and curl; same result.

It works ok on older PHP version (which are not supported any more).

Thanks!

PS: also reported to GitHub.

Hi,

$team_id is for the PRO version of sugar.

You can edit the file, (witch file, i forget) )and create a var :
$team_id = 1;

In resume, you can ignore this :wink:

Regards.

I was searching for this also, but seems that I don’t have the “skills” to find it. :frowning: Unfortunately I cannot “ignore” the error as it crashes the cron…

This might not be the ‘best’ solution, but I had

PHP Notice: Undefined property: AOPInboundEmail::$team_id in /var/www/it-test/custom/modules/Schedulers/Ext/ScheduledTasks/scheduledtasks.ext.php on line 287

Changing this line over came the issue.

Was

$GLOBALS[‘current_user’]->team_id = $ieX->team_id;

Changed to

$GLOBALS[‘current_user’]->team_id = 1; //$ieX->team_id;