PHP warning

htmlspecialchars() expects parameter 1 to be string, array given

/usr/local/servicios/php/mesnaturaleza/protected/vendors/yii-1.1.13.e9e4a0/framework/web/helpers/CHtml.php(98)

086      */
087     public static $renderSpecialAttributesValue=true;
088 
089     /**
090      * Encodes special characters into HTML entities.
091      * The {@link CApplication::charset application charset} will be used for encoding.
092      * @param string $text data to be encoded
093      * @return string the encoded data
094      * @see http://www.php.net/manual/en/function.htmlspecialchars.php
095      */
096     public static function encode($text)
097     {
098         return htmlspecialchars($text,ENT_QUOTES,Yii::app()->charset);
099     }
100 
101     /**
102      * Decodes special HTML entities back to the corresponding characters.
103      * This is the opposite of {@link encode()}.
104      * @param string $text data to be decoded
105      * @return string the decoded data
106      * @see http://www.php.net/manual/en/function.htmlspecialchars-decode.php
107      * @since 1.1.8
108      */
109     public static function decode($text)
110     {

Stack Trace

#5
+
 /usr/local/servicios/php/mesnaturaleza/protected/views/semana/view.php(64): CBaseController->widget("zii.widgets.CDetailView", array("data" => Semana, "attributes" => array(array("name" => "actividad", "value" => "Conferencia / Plática"), array("name" => "descripcion", "type" => "raw", "value" => ""Servicios Ambientales: Una alternativa de gestión ambiental pa..."), array("name" => "sector", "value" => array(1 => "Academia", 2 => "Empresa", 4 => "Gobierno estatal", 5 => "Gobierno federal", ...)), array("name" => "publico_meta", "value" => array(3 => "Educación Básica", 6 => "Educación Media Superior", 7 => "Educación Superior", 9 => "Público General")), ...)))
59         ),
60         'informes',
61         array(
62             'type' => 'raw',
63             'name' => 'url',
64             'value' => !empty($model->url) ? "<span style='font-size:12px;'>" . CHtml::link($model->url, $model->url, array('target' => '_blank', 'style' => 'color:#009BB7')) . "</span>" : '',
65         ),
66     ),
67 )); ?>
68 
69 <?php if ($puede_modificar) {
#10
+
 /usr/local/servicios/php/mesnaturaleza/protected/controllers/SemanaController.php(61): CController->render("view", array("model" => Semana, "model_materiales" => array(Materiales), "puede_modificar" => false))
56         $model_materiales=Materiales::model()->findAllByAttributes(array('semana_id'=>$model->id));
57 
58         $this->render('view',array(
59                 'model'=>$model,
60                 'model_materiales'=>$model_materiales,
61                 'puede_modificar' => $this->puedeModificar($model->usuarios_id, false),
62         ));
63     }
64 
65     /**
66      * Creates a new model.
#25
+
 /usr/local/servicios/php/mesnaturaleza/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG',true);
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
15 
16 require_once($yii);
17 Yii::createWebApplication($config)->run();
2024-03-29 03:44:25 Apache/2.4.25 (Debian) Yii Framework/1.1.13