<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/623/invalid-usage-of-a-reserved-method-name-unlink-sugar7</link><description>This was also mentioned as ... and i have resolved all by using SugarAutoLoader but unable to resolve this problem. Please help Invalid usage of a function file_exists() Invalid usage of a function file_exists() Invalid usage of a function mkdir() Invalid</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17564?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2019 12:04:16 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0af3c024-71c6-48ba-bcb7-d6965508d7ab</guid><dc:creator>Juned Rawoot</dc:creator><description>&lt;p&gt;Hello Saeed Techloyce,&lt;/p&gt;&lt;p&gt;This link not working. can you please tell me how do I remove blacklist function?&lt;/p&gt;&lt;p&gt;Thanks,:)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17563?ContentTypeID=1</link><pubDate>Wed, 17 Aug 2016 12:19:06 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:bda58f14-31e3-4183-8604-5df8b4f48fa3</guid><dc:creator>Saeed Techloyce</dc:creator><description>&lt;p&gt;Thank you all of you guys. I just found a helpful link&amp;nbsp;&lt;a href="https://github.com/maranemil/howto/blob/master/sugarcrm/sugarcrm_ondemand_alternative_functions.txt" rel="nofollow" target="_blank"&gt;howto/sugarcrm_ondemand_alternative_functions.txt at master &amp;middot; maranemil/howto &amp;middot; GitHub&lt;/a&gt;&amp;nbsp; and it tells us how to use blacklist function .... Here we can find unlink() method also.&lt;/p&gt;&lt;p&gt;Thanks all&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17560?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 16:58:13 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:af68c1d3-b377-45ea-849e-2c72e8dbac79</guid><dc:creator>Kenneth Brill</dc:creator><description>&lt;p&gt;Yeah, in that case I would have to see more of your code and know what it is you are trying to accomplish.&amp;nbsp; There really isn&amp;#39;t a way to unlink() files in the OnDemand environment.&amp;nbsp; If that&amp;#39;s something you have to do then you would need to move your instance on site.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That being said there are always ways to make something work.&amp;nbsp; It depends on what the file you want to delete does.&amp;nbsp; If it&amp;#39;s a PHP/TPL file then you might be out of luck, there just isn&amp;#39;t an unlink command to use. But if its some sort of data file or JavaScript or CSS then maybe writing it to a file isn&amp;#39;t necessary, I have kept data files like this in memory or written them to a DB table to get around the unlink() issue in the past.&amp;nbsp; You can easily insert JS and CSS into TPL files in an ad-hoc fashion that might work.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Give us some detail on what you are trying to do and maybe we can help with a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17562?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 16:35:47 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:0f0a4e69-25f9-447f-b9e6-7d4b809a45e6</guid><dc:creator>Matt Marum</dc:creator><description>&lt;p&gt;Sorry - trying to work around&amp;nbsp;package scanner to install custom code that uses blacklisted functions into Sugar On-Demand is a bad idea. The restrictions exist&amp;nbsp;for a reason. Trying to work around restrictions by artificially disabling package scanner will get you kicked off Sugar On-Demand.&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/API/Application/Module_Loader/Module_Loader_Restrictions/" rel="nofollow" target="_blank"&gt;http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/API/Application/Module_Loader/Module&amp;hellip;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/API/Application/Module_Loader/Module_Loader_Restriction_Alternatives/" rel="nofollow" target="_blank"&gt;http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.6/API/Application/Module_Loader/Module&amp;hellip;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Deleting arbitrary files (using the unlink() function) is just something we are not going to allow you to do programmatically in Sugar On-Demand. &amp;nbsp;You should look at alternative solution approaches. You haven&amp;#39;t shared your complete business use case but I&amp;#39;m sure there are other ways to design a solution that meets your needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17561?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 15:51:49 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:6f9dfa94-c1ca-4b90-8862-a4d40c2aecf3</guid><dc:creator>Hiren Darji</dc:creator><description>&lt;p&gt;It seems you are trying to install the package on OnDemand instance.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#5b5b59;background-color:#ffffff;font-weight:300;"&gt;All instances hosted on OnDemand have package scanner enabled by default.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#5b5b59;background-color:#ffffff;font-weight:300;"&gt;And many of PHP functions are disabled&amp;nbsp;&lt;span style="color:#3d3d3d;font-weight:normal;"&gt;on OnDemand instances.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;You need to find the alternatinve function for that.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;Or you can do following steps to install your same package,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;1. Find a package that disable package scanner first.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;2. Install your package&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;3. Revert step 1.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17559?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 06:01:19 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b3488134-24a1-44c9-9da4-31bc58c6c79a</guid><dc:creator>Saeed Techloyce</dc:creator><description>&lt;p&gt;Thank you for reply , I just want to say that unlink() is a reserved method in sugar7. What method should i use instead of unlink().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Invalid usage of a reserved method name unlink() Sugar7</title><link>https://sugarclub.sugarcrm.com/thread/17558?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2016 03:37:14 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:014034d3-a7e5-4084-b4ea-77386fd6ed0f</guid><dc:creator>Kenneth Brill</dc:creator><description>&lt;p&gt;I am not sure what you are saying here.&amp;nbsp; Are you looking for a way to do a sugarautoloader::unlink()?&amp;nbsp; Why are you using that call, never seen it used outside of unit tests.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>