AnsweredAssumed Answered

Installing a bare bones module in Sugar 7 causes apparent infinite loop

Question asked by Jason Eggers on Feb 13, 2014
Latest reply on Feb 13, 2014 by Jason Eggers
So we're working on packing up the next killer integration for Sugar 7, but running into a big barrier. We stripped the package to basically a skeleton and upon install it never completes. It errors out with an "Out of memory" message which we have plenty more allocated than it claims. Debugging it a bit here is the continuous loop that we see:

12 0.4467 75577648 BeanFactory::newBean( ) ../VardefManager.php:272
13 0.4467 75577648 BeanFactory::getBean( ) ../BeanFactory.php:160
14 0.4473 75825912 SugarBean::_createBean( ) ../BeanFactory.php:111
15 0.4473 75843320 SugarChimp->SugarChimp( ) ../SugarBean.php:352
16 0.4473 75843320 SugarChimp_sugar->SugarChimp_sugar( ) ../SugarChimp.php:8
17 0.4473 75843320 Basic->Basic( ) ../SugarChimp_sugar.php:10
18 0.4473 75843320 Basic->__construct( ) ../Basic.php:28
19 0.4473 75843320 SugarBean->__construct( ) ../Basic.php:23
20 0.4476 75843912 SugarBean->setupCustomFields( ) ../SugarBean.php:478
21 0.4476 75845240 DynamicField->setup( ) ../SugarBean.php:1641
22 0.4476 75845224 DynamicField->buildCache( )  ../DynamicField.php:74
23 0.4576 78020568 DynamicField->saveToVardef( ) ../DynamicField.php:144
24 0.4576 78020728 VardefManager::refreshVardefs( ) ../DynamicField.php:186

This block just keeps repeating. If we install the same package in a pre-7 instance it will install perfectly. It's as if refreshVardefs forgets that it just installed the module and does it over and over again.

Any ideas?

Outcomes