ok I have found how to fix this error ,
you should include cmps files before the vb global one
that way:
PHP Code:
chdir('../');
$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();
require_once(getcwd().'/includes/vba_cmps_include_template.php');
require_once(getcwd().'/includes/vba_cmps_global.php');
require_once(getcwd().'/global.php');