AnsweredAssumed Answered

Module Loader open_basedir restriction warning

Question asked by Artis Plocins on Apr 28, 2017
Latest reply on Aug 20, 2017 by Micky Gough

When try installing my module using the Module loader it installs successfully and works, but this is what I see in the log:

Warning: is_dir(): open_basedir restriction in effect. File(custom/Extension/modules/Calls/Ext/clients/base/views/record/record.php/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174

Warning: is_dir(): open_basedir restriction in effect. File(custom/Extension/modules/Calls/Ext/clients/base/views/create/create.php/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174

Warning: is_dir(): open_basedir restriction in effect. File(custom/modules/Users/metadata/editviewdefs.php/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174

Warning: is_dir(): open_basedir restriction in effect. File(custom/modules/Users/tpls/EditViewFooter.tpl/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174

Warning: is_dir(): open_basedir restriction in effect. File(custom/modules/Users/metadata/detailviewdefs.php/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174

Warning: is_dir(): open_basedir restriction in effect. File(custom/modules/Users/tpls/DetailViewFooter.tpl/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174

Warning: is_dir(): open_basedir restriction in effect. File(custom/modules/Meetings/tpls/reminders.tpl/modules/) is not within the allowed path(s): (/var/www/vhosts/sugarwebsite.com/:/tmp/:/dev/urandom) in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3174
Rebuilding ActionViewMap...
Rebuilding ActionFileMap...
Rebuilding ActionReMap...
Rebuilding Administration...
Rebuilding Dependencies...
Rebuilding EntryPointRegistry...
Rebuilding Extensions...
Rebuilding FileAccessControlMap...
Rebuilding Layoutdefs...
Rebuilding GlobalLinks...
Rebuilding LogicHooks...
Rebuilding TinyMCE...
Rebuilding Menus...
Rebuilding Include...
Rebuilding ScheduledTasks...
Rebuilding ScheduledTasks...
Rebuilding UserPage...
Rebuilding Utils...
Rebuilding Vardefs...
Rebuilding JSGroupings...
Rebuilding WirelessModuleRegistry...
Rebuilding WirelessLayoutdefs...
Rebuilding TableDictionary...
Rebuilding metadata for clients...
Rebuilding Console...

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ModuleInstall/ModuleInstaller.php on line 3572
Module Installed Successfully

 

These are my installdefs in the manifest.php file of this module:

$installdefs = array(
  'id' => 'Awesome-Custom_Module-1_0',
  'copy' => array(
    array(
      'from' => '<basepath>/Calls/record.php',
      'to' => 'custom/Extension/modules/Calls/Ext/clients/base/views/record/record.php',
    ),
    array(
      'from' => '<basepath>/Calls/create.php',
      'to' => 'custom/Extension/modules/Calls/Ext/clients/base/views/create/create.php',
    ),
    array(
      'from' => '<basepath>/Users/editviewdefs.php',
      'to' => 'custom/modules/Users/metadata/editviewdefs.php'
    ),
    array(
      'from' => '<basepath>/Users/EditViewFooter.tpl',
      'to' => 'custom/modules/Users/tpls/EditViewFooter.tpl'
    ),
    array(
      'from' => '<basepath>/Users/detailviewdefs.php',
      'to' => 'custom/modules/Users/metadata/detailviewdefs.php'
    ),
    array(
      'from' => '<basepath>/Users/DetailViewFooter.tpl',
      'to' => 'custom/modules/Users/tpls/DetailViewFooter.tpl'
    ),
    array(
      'from' => '<basepath>/Meetings/reminders.tpl',
      'to' => 'custom/modules/Meetings/tpls/reminders.tpl'
    ),
  ),
);

Outcomes