PHP error

Declaration of MinifyClientScript::registerScriptFile() should be compatible with CClientScript::registerScriptFile($url, $position = NULL, array $htmlOptions = Array)

/home/ywimnylul0u4/public_html/basma_v2/protected/components/MinifyClientScript.php(37)

25  * THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 /**
29  * MinifyClientScript class file.
30  */
31 Yii::import('ext.wbkrnl.CssCompressor');
32 Yii::import('ext.jsmin.JSMin');
33 
34 /**
35  * MinifyClientScript manages JavaScript and CSS stylesheets for views.
36  */
37 class MinifyClientScript extends CClientScript {
38 
39     /**
40      * Path to the 'original' CSS
41      * @var string
42      */
43     private $relativeCssPath;
44 
45     /**
46      * Path to the minify runtime files
47      * @var string
48      */
49     private $minifyPath;

Stack Trace

#4
+
 /home/ywimnylul0u4/public_html/basma_v2/protected/views/galleryItem/show.php(2): CModule->__get("clientScript")
1 <?php
2  Yii::app()->clientScript->registerMetaTag(Yii::app()->request->getBaseUrl(true) . '/images/preview/index.php?300x300/' .$model->galleryItemPhotos[0]->photo_uri.'.jpg', 
3  null,null,array('property' => 'og:image') );
4 
5  Yii::app()->clientScript->registerMetaTag("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]", null,null,array('property' => 'og:url') );
6 /*
7 $this->breadcrumbs=array(
#9
+
 /home/ywimnylul0u4/public_html/basma_v2/protected/controllers/GalleryItemController.php(55): CController->render("show", array("model" => GalleryItem))
50 
51         $model = $this->loadModelBySlugify($name);
52         
53         $this->render('show',array(
54             'model'=>$model,
55         ));    
56     
57     }
58     
59 
60     /**
#24
+
 /home/ywimnylul0u4/public_html/basma_v2/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 15:16:28 Apache Yii Framework/1.1.14