27/01/2026 15:17:01 - TYPE ERROR:ParseError 27/01/2026 15:17:01 - MESSAGE:syntax error, unexpected '$buttons' (T_VARIABLE), expecting function (T_FUNCTION) or const (T_CONST) 27/01/2026 15:17:01 - Error File LINE: 27/01/2026 15:17:01 - /var/www/html/dev/gestioneinterventi/protected/controllers/app/AppInterventiRController.php(1644) 27/01/2026 15:17:01 - Error SOURCE CODE: 27/01/2026 15:17:01 -
1632     $coloriModels = FrmSysColori::model()->findAll(array('order' => 'descrizione'));
1633     
1634     foreach ($coloriModels as $colore) {
1635       $colors[$colore->idcolore] = array(
1636         'descrizione' => $colore->descrizione,
1637         'codicehtml' => $colore->codicehtml
1638       );
1639     }
1640     
1641     echo CJSON::encode($colors);
1642   }
1643     //recupero impostazioni campi modello dei livelli Frm/App
1644     $buttons = parent::getgridviewbuttons($model,$groupgrid);
1645    
1646     return $buttons;
1647   }
1648 
1649 }
27/01/2026 15:17:01 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/YiiBase.php [line] => 204 [function] => import [class] => YiiBase [type] => :: [args] => Array ( [0] => application.controllers.app.AppInterventiRController [1] => 1 ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 332 [function] => createComponent [class] => YiiBase [type] => :: [args] => Array ( [0] => Array ( ) [1] => AppInterventiR [2] => ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 276 [function] => createController [class] => CWebApplication [type] => -> [args] => Array ( [0] => admin/ ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => AppInterventiR/admin ) ) [4] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 27/01/2026 16:00:31 - TYPE ERROR:ParseError 27/01/2026 16:00:31 - MESSAGE:syntax error, unexpected 'public' (T_PUBLIC), expecting end of file 27/01/2026 16:00:31 - Error File LINE: 27/01/2026 16:00:31 - /var/www/html/dev/gestioneinterventi/protected/controllers/app/AppSchedeClientiRController.php(1923) 27/01/2026 16:00:31 - Error SOURCE CODE: 27/01/2026 16:00:31 -
1911       $returnarray['message'] = "Righe non eliminate";
1912     }
1913 
1914     echo CJSON::encode($returnarray);
1915   }
1916 }
1917 
1918   /**
1919    * Restituisce lista colori in formato JSON
1920    * 
1921    * antonio.mattis
1922    */
1923   public function actionGetColoredListJson() {
1924     $colori = FrmSysColori::model()->getColoredList(true);
1925     echo CJSON::encode($colori);
1926   }
1927 }
27/01/2026 16:00:31 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/YiiBase.php [line] => 204 [function] => import [class] => YiiBase [type] => :: [args] => Array ( [0] => application.controllers.app.AppSchedeClientiRController [1] => 1 ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 332 [function] => createComponent [class] => YiiBase [type] => :: [args] => Array ( [0] => Array ( ) [1] => AppSchedeClientiR [2] => ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 276 [function] => createController [class] => CWebApplication [type] => -> [args] => Array ( [0] => adminRigheSchedeClienti/ ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => AppSchedeClientiR/adminRigheSchedeClienti ) ) [4] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 27/01/2026 16:54:53 - TYPE ERROR:PHP warning 27/01/2026 16:54:53 - MESSAGE:Invalid argument supplied for foreach() 27/01/2026 16:54:53 - Error File LINE: 27/01/2026 16:54:53 - /var/www/html/dev/yii/framework/gii/GiiModule.php(193) 27/01/2026 16:54:53 - Error SOURCE CODE: 27/01/2026 16:54:53 -
181         return false;
182     }
183 
184     /**
185      * Checks to see if the user IP is allowed by {@link ipFilters}.
186      * @param string $ip the user IP
187      * @return boolean whether the user IP is allowed by {@link ipFilters}.
188      */
189     protected function allowIp($ip)
190     {
191         if(empty($this->ipFilters))
192             return true;
193         foreach($this->ipFilters as $filter)
194         {
195             if($filter==='*' || $filter===$ip || (($pos=strpos($filter,'*'))!==false && !strncmp($ip,$filter,$pos)))
196                 return true;
197         }
198         return false;
199     }
200 
201     /**
202      * Finds all available code generators and their code templates.
203      * @return array
204      */
205     protected function findGenerators()
27/01/2026 16:54:53 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/gii/GiiModule.php [line] => 169 [function] => allowIp [class] => GiiModule [type] => -> [args] => Array ( [0] => 88.43.121.34 ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/web/CController.php [line] => 263 [function] => beforeControllerAction [class] => GiiModule [type] => -> [args] => Array ( [0] => DefaultController Object ( [layout] => /layouts/column1 [defaultAction] => index [_id:CController:private] => default [_action:CController:private] => [_pageTitle:CController:private] => [_cachingStack:CController:private] => [_clips:CController:private] => [_dynamicOutput:CController:private] => [_pageStates:CController:private] => [_module:CController:private] => GiiModule Object ( [password] => aihpos [ipFilters] => 1 [generatorPaths] => Array ( [0] => application.gii [1] => gii.generators ) [newFileMode] => 438 [newDirMode] => 511 [_assetsUrl:GiiModule:private] => [defaultController] => default [layout] => [controllerNamespace] => [controllerMap] => Array ( [controller] => Array ( [class] => gii.generators.controller.ControllerGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/controller/templates/default ) ) [crud] => Array ( [class] => gii.generators.crud.CrudGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/crud/templates/default [bootstrap] => /var/www/html/dev/gestioneinterventi/protected/gii/crud/templates/bootstrap ) ) [form] => Array ( [class] => gii.generators.form.FormGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/form/templates/default ) ) [model] => Array ( [class] => gii.generators.model.ModelGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/model/templates/default [sophia] => /var/www/html/dev/gestioneinterventi/protected/gii/model/templates/sophia ) ) [module] => Array ( [class] => gii.generators.module.ModuleGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/module/templates/default ) ) ) [_controllerPath:CWebModule:private] => /var/www/html/dev/yii/framework/gii/controllers [_viewPath:CWebModule:private] => [_layoutPath:CWebModule:private] => [preload] => Array ( ) [behaviors] => Array ( ) [_id:CModule:private] => gii [_parentModule:CModule:private] => [_basePath:CModule:private] => /var/www/html/dev/yii/framework/gii [_modulePath:CModule:private] => [_params:CModule:private] => [_modules:CModule:private] => Array ( ) [_moduleConfig:CModule:private] => Array ( ) [_components:CModule:private] => Array ( ) [_componentConfig:CModule:private] => Array ( ) [_e:CComponent:private] => [_m:CComponent:private] => ) [_widgetStack:CBaseController:private] => Array ( ) [_e:CComponent:private] => [_m:CComponent:private] => ) [1] => CInlineAction Object ( [_id:CAction:private] => index [_controller:CAction:private] => DefaultController Object ( [layout] => /layouts/column1 [defaultAction] => index [_id:CController:private] => default [_action:CController:private] => [_pageTitle:CController:private] => [_cachingStack:CController:private] => [_clips:CController:private] => [_dynamicOutput:CController:private] => [_pageStates:CController:private] => [_module:CController:private] => GiiModule Object ( [password] => aihpos [ipFilters] => 1 [generatorPaths] => Array ( [0] => application.gii [1] => gii.generators ) [newFileMode] => 438 [newDirMode] => 511 [_assetsUrl:GiiModule:private] => [defaultController] => default [layout] => [controllerNamespace] => [controllerMap] => Array ( [controller] => Array ( [class] => gii.generators.controller.ControllerGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/controller/templates/default ) ) [crud] => Array ( [class] => gii.generators.crud.CrudGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/crud/templates/default [bootstrap] => /var/www/html/dev/gestioneinterventi/protected/gii/crud/templates/bootstrap ) ) [form] => Array ( [class] => gii.generators.form.FormGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/form/templates/default ) ) [model] => Array ( [class] => gii.generators.model.ModelGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/model/templates/default [sophia] => /var/www/html/dev/gestioneinterventi/protected/gii/model/templates/sophia ) ) [module] => Array ( [class] => gii.generators.module.ModuleGenerator [templates] => Array ( [default] => /var/www/html/dev/yii/framework/gii/generators/module/templates/default ) ) ) [_controllerPath:CWebModule:private] => /var/www/html/dev/yii/framework/gii/controllers [_viewPath:CWebModule:private] => [_layoutPath:CWebModule:private] => [preload] => Array ( ) [behaviors] => Array ( ) [_id:CModule:private] => gii [_parentModule:CModule:private] => [_basePath:CModule:private] => /var/www/html/dev/yii/framework/gii [_modulePath:CModule:private] => [_params:CModule:private] => [_modules:CModule:private] => Array ( ) [_moduleConfig:CModule:private] => Array ( ) [_components:CModule:private] => Array ( ) [_componentConfig:CModule:private] => Array ( ) [_e:CComponent:private] => [_m:CComponent:private] => ) [_widgetStack:CBaseController:private] => Array ( ) [_e:CComponent:private] => [_m:CComponent:private] => ) [_e:CComponent:private] => [_m:CComponent:private] => ) ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 282 [function] => run [class] => CController [type] => -> [args] => Array ( [0] => ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => gii ) ) [4] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 11/02/2026 11:03:12 - TYPE ERROR:ParseError 11/02/2026 11:03:12 - MESSAGE:syntax error, unexpected 'fantasma' (T_STRING), expecting ')' 11/02/2026 11:03:12 - Error File LINE: 11/02/2026 11:03:12 - /var/www/html/dev/gestioneinterventi/protected/controllers/app/AppInterventiRController.php(395) 11/02/2026 11:03:12 - Error SOURCE CODE: 11/02/2026 11:03:12 -
383     $(document).on('shown', '.editable', function(e, editable) {
384         // Ritardo minimo per assicurarsi che la textarea sia nel DOM
385         setTimeout(function() {
386             var \$textarea = $('.textarea_TbEditableColumn:visible');
387             
388             if (\$textarea.length > 0) {
389                 // Genera un ID univoco se manca
390                 if (!\$textarea.attr('id')) {
391                     \$textarea.attr('id', 'mce_' + (new Date()).getTime());
392                 }
393                 var id = \$textarea.attr('id');
394 
395                 // Se esiste giĆ  un'istanza "fantasma" su questo ID, rimuovila prima
396                 if (tinymce.get(id)) {
397                     tinymce.remove('#' + id);
398                 }
399 
400                 // Inizializza TinyMCE su questo specifico ID
401                 var inlineConfig = JSON.parse(JSON.stringify(tinyConfig));
402                 inlineConfig.selector = '#' + id;
403                 inlineConfig.setup = tinyConfig.setup;
404                 
405                 tinymce.init(inlineConfig);
406             }
407         }, 100);
11/02/2026 11:03:12 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/YiiBase.php [line] => 204 [function] => import [class] => YiiBase [type] => :: [args] => Array ( [0] => application.controllers.app.AppInterventiRController [1] => 1 ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 332 [function] => createComponent [class] => YiiBase [type] => :: [args] => Array ( [0] => Array ( ) [1] => AppInterventiR [2] => ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 276 [function] => createController [class] => CWebApplication [type] => -> [args] => Array ( [0] => admin/ ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => AppInterventiR/admin ) ) [4] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 11/02/2026 15:13:49 - TYPE ERROR:ParseError 11/02/2026 15:13:49 - MESSAGE:syntax error, unexpected ')' 11/02/2026 15:13:49 - Error File LINE: 11/02/2026 15:13:49 - /var/www/html/dev/gestioneinterventi/protected/controllers/app/AppInterventiRController.php(338) 11/02/2026 15:13:49 - Error SOURCE CODE: 11/02/2026 15:13:49 -
326                                                             'type'=>'raw',
327                                                             'htmlOptions'=>array('style'=>'min-width:60px; width:60px; text-align:center;','order'=>$orderColumn++),
328                                                             'filter' => CHtml::activeDropDownList(
329                                                                           $model,
330                                                                           'idcolore_search',
331                                                                           FrmSysColori::model()->getColoredList(true),
332                                                                           array('empty' => tr('Tutti'), 'class' => 'form-control')
333                                                                         ),
334                                                            );
335     }
336     
337 // Note -------------------------------------------------------------------- 
338 )
339 unset($model->RenderSettings->descrizione->renderadmin['value']);
340 $model->RenderSettings->descrizione->renderadmin['type'] = 'raw';
341 $model->RenderSettings->descrizione->renderadmin['htmlOptions']['order'] = $orderColumn++;
342 $model->RenderSettings->descrizione->renderadmin['class'] = 'booster.widgets.TbEditableColumn';
343                                                             $model->RenderSettings->descrizione->renderadmin['editable'] = array(
344                                                             'url' => $this->createUrl('UpdateInline'),
345                                                             'mode' => 'inline',
346                                                             'type' => 'textarea',
347                                                             'encode' => false, // rende l'html del testo come HTML e non come testo
348                                                             'inputclass' => 'textarea_TbEditableColumn',
349                                                             'options' => array(
350                                                                 'showbuttons' => 'bottom', 
11/02/2026 15:13:49 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/YiiBase.php [line] => 204 [function] => import [class] => YiiBase [type] => :: [args] => Array ( [0] => application.controllers.app.AppInterventiRController [1] => 1 ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 332 [function] => createComponent [class] => YiiBase [type] => :: [args] => Array ( [0] => Array ( ) [1] => AppInterventiR [2] => ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 276 [function] => createController [class] => CWebApplication [type] => -> [args] => Array ( [0] => admin/ ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => AppInterventiR/admin ) ) [4] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 20/02/2026 16:52:39 - TYPE ERROR:CDbException 20/02/2026 16:52:39 - MESSAGE:CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Connection refused 20/02/2026 16:52:39 - Error File LINE: 20/02/2026 16:52:39 - /var/www/html/dev/gestioneinterventi/protected/costanti.php(35) 20/02/2026 16:52:39 - Error SOURCE CODE: 20/02/2026 16:52:39 -
23  * errore nel caricamento costanti corretto
24  *
25  * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it
26  * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 
27  * l'utente loggato 
28  */
29 
30 //20180412 - TICKET:0002605
31 //recupero caratteri da sostituire
32 $charactersToReplace = getArrayCharactersToReplace();
33 
34 $query_costanti = 'select nome,label,value from frm_sys_costanti UNION select nome,label,value from frm_sys_costanti_applicazione';
35 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll();
36 foreach ($res_costanti as $costante) {
37   define("".$costante['nome'], $costante['value']);
38   
39   //20151030 - TICKET:0000635
40   define("".$costante['nome'].'_label', $costante['label']);
41 }
42 define("VERSION","2.2_55");
43 
44 //20141007 - TICKET:0000155
45 if(defined('FRM_VERSION')){
46     if(FRM_VERSION!=VERSION){
47         $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
20/02/2026 16:52:39 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 347 [function] => open [class] => CDbConnection [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 325 [function] => setActive [class] => CDbConnection [type] => -> [args] => Array ( [0] => 1 ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 394 [function] => init [class] => CDbConnection [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 103 [function] => getComponent [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [4] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/costanti.php [line] => 35 [function] => __get [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/components/Controller.php [line] => 45 [args] => Array ( [0] => /var/www/html/dev/gestioneinterventi/protected/costanti.php ) [function] => require_once ) [6] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/controllers/FrmAppuntamentiController.php [line] => 56 [function] => init [class] => Controller [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 281 [function] => init [class] => FrmAppuntamentiController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => frmAppuntamenti/admin ) ) [9] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 28/02/2026 06:32:04 - TYPE ERROR:CDbException 28/02/2026 06:32:04 - MESSAGE:CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory 28/02/2026 06:32:04 - Error File LINE: 28/02/2026 06:32:04 - /var/www/html/dev/gestioneinterventi/protected/costanti.php(35) 28/02/2026 06:32:04 - Error SOURCE CODE: 28/02/2026 06:32:04 -
23  * errore nel caricamento costanti corretto
24  *
25  * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it
26  * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 
27  * l'utente loggato 
28  */
29 
30 //20180412 - TICKET:0002605
31 //recupero caratteri da sostituire
32 $charactersToReplace = getArrayCharactersToReplace();
33 
34 $query_costanti = 'select nome,label,value from frm_sys_costanti UNION select nome,label,value from frm_sys_costanti_applicazione';
35 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll();
36 foreach ($res_costanti as $costante) {
37   define("".$costante['nome'], $costante['value']);
38   
39   //20151030 - TICKET:0000635
40   define("".$costante['nome'].'_label', $costante['label']);
41 }
42 define("VERSION","2.2_55");
43 
44 //20141007 - TICKET:0000155
45 if(defined('FRM_VERSION')){
46     if(FRM_VERSION!=VERSION){
47         $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
28/02/2026 06:32:04 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 347 [function] => open [class] => CDbConnection [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 325 [function] => setActive [class] => CDbConnection [type] => -> [args] => Array ( [0] => 1 ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 394 [function] => init [class] => CDbConnection [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 103 [function] => getComponent [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [4] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/costanti.php [line] => 35 [function] => __get [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/components/Controller.php [line] => 45 [args] => Array ( [0] => /var/www/html/dev/gestioneinterventi/protected/costanti.php ) [function] => require_once ) [6] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/controllers/FrmAppuntamentiController.php [line] => 56 [function] => init [class] => Controller [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 281 [function] => init [class] => FrmAppuntamentiController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => frmAppuntamenti/admin ) ) [9] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 28/02/2026 06:32:04 - TYPE ERROR:CDbException 28/02/2026 06:32:04 - MESSAGE:CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory 28/02/2026 06:32:04 - Error File LINE: 28/02/2026 06:32:04 - /var/www/html/dev/gestioneinterventi/protected/costanti.php(35) 28/02/2026 06:32:04 - Error SOURCE CODE: 28/02/2026 06:32:04 -
23  * errore nel caricamento costanti corretto
24  *
25  * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it
26  * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 
27  * l'utente loggato 
28  */
29 
30 //20180412 - TICKET:0002605
31 //recupero caratteri da sostituire
32 $charactersToReplace = getArrayCharactersToReplace();
33 
34 $query_costanti = 'select nome,label,value from frm_sys_costanti UNION select nome,label,value from frm_sys_costanti_applicazione';
35 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll();
36 foreach ($res_costanti as $costante) {
37   define("".$costante['nome'], $costante['value']);
38   
39   //20151030 - TICKET:0000635
40   define("".$costante['nome'].'_label', $costante['label']);
41 }
42 define("VERSION","2.2_55");
43 
44 //20141007 - TICKET:0000155
45 if(defined('FRM_VERSION')){
46     if(FRM_VERSION!=VERSION){
47         $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
28/02/2026 06:32:04 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 347 [function] => open [class] => CDbConnection [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 325 [function] => setActive [class] => CDbConnection [type] => -> [args] => Array ( [0] => 1 ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 394 [function] => init [class] => CDbConnection [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 103 [function] => getComponent [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [4] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/costanti.php [line] => 35 [function] => __get [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/components/Controller.php [line] => 45 [args] => Array ( [0] => /var/www/html/dev/gestioneinterventi/protected/costanti.php ) [function] => require_once ) [6] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/controllers/FrmAppuntamentiController.php [line] => 56 [function] => init [class] => Controller [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 281 [function] => init [class] => FrmAppuntamentiController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => frmAppuntamenti/admin ) ) [9] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 28/02/2026 06:32:06 - TYPE ERROR:CDbException 28/02/2026 06:32:06 - MESSAGE:CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory 28/02/2026 06:32:06 - Error File LINE: 28/02/2026 06:32:06 - /var/www/html/dev/gestioneinterventi/protected/costanti.php(35) 28/02/2026 06:32:06 - Error SOURCE CODE: 28/02/2026 06:32:06 -
23  * errore nel caricamento costanti corretto
24  *
25  * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it
26  * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 
27  * l'utente loggato 
28  */
29 
30 //20180412 - TICKET:0002605
31 //recupero caratteri da sostituire
32 $charactersToReplace = getArrayCharactersToReplace();
33 
34 $query_costanti = 'select nome,label,value from frm_sys_costanti UNION select nome,label,value from frm_sys_costanti_applicazione';
35 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll();
36 foreach ($res_costanti as $costante) {
37   define("".$costante['nome'], $costante['value']);
38   
39   //20151030 - TICKET:0000635
40   define("".$costante['nome'].'_label', $costante['label']);
41 }
42 define("VERSION","2.2_55");
43 
44 //20141007 - TICKET:0000155
45 if(defined('FRM_VERSION')){
46     if(FRM_VERSION!=VERSION){
47         $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
28/02/2026 06:32:06 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 347 [function] => open [class] => CDbConnection [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 325 [function] => setActive [class] => CDbConnection [type] => -> [args] => Array ( [0] => 1 ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 394 [function] => init [class] => CDbConnection [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 103 [function] => getComponent [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [4] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/costanti.php [line] => 35 [function] => __get [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/components/Controller.php [line] => 45 [args] => Array ( [0] => /var/www/html/dev/gestioneinterventi/protected/costanti.php ) [function] => require_once ) [6] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/controllers/FrmAppuntamentiController.php [line] => 56 [function] => init [class] => Controller [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 281 [function] => init [class] => FrmAppuntamentiController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => frmAppuntamenti/admin ) ) [9] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 28/02/2026 06:32:10 - TYPE ERROR:CDbException 28/02/2026 06:32:10 - MESSAGE:CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory 28/02/2026 06:32:10 - Error File LINE: 28/02/2026 06:32:10 - /var/www/html/dev/gestioneinterventi/protected/costanti.php(35) 28/02/2026 06:32:10 - Error SOURCE CODE: 28/02/2026 06:32:10 -
23  * errore nel caricamento costanti corretto
24  *
25  * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it
26  * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 
27  * l'utente loggato 
28  */
29 
30 //20180412 - TICKET:0002605
31 //recupero caratteri da sostituire
32 $charactersToReplace = getArrayCharactersToReplace();
33 
34 $query_costanti = 'select nome,label,value from frm_sys_costanti UNION select nome,label,value from frm_sys_costanti_applicazione';
35 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll();
36 foreach ($res_costanti as $costante) {
37   define("".$costante['nome'], $costante['value']);
38   
39   //20151030 - TICKET:0000635
40   define("".$costante['nome'].'_label', $costante['label']);
41 }
42 define("VERSION","2.2_55");
43 
44 //20141007 - TICKET:0000155
45 if(defined('FRM_VERSION')){
46     if(FRM_VERSION!=VERSION){
47         $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
28/02/2026 06:32:10 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 347 [function] => open [class] => CDbConnection [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 325 [function] => setActive [class] => CDbConnection [type] => -> [args] => Array ( [0] => 1 ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 394 [function] => init [class] => CDbConnection [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 103 [function] => getComponent [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [4] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/costanti.php [line] => 35 [function] => __get [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/components/Controller.php [line] => 45 [args] => Array ( [0] => /var/www/html/dev/gestioneinterventi/protected/costanti.php ) [function] => require_once ) [6] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/controllers/FrmAppuntamentiController.php [line] => 56 [function] => init [class] => Controller [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 281 [function] => init [class] => FrmAppuntamentiController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => frmAppuntamenti/admin ) ) [9] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) ) 28/02/2026 06:32:15 - TYPE ERROR:CDbException 28/02/2026 06:32:15 - MESSAGE:CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory 28/02/2026 06:32:15 - Error File LINE: 28/02/2026 06:32:15 - /var/www/html/dev/gestioneinterventi/protected/costanti.php(35) 28/02/2026 06:32:15 - Error SOURCE CODE: 28/02/2026 06:32:15 -
23  * errore nel caricamento costanti corretto
24  *
25  * 20141007 - TICKET:0000155 - giacomo.gallo@sohpiainformatica.it
26  * aggiunta porzione di codice che definisce FRM_IDSOCIETA e FRM_IDSTABILIMENTO per 
27  * l'utente loggato 
28  */
29 
30 //20180412 - TICKET:0002605
31 //recupero caratteri da sostituire
32 $charactersToReplace = getArrayCharactersToReplace();
33 
34 $query_costanti = 'select nome,label,value from frm_sys_costanti UNION select nome,label,value from frm_sys_costanti_applicazione';
35 $res_costanti = Yii::app()->db->createCommand($query_costanti)->queryAll();
36 foreach ($res_costanti as $costante) {
37   define("".$costante['nome'], $costante['value']);
38   
39   //20151030 - TICKET:0000635
40   define("".$costante['nome'].'_label', $costante['label']);
41 }
42 define("VERSION","2.2_55");
43 
44 //20141007 - TICKET:0000155
45 if(defined('FRM_VERSION')){
46     if(FRM_VERSION!=VERSION){
47         $q_update = 'UPDATE frm_sys_costanti SET value='.VERSION.' '
28/02/2026 06:32:15 - Stack Trace:Array ( [0] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 347 [function] => open [class] => CDbConnection [type] => -> [args] => Array ( ) ) [1] => Array ( [file] => /var/www/html/dev/yii/framework/db/CDbConnection.php [line] => 325 [function] => setActive [class] => CDbConnection [type] => -> [args] => Array ( [0] => 1 ) ) [2] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 394 [function] => init [class] => CDbConnection [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /var/www/html/dev/yii/framework/base/CModule.php [line] => 103 [function] => getComponent [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [4] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/costanti.php [line] => 35 [function] => __get [class] => CModule [type] => -> [args] => Array ( [0] => db ) ) [5] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/components/Controller.php [line] => 45 [args] => Array ( [0] => /var/www/html/dev/gestioneinterventi/protected/costanti.php ) [function] => require_once ) [6] => Array ( [file] => /var/www/html/dev/gestioneinterventi/protected/controllers/FrmAppuntamentiController.php [line] => 56 [function] => init [class] => Controller [type] => -> [args] => Array ( ) ) [7] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 281 [function] => init [class] => FrmAppuntamentiController [type] => -> [args] => Array ( ) ) [8] => Array ( [file] => /var/www/html/dev/yii/framework/web/CWebApplication.php [line] => 141 [function] => runController [class] => CWebApplication [type] => -> [args] => Array ( [0] => frmAppuntamenti/admin ) ) [9] => Array ( [file] => /var/www/html/dev/yii/framework/base/CApplication.php [line] => 185 [function] => processRequest [class] => CWebApplication [type] => -> [args] => Array ( ) ) [10] => Array ( [file] => /var/www/html/dev/gestioneinterventi/index.php [line] => 46 [function] => run [class] => CApplication [type] => -> [args] => Array ( ) ) )