CException

Could not initialize ShareBox : "title" and "url" parameters are required.

/var/www/www.biologi.ipb.ac.id/protected/extensions/ShareBox/EShareBox.php(135)

123              */
124     );
125     /**
126      * @var array Default html options. Will be merged with $htmlOptions provided by user.
127      */
128     protected $defaultUlHtmlOptions = array(
129         'class' => 'way2blogging-social',
130     );
131 
132     public function init()
133     {
134         if (!$this->url || !$this->title) {
135             throw new CException('Could not initialize ShareBox : "title" and "url" parameters are required.');
136         }
137         $assets = Yii::app()->getAssetManager()->publish(dirname(__FILE__) . '/assets');
138         Yii::app()->clientScript->registerCssFile($assets . '/style.css');
139         if (!$this->iconPath) {
140             $this->iconPath = $assets . '/images';
141         }
142         if (!empty($this->include)) {
143             foreach ($this->shareDefinitions as $share => $info) {
144                 if (!in_array($share, $this->include)) {
145                     unset($this->shareDefinitions[$share]);
146                 }
147             }

Stack Trace

#2
+
 /var/www/www.biologi.ipb.ac.id/protected/modules/web/views/announcements/detail.php(54): CBaseController->widget("ext.ShareBox.EShareBox", array("url" => "https://biologi.ipb.ac.id/web/en/announcements/detail/691/n-a", "title" => "", "iconSize" => 24, "animate" => true, ...))
49                     'url' => $this->createAbsoluteUrl(Yii::app()->request->requestUri),
50                     'title'=> Lang::t($post->title, $post->title_en),
51                     'iconSize' => 24,
52                     'animate' => true,
53                     'exclude' => array('technorati', 'digg', 'reddit', 'newsvine', 'linkedin', 'delicious', 'stumbleupon'),
54                 ));
55                 ?>
56             </span>
57         </div>
58     </div>
59 
#7
+
 /var/www/www.biologi.ipb.ac.id/protected/modules/web/controllers/AnnouncementsController.php(81): CController->render("detail", array("post" => Post))
76             $viewData['post'] = $post;
77 
78             $this->pageTitle = Lang::t("Pengumuman", "Announcements");
79 
80             $this->layout='/layouts/onecolumn';
81             $this->render('detail', $viewData);
82         }
83         
84         public function actionDetailPdf()
85         {
86             /* @var $post Post */
#17
+
 /var/www/www.biologi.ipb.ac.id/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 14:35:28 Apache Yii Framework/1.1.14