Error

Call to undefined function getQuestionAttributeValues()

/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/helpers/remotecontrol/remotecontrol_handle.php(2733)

                        2721         $sTempUploadDir = $tempdir.'/upload/';
                        2722         if (!file_exists($sTempUploadDir)) {
                        2723             if (!mkdir($sTempUploadDir)) {
                        2724                 return array('status' => 'Can not make temporary upload directory');
                        2725             }
                        2726         }
                        2727
                        2728         $aFieldMap = createFieldMap($oSurvey, 'short', false, false, Yii::app()->getConfig('defaultlang'));
                        2729         if (!isset($aFieldMap[$sFieldName])) {
                        2730             return array('status' => 'Can not obtain field map');
                        2731         }
                        2732         //FIXME undefined function getQuestionAttributeValues()
                        
                            2733         $aAttributes = getQuestionAttributeValues($aFieldMap[$sFieldName]['qid']);
                        
                        2734
                        2735         $iFileUploadTotalSpaceMB = Yii::app()->getConfig('iFileUploadTotalSpaceMB');
                        2736
                        2737         $maxfilesize = (int) $aAttributes['max_filesize'];
                        2738         $allowed_filetypes = $aAttributes['allowed_filetypes'];
                        2739         $valid_extensions_array = explode(",", $allowed_filetypes);
                        2740         $valid_extensions_array = array_map('trim', $valid_extensions_array);
                        2741
                        2742         $pathinfo = pathinfo($sFileName);
                        2743         $ext = strtolower($pathinfo['extension']);
                        2744
                        2745         // check to see that this file type is allowed
                    

Stack Trace

#0
+
 /var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/libraries/LSjsonRPCServer.php(36): remotecontrol_handle-> upload_file("JR5FvHC81nfsJJFhOUgAP3nt9zH9G7Go", 765587, "765587X44X1232", "fu_kabaka", ...)
                                    31                                 'result' => null,
                                    32                                 'error' => sprintf('unable to decode malformed json')
                                    33                                 );
                                    34         } else {
                                    35             try {
                                    
                                        36                 $result = @call_user_func_array(array($object, $request['method']), $request['params']);
                                    
                                    37                 if ($result !== false) {
                                    38                     $response = array(
                                    39                                         'id' => $request['id'],
                                    40                                         'result' => $result,
                                    41                                         'error' => null
                                
#1
+
 /var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/controllers/admin/remotecontrol.php(60): LSjsonRPCServer:: handle(remotecontrol_handle)
                                    55                 Yii::app()->loadLibrary('LSjsonRPCServer');
                                    56                 if (!isset($_SERVER['CONTENT_TYPE'])) {
                                    57                     $serverContentType = explode(';', $_SERVER['HTTP_CONTENT_TYPE']);
                                    58                     $_SERVER['CONTENT_TYPE'] = reset($serverContentType);
                                    59                 }
                                    
                                        60                 LSjsonRPCServer::handle($oHandler);
                                    
                                    61             }
                                    62             foreach (App()->log->routes as $route) {
                                    63                 $route->enabled = $route->enabled && !($route instanceOf CWebLogRoute);
                                    64             }
                                    65
                                
#4
+
 /var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/core/Survey_Common_Action.php(83): CAction-> runWithParamsInternal(remotecontrol, ReflectionMethod, array())
                                    78             $oMethod = new ReflectionMethod($this, $sDefault);
                                    79         }
                                    80
                                    81         // We're all good to go, let's execute it
                                    82         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
                                    
                                        83         return parent::runWithParamsInternal($this, $oMethod, $params);
                                    
                                    84     }
                                    85
                                    86     /**
                                    87      * Some functions have different parameters, which are just an alias of the
                                    88      * usual parameters we're getting in the url. This function just populates
                                
2018-05-28 15:48:02 Apache Yii Framework/1.1.19