[Vtigercrm-developers] Removing modules that require ioncube?

Alan Lord alanslists at gmail.com
Mon Oct 8 10:54:28 GMT 2018


Just FYI,

if you comment out the following in ModuleBasic.php then the delete 
method works:

> 	function __delete() {
> 		//Vtiger_Module::fireEvent($this->name, 
> 			//Vtiger_Module::EVENT_MODULE_PREUNINSTALL);


Cheers

Al


On 08/10/18 11:30, Alan Lord wrote:
> We have a client who has asked us to migrate their system from vtiger 6 
> to 7.
> 
> As part of this, they have a bunch of extension modules installed which 
> require ioncube. For security reasons, we will not support any encrypted 
> code on our development servers. Having copied across their system to 
> start investigating, I am wanting to delete these custom modules but I 
> can't use the vtlib $module->delete() call, even after manually setting 
> the presence in vtiger_tab to 1 for one of these modules...
> 
>> phpwww remove.custom.modules.php 
> (A script to delete loads of these modules)
> 
>> Processing CusomModuleName ... 
> 
>> Got module handle. Disable first ... Now deleting
>          echo "Got module handle. Disable first ... ";
>          $query = "UPDATE vtiger_tab SET presence = 1 WHERE name = ?";
>          $adb->pquery($query, array($moduleName));
>          echo "Now deleting" . PHP_EOL;
>          $module->delete();
> 
>> Site error: the ionCube PHP Loader needs to be installed. This is a 
>> widely used PHP extension for running ionCube protected PHP code, 
>> website security and malware blocking.
>>
>> Please visit get-loader.ioncube.com for install assistance.
> 
> We do not and will not have programmes like ioncube running on our servers.
> 
> Can you suggest a way to safely remove/delete these modules?
> 
> TIA
> 
> 
> Al
> 
> _______________________________________________
> http://www.vtiger.com/
> 




More information about the vtigercrm-developers mailing list