how to remove the error in error log of xampp

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Re: how to remove the error in error log of xampp

Postby Nobbie » 23. March 2020 13:21

Actually, you are the one playing here.

Please show us the FULL script and also the FULL included file "header.php", so i can run it on my machine.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: how to remove the error in error log of xampp

Postby sreekar1 » 23. March 2020 13:45

<?php
session_start();
include 'Message.php';
include 'functions.php';
include 'db.php';
include 'user.php';
include 'Post.php';
include 'Notification.php';
if(isset($_SESSION['username'])){
$userLoggedIn=$_SESSION['username'];
$user_details_query=mysqli_query($db,"SELECT * FROM profile WHERE username='$userLoggedIn'");
$user=mysqli_fetch_array($user_details_query);
}else{
header("Location:index.php");
}
?>

<html>
<head>
<script src="jquery.min.js"></script>
<script src="bootstrap.js"></script>

<script src="bootbox.locales.min.js"></script>
<script src="bootbox.min.js"></script>
<script src="demo.js"></script>
<script src="jquery.jcrop.js"></script>
<script src="jcrop_main.js"></script>

<link rel="stylesheet" href="jquery.jcrop.css" type="text/css">
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="top_bar">
<div class="logo">
<a href="index.php">linkedup</a>
</div>
<div class="search">
<form action="search.php" method="get" name="search_form">
<input type="text" onkeyup="getLiveSearchUsers(this.value,'<?php echo $userLoggedIn; ?>')" name="q" placeholder="Search..." autocomplete="off" id="search_text_input">
<div class="button_holder">
<img src="/images/magnifying_glass.png">
</div>
</form>
<div class="search_results">
</div>
<div class="search_results_footer_empty">
</div>
</div>
<nav>
<?php
$messages=new Message($db,$userLoggedIn);
$num_messages = $messages->getUnreadNumber();
$notifications=new Notification($db,$userLoggedIn);
$num_notifications = $notifications->getUnreadNumber();
$user_obj=new User($db,$userLoggedIn);
$num_requests = $user_obj->getNumberOfFriendRequests();
?>

<a href="<?php echo $userLoggedIn; ?>">
<?php echo $user['firstname']; ?>
</a>
<a href="#">
<i class="fa fa-home fa-lg"></i>
</a>
<a href="javascript:void(0);" onclick="getDropdownData('<?php echo $userLoggedIn; ?>', 'message')"><i class="fa fa-envelope fa-lg"></i>
<?php
if($num_messages>0)
echo '<span class="notification_badge" id="unread_message">'.$num_messages.'</span>'
?>
</a>
<a href="javascript:void(0);" onclick="getDropdownData('<?php echo $userLoggedIn; ?>', 'notification')"><i class="fa fa-bell-o fa-lg"></i>
<?php
if($num_notifications>0)
echo '<span class="notification_badge" id="unread_notificaion">'.$num_notifications.'</span>'
?>
</a>
<a href="requests.php"><i class="fa fa-users fa-lg"></i>
<?php
if($num_requests>0)
echo '<span class="notification_badge" id="unread_requests">'.$num_requests.'</span>'
?>
</a>
<a href="settings.php"><i class="fa fa-cog fa-lg"></i></a>
<a href="logout.php"><i class="fa fa-sign-out fa-lg"></i></a>
</nav>
<div class="dropdown_data_window" style="height:0px; border:none;"></div>
<input type="hidden" id="dropdown_data_type" value="">
</div>
<script>
var userLoggedIn='<?php echo $userLoggedIn; ?>';
$(document).ready(function(){
$('.dropdown_data_window').scroll(function(){
var inner_height=$('.dropdown_data_window').innerHeight();
var scroll_top=$('.dropdown_data_window').scrollTop();
var page=$('.dropdown_data_window').find('.nextPageDropDownData').val();
var noMoreData=$('.dropdown_data_window').find('.noMoreDropdownData').val();
if((scroll_top+inner_height>=$('.dropdown_data_window')[0].scrollHeight)&&noMoreData=='false'){
var pageName;
var type=$('#dropdown_data_type').val();
if(type=='notification')
pageName="ajax_load_notifications.php";
else if(type=='message')
pageName="ajax_load_messages.php";

var ajaxReq = $.ajax({
url:pageName,
type:"POST",
data: "page="+page+"&userLoggedIn="+userLoggedIn,
cache:false,
success:function(response){
$('.dropdown_data_window').find('.nextPageDropDownData').remove();
$('.dropdown_data_window').find('.noMoreDropdownData').remove();

$('.dropdown_data_window').append(response);
}

});
}
return false;
});
});
</script>

<div class= "wrapper">
sreekar1
 
Posts: 12
Joined: 22. March 2020 12:06
XAMPP version: 5.6.20
Operating System: lubuntu

Re: how to remove the error in error log of xampp

Postby Nobbie » 23. March 2020 13:52

Thats useless, there are another 5 files included.

Ask the author of the script. I dont know any reason why it should not work, besides applying the wrong URL in the browser. But you said, you enter http://localhost/upload.php (what is OK), and then i cannot see any reason for your error.

Where did you download that scripts?
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: how to remove the error in error log of xampp

Postby sreekar1 » 24. March 2020 03:14

Udemy
sreekar1
 
Posts: 12
Joined: 22. March 2020 12:06
XAMPP version: 5.6.20
Operating System: lubuntu

Re: how to remove the error in error log of xampp

Postby Nobbie » 24. March 2020 10:45

Tell them your problems, Xampp support cannot debug their script.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: how to remove the error in error log of xampp

Postby sreekar1 » 25. March 2020 03:23

k
sreekar1
 
Posts: 12
Joined: 22. March 2020 12:06
XAMPP version: 5.6.20
Operating System: lubuntu

Previous

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 79 guests