Hello,
i want to make a"Quick Repair and Rebuild" by code
I’ve asked this once but it didn’t work even after i inserted the defined code
if(!defined('sugarEntry'))define('sugarEntry', true);
and this :
require_once('../modules/Administration/QuickRepairAndRebuild.php');
$actions = array('clearAll');
$randc = new RepairAndClear();
$randc->repairAndClearAll($actions, array(translate('LBL_ALL_MODULES')), true,false);
i could access the file but it started asking for more and more and classes missing how can i do this in a simpler way?
By more i mean more files
and classes like language and others
Hi,
Try using following code.
if(!defined(‘sugarEntry’))define(‘sugarEntry’, true);
require_once(‘include/entryPoint.php’);
require_once(‘modules/Administration/QuickRepairAndRebuild.php’);
$app_list_strings = return_app_list_strings_language($current_language);
$app_strings = return_application_language($current_language);
global $current_user;
$current_user = new User();
$current_user->getSystemUser();
$repair = new RepairAndClear();
$repair->repairAndClearAll(array(‘clearAll’),array(translate(‘LBL_ALL_MODULES’)), true,false);
Hope this helps…
1 Like
Hi there,
i’ve tried your solution but now it says
" /ponte/install.php was not found on this server."
ponte is my directory where i put the file with the code you provided