by Fanatical Labs

Save Your Team Countless Hours. SugarChimp syncs your lists in both directions so you can work in your preferred app. Segment and group your Mailchimp subscribers based on SuiteCRM data so you can market to the right people at the right time. Compatible with all versions of SuiteCRM.

Cancel at any time!
Free Trial

#1835 - Undefined index: SugarOutfitters_lic_SugarChimp

Closed Bug? created by stephen 3 years ago

A staging server of mine has is setup to mimic production, but does not have the correct key. Your plugin threw so many of the below notices it cause a buffer overflow on nginx. Could you please apply the following patch or something similar?

PHP message: PHP Notice:  Undefined index: SugarOutfitters_lic_SugarChimp in /srv/suitecrm/releases/20190314065822/modules/SugarChimp/license/OutfittersLicense.php on line 104
diff --git a/modules/SugarChimp/license/OutfittersLicense.php b/modules/SugarChimp/license/OutfittersLicense.php
index b5638589c..67e9077bd 100644
--- a/modules/SugarChimp/license/OutfittersLicense.php
+++ b/modules/SugarChimp/license/OutfittersLicense.php
@@ -101,7 +101,10 @@ if(!class_exists('SugarChimpOutfittersLicense'))
             require_once('modules/Administration/Administration.php');
             $administration = new Administration();
             $administration->retrieveSettings();
-            $key = $administration->settings['SugarOutfitters_lic_'.$outfitters_config['shortname']];
+            if(isset($outfitters_config['shortname'])) {
+                $key = isset($administration->settings['SugarOutfitters_lic_' . $outfitters_config['shortname']])
+                    ? $administration->settings['SugarOutfitters_lic_' . $outfitters_config['shortname']] : '';
+            }

             //just in case they are using the old config_override.php method
             if(empty($key) && !empty($sugar_config['outfitters_licenses']) && !empty($sugar_config['outfitters_licenses'][$outfitters_config['shortname']]))
  1. fanaticallabs member avatar

    Fanatical Labs Provider Affiliate

    3 years ago

    Hi Stephen,

    Thanks for sending this along. We're taking a closer look and will follow up again shortly!

    Best, Heidi

  2. fanaticallabs member avatar

    Fanatical Labs Provider Affiliate

    3 years ago

    Hello Stephen,

    We appreciate your detailed feedback on the PHP Notice and are taking steps to get this patched. We will be sure to reach out directly when the patch is complete and you can download the new version. Is there anything else we can help you with at this time?

    Thanks again for taking the time to let us know what you found.

    Kind Regards, Jon

  3. fanaticallabs member avatar

    Fanatical Labs Provider Affiliate

    3 years ago

    Hello there,

    We haven't heard from you regarding the issue in a few days. Is there anything we can help with?

    Let me know how I can help.

    Thanks, Jon Fanatical Labs Support

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...