Need help using copy in the manifest.php

I have the used "copy" in another package that builds a module and it works fine.  Now I am trying to use "copy" in a package all by itself and I get a "Failed to copy cache/upgrades/temp/bEJWuG/Files/custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php to custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php"

Please help. I need this to work for a project that ends soon.

Parents
  • Hi Amy,

    Can you provide your manifest.php file from the package and verify the file system structure of the package? Without that information its hard to know exactly, but based on prior experience the File Path defined in the copy definition is probably not matching exactly. Some possible differences are Case Sensitive file system vs Non Case-Sensitive filesystem. In SugarCloud, the file system is Case Sensitive, and on Mac OSX it is not, so its common to develop a package and have it work in a local stack, but then fail in SugarCloud, since the file path in PHP doesn't match the exact Case Sensitive path where the file is uploaded in temp directory.

  • <?php

    $manifest = array (
    0 =>
    array (
    'acceptable_sugar_versions' =>
    array (
    0 => '9.0.3',
    ),
    ),
    1 =>
    array (
    'acceptable_sugar_flavors' =>
    array (
    0 => 'PRO',
    ),
    ),
    'readme' => '',
    'key' => 'JCCC',
    'author' => 'JCCC',
    'description' => '',
    'icon' => '',
    'is_uninstallable' => true,
    'name' => 'Courses',
    'published_date' => '2020-08-18',
    'type' => 'module',
    'version' => 1,
    'remove_tables' => 'prompt',
    );

    $installdefs = array (
    'id' => 'CECustomizations',
    'beans' =>
    array (
    ),
    'layoutdefs' =>
    array (
    ),
    'relationships' =>
    array (
    ),
    'copy' =>
    array (
    0 => array(
    'from' => '<basepath>/Files/custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php',
    'to' => 'custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php',
    ),
    ),
    'language' =>
    array (
    ),
    );

    ?>

Reply
  • <?php

    $manifest = array (
    0 =>
    array (
    'acceptable_sugar_versions' =>
    array (
    0 => '9.0.3',
    ),
    ),
    1 =>
    array (
    'acceptable_sugar_flavors' =>
    array (
    0 => 'PRO',
    ),
    ),
    'readme' => '',
    'key' => 'JCCC',
    'author' => 'JCCC',
    'description' => '',
    'icon' => '',
    'is_uninstallable' => true,
    'name' => 'Courses',
    'published_date' => '2020-08-18',
    'type' => 'module',
    'version' => 1,
    'remove_tables' => 'prompt',
    );

    $installdefs = array (
    'id' => 'CECustomizations',
    'beans' =>
    array (
    ),
    'layoutdefs' =>
    array (
    ),
    'relationships' =>
    array (
    ),
    'copy' =>
    array (
    0 => array(
    'from' => '<basepath>/Files/custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php',
    'to' => 'custom/Extension/application/Ext/EntryPointRegistry/UpdateClassTimeFields.php',
    ),
    ),
    'language' =>
    array (
    ),
    );

    ?>

Children
No Data