Sort By:
World University Rankings : How to be Number One Error

Error

Call to undefined function cut_content()

/proj/sc-sem/wordpress/wp-content/themes/wordpress-bootstrap-master/archive.php(582)

570             <img class="home-play-btn" src="<?php echo Yii::app()->params['img_url']."play-btn.png"; ?>" alt="" style="" />
571             <?php if($model->object_restricted == "1"){
572                     $restricted_top = 158 - ((158 - $home_img_height) / 2) - 25 -3 ;
573                     $restricted_left = 199 - ((199 - $home_img_width) / 2 )- 25 + 3;
574                 ?>
575                     <img class="home-restricted-video" src="<?php echo Yii::app()->params['img_url']."restricted-video.png"; ?>" alt="" style="    width:25px;height:25px;position: absolute;z-index:3;left:<?php echo $restricted_left; ?>px;top:<?php echo $restricted_top; ?>px;" />
576                 <?php } ?>
577             <?php } ?>
578         </div>
579     </a>
580         <!--<div class="work-details">                -->
581         <?php if(!empty($model->title_link)){ ?>
582             <a href="<?php echo (empty($model->title_link)?"#":$model->title_link); ?>" title="<?php echo $model->title; ?>" target="_blank" style="font-weight:700;"><?php echo cut_content($model->title); ?></a>
583         <?php }else{ ?>
584             <span style="font-weight:700;" title="<?php echo $model->title; ?>"><?php echo cut_content($model->title); ?></span>
585         <?php } ?>
586             <?php echo (empty($model->speaker)?"":"<br />".$model->speaker); ?>
587             <span style="color:#7F7F7F;"><?php echo (empty($model->seminar_date)?"":"<br />".date("Y-m-d", strtotime($model->seminar_date))); ?>            </span>
588             <?php
589             if(count($sc_attachment_model) > 0){
590                 echo "<br />";
591                 foreach($sc_attachment_model as $k=>$v){
592                     if($v->type == "file"){
593                         $tmp_file_arr = explode("/", $v->value);
594                         if($tmp_file_arr[0] == "r"){                            

Stack Trace

#0
+
 /proj/sc-sem/wordpress/wp-includes/template-loader.php(106): include()
101      *
102      * @param string $template The path of the template to include.
103      */
104     $template = apply_filters( 'template_include', $template );
105     if ( $template ) {
106         include $template;
107     } elseif ( current_user_can( 'switch_themes' ) ) {
108         $theme = wp_get_theme();
109         if ( $theme->errors() ) {
110             wp_die( $theme->errors() );
111         }
#1
+
 /proj/sc-sem/protected/controllers/SiteController.php(48): require_once("/proj/sc-sem/wordpress/wp-includes/template-loader.php")
43         //$this->render('index');
44         //$this->layout = false;
45         try {
46             //spl_autoload_unregister(array('YiiBase', 'autoload'));
47             wp();
48             require_once(ABSPATH . WPINC . '/template-loader.php');
49             //spl_autoload_register(array('YiiBase', 'autoload'));
50             //wp();
51             //require_once( ABSPATH . WPINC . '/template-loader.php' );
52             ////exit();
53             Yii::app()->end();
#9
+
 /proj/sc-sem/index.php(19): CApplication->run()
14 defined('YII_DEBUG') or define('YII_DEBUG',true);
15 // specify how many levels of call stack should be shown in each log message
16 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
17 
18 require_once($yii);
19 Yii::createWebApplication($config)->run();