Deploying a module won't work

Dear All,

I'm facing an issue which is causing me the loss of the few hair I had :)

I installed locally a cloud environment which is working properly. I want to create a new package and module. I created my package, my module. Click on deploy and then ... patatra.

I have the following error message :

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\StrategyCollection::addBeanStrategies() must be an instance of SugarBean, null given, called in /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php on line 43 and defined in /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php:51\nStack trace:\n
#0 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php(43): Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\StrategyCollection->addBeanStrategies(NULL)\n
#1 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/Visibility.php(172): Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\StrategyCollection->addModuleStrategies(Array)\n
#2 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/Visibility.php(185): Sugarcrm\\Sugarcrm\\Elasticsearch\\Provider\\Visibility\\Visibility->getStrategies(Array)\n
#3 /var/www/html/sugar/icade10/src/Elasticsearch/Provider/ in /var/www/html/sugar/icade10/src/Elasticsearch/Provider/Visibility/StrategyCollection.php on line 51, referer: http://localhost/sugar/icade10/index.php?module=ModuleBuilder&action=index&type=mb

Do you have an idea on the root cause ?

Many thanks in advance.

Best regards,

Enes

Parents Reply
  • Enes,

    1. Does indexation actually work? 
    you may try to add a record then reindex and use global search to ensure it works for your instance  - otherwise there could be misconfig of the instance restored

    2. it could be smth with an Elastic component
    You may deploy another Sugar instance, e.g. OOTB v10, in the same environment and try all the manipulations on it  - if it does show you the same behavior as you observed  - it is smth with the environment
    Or just reinstall Elastic without investigations instead


    Best Regards,
    Dmytro Chupylka

    integroscrm.com
    We make work in Sugar CRM system faster, more convenient and efficient

Children
No Data