PHP warning

Undefined variable $jnu

/home3/jilan/public_html/protected/views/news/category.php(363)

351                         $followerCount = 0;
352                         $stmt = $GLOBALS["mysqli_con"]->prepare("SELECT COUNT(*) as count FROM followers WHERE following_id = ?");
353                         $stmt->bind_param("i", $profileUserId);
354                         $stmt->execute();
355                         $result = $stmt->get_result();
356                         if ($countRow = $result->fetch_assoc()) {
357                             $followerCount = $countRow['count'];
358                         }
359                         ?>
360             <div class="col-lg-12 mb-30">
361                         <div class="post">
362                             <div class="post-header">
363                                 <a href="<?php echo REDIRECT . 'site/userpf?id=' . $row['id']; ?>"><img src="<?php echo $jnu; ?>" alt="Autocrypt Logo" class="profile-pic" ></a>
364                                 <div class="post-info">
365                                     <h1><?php echo $row['uname']; ?></h1>
366                                     <p>Post Date:- <?php echo $row['dop']; ?></p>
367                                 </div>
368                                 <div class="follow-button">
369                                   <?php if ($isLoggedIn && $currentUserId != $profileUserId): ?>
370                                         <button class="follow-btn" id="follow-btn"
371                                                 onclick="toggleFollow(<?= $currentUserId ?>, <?= $profileUserId ?>)">
372                                             <?= $isFollowing ? 'Unfollow' : 'Follow' ?>
373                                         </button>
374                                     <?php endif; ?>
375                                     

Stack Trace

#4
+
 /home3/jilan/public_html/protected/controllers/NewsController.php(65): CController->render("category")
60     }
61     public function actionSearch() {
62         $this->render('search');
63     }
64    public function actionCategory() {
65         $this->render('category');
66     }
67   public function actionDisplay() {
68         $this->render('display');
69     }
70     
#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 18:40:52 Apache Yii Framework/1.1.10