PHP Error

Undefined index: menu_image_type

/var/www/protected/modules/picture/worklets/WPictureMore.php(18)

06     public $more;
07     
08 
09 
10     public function taskConfig()
11     {
12 
13 function fileExists($path){
14      return (@fopen($path,"r")==true);
15  }
16 $imageNumber = $this->post->imageNumber;
17 $after_effect = $this->post->after_effect;$after_effect_array = json_decode($after_effect, true);
18 $format_type = $after_effect_array["menu_image_type"];$image_type=$format_type["choice"];if($image_type==1 OR $image_type ==""){$format_type="jpg";}if($image_type==2){$format_type="png";}
19 
20 /*
21 if(!fileExists("http://91.250.83.244/product/$imageNumber.jpg")){
22 $filling_image_name = "1-nologo-".md5("1nologo".$imageNumber);
23 if(!fileExists("http://91.250.83.244/final/$filling_image_name.$format")){
24 $new_file2 = file_get_contents('http://www.inspir.ly/image/download/postId/'.$this->post->id.'/size/1/session/0/logo/0/admin/1');
25 }
26 $new_file = file_get_contents('http://91.250.83.244/image/create_product.php?imageNumber='.$imageNumber.'&format='.$format_type);
27 }  
28 */
29 
30 $this->more .= "<a class='uModal' href='/image/product_menu/postId/".$this->post->id."/format/".$format_type."/imageNumber/".$imageNumber."'><img style='padding:5px; margin-left:-15px' src='http://91.250.83.244/product/$imageNumber.jpg'></a>";

Stack Trace

#1
+
 /var/www/framework/uniprogy/framework/worklets/UWorklet.php(94): call_user_func_array(array(WPictureMore, "taskconfig"), array())
89         if(method_exists($this,'before'.$name))
90             if(($before = call_user_func_array(array($this,'before'.$name),$parameters))!==null)
91                 return $before;
92         // worklet task
93         $result = method_exists($this,'task'.$name)
94             ? call_user_func_array(array($this,'task'.$name),$parameters)
95             : parent::__call('task'.$name,$parameters);
96         // worklet after            
97         $parameters['result'] = $result;
98         if(method_exists($this,'after'.$name))
99             if(($after = call_user_func_array(array($this,'after'.$name),$parameters))!==null)
#2
+
 /var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): UWorklet->__call("config", array())
153     /**
154      * Worklet builder.
155      */
156     public function taskBuild()
157     {
158         $this->config();
159     }
160     
161     /**
162      * Configures worklet.
163      */
#3
+
 /var/www/framework/uniprogy/framework/worklets/UWidgetWorklet.php(158): WPictureMore->config()
153     /**
154      * Worklet builder.
155      */
156     public function taskBuild()
157     {
158         $this->config();
159     }
160     
161     /**
162      * Configures worklet.
163      */
2024-03-28 10:51:32 Apache/2.4.10 (Debian) Yii Framework/1.1.8