Undefined variable: LiveYVideo
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/web/views/layoutv2/main.php(225)
213 //var YvideoSrc = "https://www.youtube.com/embed/<?php //echo $_YvideoSrc?>"; 214 var videoSrc = "<?php echo $this->data['sys_configs']['bellvideo_1_tw']?>"; 215 var YvideoSrc = "<?php echo $this->data['sys_configs']['bellvideo_2_tw']?>"; 216 217 218 var YvideoSrcTemp = YvideoSrc.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/); 219 if(YvideoSrcTemp[2] !== undefined) { 220 var youtubeID = ''; 221 youtubeID = YvideoSrcTemp[2].split(/[^0-9a-z_\-]/i); 222 youtubeID = youtubeID[0]; 223 YvideoSrc = 'https://www.youtube.com/embed/' + youtubeID+"?rel=0"; 224 } else { 225 YvideoSrc = "<?=$LiveYVideo[$channel]?>?rel=0"; 226 } 227 228 229 $(document).ready(function(){ 230 $('.livebutton .liveSwitch span').eq(0).click(); //自動開啟 231 232 if ($('.LiveVideo').hasClass('active')) { 233 $('.liveText_area').show(); 234 } else { 235 $('.liveText_area').hide(); 236 } 237 });
| #0 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/frontend/components/layout_v2.php(817): include("/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/web/views/layoutv2...") 812 $layout_v2_main = Yii::getPathOfAlias('application').'/views/layoutv2/main.php'; 813 } else { 814 $layout_v2_main = Yii::getPathOfAlias('system.frontend.views.layoutv2').'/main.php'; 815 } 816 if(empty($_POST)){ 817 include $layout_v2_main; 818 } 819 820 // SCSS 821 if(isset($this->data[$this->data['layout_v2_name'].'_editmode']) and $this->data[$this->data['layout_v2_name'].'_editmode'] == true 822 and isset($this->data['scss_configs']) and count($this->data['scss_configs']) > 0 |
| #1 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/frontend/components/Controller.php(482): include("/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/frontend...") 477 $this->data['html_end'] = ''; 478 479 /* 480 * 前台產生器V2 (就叫Layout V2好了) 481 */ 482 include Yii::getPathOfAlias('system.frontend.components').'/layout_v2.php'; 483 484 /* 485 * 前台產生器V1 486 */ 487 include Yii::getPathOfAlias('system.components').'/frontend_generate.php'; |
| #2 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/web/CController.php(306): Controller->beforeAction(CInlineAction) 301 */ 302 public function runAction($action) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); |
| #3 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #4 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, null) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
| #5 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/web/CWebApplication.php(283): CController->run("live") 278 { 279 list($controller,$actionID)=$ca; 280 $oldController=$this->_controller; 281 $this->_controller=$controller; 282 $controller->init(); 283 $controller->run($actionID); 284 $this->_controller=$oldController; 285 } 286 else 287 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 288 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #6 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/web/CWebApplication.php(142): CWebApplication->runController("site/live") 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 142 $this->runController($route); 143 } 144 145 /** 146 * Registers the core application components. 147 * This method overrides the parent implementation by registering additional core components. |
| #7 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/_i/framework/base/CApplication.php(169): CWebApplication->processRequest() 164 public function run() 165 { 166 if($this->hasEventHandler('onBeginRequest')) 167 $this->onBeginRequest(new CEvent($this)); 168 register_shutdown_function(array($this,'end'),0,false); 169 $this->processRequest(); 170 if($this->hasEventHandler('onEndRequest')) 171 $this->onEndRequest(new CEvent($this)); 172 } 173 174 /** |
| #8 |
+
–
/home/ddmorg/web/ddm.org.tw/public_html/lh/index.php(120): CApplication->run() 115 $app_path = $base_path.ds('/').$app_name; 116 117 //require_once(str_replace('yii.php', '', $yii).$app_name.ds('/yii_init.php')); 118 require_once(str_replace('yii.php', '', $yii).'frontend'.ds('/yii_init.php')); 119 120 $app->run(); |