Blank screen while trying to import custom package

Hi,

We are getting a blank screen on importing a custom package in sugarCRM11.2.0.

The error is 

PHP Fatal error:  require(): Failed opening required '/mnt/sugar/shadowed/domain_name/cache/mlp_temp/NbmKkm/manifest.php' (include_path='/mnt/sugar/11.2.0/ent:/mnt/sugar/11.2.0/ent/vendor:.:/usr/share/pear:/usr/share/php') in /mnt/sugar/11.2.0/ent/ModuleInstall/ModuleScanner.php on line 1026

Can anyone please help us to resolve the issue?

  • Can you upload the file here? so we can inspect the package?

  • I believe that the package has no the manifest.php at the root of folder.

    Double check that and try again.

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • I agree with Anrdé, the most likely reason for that error is the missing manifest.php.

    Please check that your installable zip file has a root structure like this:

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • Hi Anrdé,

    We have manifest.php at the root of the folder. Still, we are facing this issue.

  • Hi Harald,

    Yes, we too have the same folder structure where we have manifest.php at the root of the folder. But, on upload of the package, we are getting a blank screen.

  • Hi Jeroen,

    Due to security concerns, We cannot share the package here.

    As we cannot share the package if you can help us to understand the process of inspection of the package it would help a lot.

    Thank you

  • $manifest = array(
        'acceptable_sugar_versions' => array(
            'regex_matches' => array(
                '11\.[0123456789]*.\d\w*'
                ),
            ),
        'acceptable_sugar_flavors' => array(
            'PRO',
            'CORP',
            'ENT',
            'ULT',
            ),
        'readme' => '',
        'key' => 'key',
        'author' => '',
        'description' => 'description',
        'icon' => '',
        'is_uninstallable' => true,
        'name' => 'name',
        'published_date' => '2020-03-11 17:11:17',
        'type' => 'module',
        'version' => '1.0',
        'remove_tables' => false,
        );
    
    $installdefs = array(
        'id' => 'id',
        'copy' => array(
            array(
    			'from' => '<basepath>/dashlet/',
                'to' => 'custom/modules/Home/clients/base/views/id/',
                ),
    			
    			array(
    				'from' => '<basepath>/endpoint/',
    				'to' => 'custom/clients/base/api/',
    			),
            ),
        'language' => array(
            array(
                'from' => '<basepath>/en_us.lang.php',
                'to_module' => 'application',
                'language' => 'en_us',
                ),
            ),
        );

    Our manifest file looks like this. Removed some of the information.

    Our root folder looks like this

    Please let us know if we are missing something

  • Hey everyone,

    We've worked with Harsha and got it working for them, it was, as many of you pointed out, a packaging issue.

    Just to clarify and for reference, "manifest.php" file MUST be in the root of the zip file, see below some examples:

    Bad manifest location:

    unzip -v YOUR_PACKAGE.zip                 
    Archive:  YOUR_PACKAGE.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    --------  ------  ------- ---- ---------- ----- --------  ----
        1144  Defl:N      606  47% 08-07-2020 03:11 dedfb813  SugarCRM-prod/INSTALL.txt
        1577  Defl:N      912  42% 08-07-2020 03:11 207cabfe  SugarCRM-prod/LICENSE.txt
        1173  Defl:N      627  47% 08-07-2020 03:13 b3a6be41  SugarCRM-prod/README.txt
         621  Defl:N      369  41% 08-07-2020 03:13 458062e9  SugarCRM-prod/UNINSTALL.txt
        1291  Defl:N      525  59% 02-02-2022 19:24 2343cb5a  SugarCRM-prod/manifest.php

    Good manifest location:

    unzip -v YOUR_PACKAGE.zip                 
    Archive:  YOUR_PACKAGE.zip
     Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
    --------  ------  ------- ---- ---------- ----- --------  ----
        1144  Defl:N      606  47% 08-07-2020 03:11 dedfb813  INSTALL.txt
        1577  Defl:N      912  42% 08-07-2020 03:11 207cabfe  LICENSE.txt
        1173  Defl:N      627  47% 08-07-2020 03:13 b3a6be41  README.txt
         621  Defl:N      369  41% 08-07-2020 03:13 458062e9  UNINSTALL.txt
        1291  Defl:N      525  59% 02-02-2022 19:24 2343cb5a  manifest.php

    Also, if you're embedding (or making call to your website), you must add it to the CSP so your call/URL goes through.

    Rafa

    SugarCRM | Principal Developer Advocate