Module Loader open_basedir restriction warning

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'
    ),
  ),
);
Parents Reply Children
  • Hi, I have seen that post and it did not seem to apply to this case, so I posted here.

    The path custom/Extension/modules/Calls/Ext/clients/base/views/record/record.php/modules/ is completely invalid and is also under /var/www/vhosts/sugarwebsite.com/sugarinstance.sugarwebsite.com/ (the bit in bold is already in the open_basedir setting value).

  • open_basedir resolves symlinks. Are you symlinking in some of your code from somewhere outside the open_basedir whitelist?