#1893 - Error: undefined index: interested_groups
I am receiving a lot of this error.
PHP Notice: Undefined index: interested_groups in /modules/SugarChimp/includes/classes/SugarChimp/Scheduler/UpdateSugarPersonFromMailchimp.php on line 403
How do I fix this?
8 years ago
Hello, Notices in PHP applications aren't uncommon. In your production CRM environment, we recommend you turn off PHP Notices in your php.ini file. This will clear out the notices. You can change the error_reporting to something like this:
error_reporting = E_ALL & ~E_NOTICE
Let me know if you have any questions or concerns about doing that, thanks!
8 years ago
I have that set already. Cron is sending my an email of about 100+ of that same error.
8 years ago
Got it, sorry for all the emails!
If you already changed the error_reporting in your php.ini, my guess is that there is a separate php.ini for your PHP CLI (command line interface) which is what the cron uses. If you find that php.ini file you can change that and the emails should stop.
One way you may be able to find where the php.ini file for PHP CLI is by going to your command line and run this command: php -i > phpinfo.txt
That will create a file named phpinfo.txt with your php info in it. Search for the line with "Loaded Configuration File" and it will show you the path to the php.ini file cron is using.
Give this a try and let us know what you find. Thanks!
8 years ago
It was using the standard config (/etc/php.ini). I added it to a commented line instead of the correct one. I have made the adjustment and will get back to you if there is an issue.
8 years ago
That makes sense now. Thanks for letting us know.
I'm going to go ahead and close out this case, but definitely let us know if anything else comes up. Thanks!