Hi All,
We are trying to create PDF template on our SugarCRM cloud instance(sandbox) version 12.
We followed the steps below:
- Created PDF template in Admin->PDF manager
- To fetch the related module records we need to add custom code in “\custom\modules\<module_name>\sugarpdf\sugarpdf.pdfmanager.php”
- Go to module loader -> and install package to upload “sugarpdf.pdfmanager.php” file but we got some error:
“
Scanning Package
Installation failed!
The package you are attempting to install does not conform to the policies established within the Sugar Open Cloud or by your system administrator.
- Sugar Open Cloud customers must obtain a new package from the package provider that addresses the issues described below.
- If you are running Sugar locally, you can relax your Module Loader restrictions to allow the package to be installed.
File Issues
Files/sugarpdf.pdfmanager.php
Code attempted to call blacklisted function "sugar_file_put_contents" on line 607
Code attempted to call blacklisted function "mkdir_recursive" on line 620
Code attempted to call blacklisted function "sugar_file_put_contents" on line 663
Code attempted to call blacklisted function "file_put_contents" on line 693 “
We can see some functions are blacklisted by Sugar for Sugar's cloud environment using Module Loader Restrictions.
Kindly let us know what alternative functions we can use for below functions:
- sugar_file_put_contents
- mkdir_recursive
- sugar_file_put_contents
- file_put_contents