salesagility / SuiteCRM-Core

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
176 stars 123 forks source link

Notice: Undefined index: post_install in suitecrm/public/legacy/include/portability/Services/Cache/CacheManager.php on line 38 #418

Open lukio opened 9 months ago

lukio commented 9 months ago

Issue

Notice: Undefined index: post_install in /gcoop/suitecrm/public/legacy/include/portability/Services/Cache/CacheManager.php on line 38

   20.0352   66229912   4. User->saveFormPreferences() /gcoop/suitecrm/public/legacy/modules/Users/User.php:706
   20.0366   66230112   5. CacheManager->markAsNeedsUpdate() /gcoop/suitecrm/public/legacy/modules/Users/User.php:1019

The behaviour was commited at https://github.com/salesagility/SuiteCRM-Core/commit/f01cfeff6d1f062cdd8958e666d027d0b9f6a4a2 but when calling from the User class the post_install it's not defined so the Notice happens.

   4         require_once "include/portability/Services/Cache/CacheManager.php";                                                                                                                                    
   3         $cacheManager = new CacheManager();                                                                                                                                                                    
   2         $cacheManager->markAsNeedsUpdate('app-metadata-navigation-'.$this->id);                                                                                                                                
   1         $cacheManager->markAsNeedsUpdate('app-metadata-user-preferences-'.$this->id);                                                                                                                          
1019         $cacheManager->markAsNeedsUpdate('app-metadata-theme-images');                 

Your Environment

DemoXinMC commented 7 months ago

I'm hoping to ping this to the top by adding that I'm also running into this issue with a slightly different environment on a fresh install. I'm encountering it when attempting to load Module Studio.

Your Environment