PHP error

Exception::__construct(): Passing null to parameter #1 ($message) of type string is deprecated

/home/letis/old_kulcsmasolas/yii/framework/base/CHttpException.php(38)

26      */
27     public $statusCode;
28 
29     /**
30      * Constructor.
31      * @param integer $status HTTP status code, such as 404, 500, etc.
32      * @param string $message error message
33      * @param integer $code error code
34      */
35     public function __construct($status,$message=null,$code=0)
36     {
37         $this->statusCode=$status;
38         parent::__construct($message,$code);
39     }
40 }

Stack Trace

#1
+
 /home/letis/old_kulcsmasolas/protected/components/Controller.php(185): CHttpException->__construct(404)
180 
181     /**
182      * 404 error
183      */
184     public function error404() {
185         throw new CHttpException( 404 );
186     }
187     
188     /**
189      * Fetch WYSIWYG content
190      * @param string $content
#2
+
 /home/letis/old_kulcsmasolas/protected/controllers/ContentsController.php(55): Controller->error404()
50             'deleted' => 0,
51             'temporary' => 0
52         ] );
53         
54         if( !$record )
55             $this->error404();
56             
57         $this->breadcrumb[] = [ '', $record->t( 'name' ) ];
58         $this->record = $record;
59         $this->image = $record->pictureFile ? $record->pictureFile->getUrl( '1200_675_AUTO' ) : $this->image;
60         
#12
+
 /home/letis/old_kulcsmasolas/index.php(16): CApplication->run()
11 $yii = PATH_FRAMEWORK . 'yii.php';
12 $cfg = PATH_CONFIGS . 'main.php';
13 
14 // Load Yii and run a new web application
15 require_once( $yii );
16 Yii::createWebApplication( $cfg )->run();
2024-03-29 13:32:24 Apache Yii Framework/1.1.12