PHP warning

Undefined variable $jnu

/home3/jilan/public_html/protected/views/news/state.php(204)

192                         $followerCount = 0;
193                         $stmt = $GLOBALS["mysqli_con"]->prepare("SELECT COUNT(*) as count FROM followers WHERE following_id = ?");
194                         $stmt->bind_param("i", $profileUserId);
195                         $stmt->execute();
196                         $result = $stmt->get_result();
197                         if ($countRow = $result->fetch_assoc()) {
198                             $followerCount = $countRow['count'];
199                         }
200                         ?>
201                   <div class="col-lg-12 mb-30">
202                         <div class="post">
203                             <div class="post-header">
204                                 <a href="<?php echo REDIRECT . 'site/userpf?id=' . $row['id']; ?>"><img src="<?php echo $jnu; ?>" alt="Autocrypt Logo" class="profile-pic" ></a>
205                                 <div class="post-info">
206                                     <h1><?php echo $row['uname']; ?></h1>
207                                     <p>Post Date:- <?php echo $row['dop']; ?></p>
208                                 </div>
209                                  <div class="follow-button">
210                                   <?php if ($isLoggedIn && $currentUserId != $profileUserId): ?>
211                                         <button class="follow-btn" id="follow-btn"
212                                                 onclick="toggleFollow(<?= $currentUserId ?>, <?= $profileUserId ?>)">
213                                             <?= $isFollowing ? 'Unfollow' : 'Follow' ?>
214                                         </button>
215                                     <?php endif; ?>
216                                     

Stack Trace

#4
+
 /home3/jilan/public_html/protected/controllers/NewsController.php(55): CController->render("state")
50     /**
51      * Displays a particular model.
52      * @param integer $id the ID of the model to be displayed
53      */     
54        public function actionState() {
55         $this->render('state');
56     }
57          
58        public function actionCountry() {
59         $this->render('country');
60     }
#17
+
 /home3/jilan/public_html/index.php(22): CApplication->run()
17     defined('YII_DEBUG') or define('YII_DEBUG', true);
18 // specify how many levels of call stack should be shown in each log message
19     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
20 
21     require_once($yii);
22     Yii::createWebApplication($config)->run();
23 }  
2026-03-10 17:28:15 Apache Yii Framework/1.1.10