![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gocodeme.com/public_html/BACKUP/ |
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html>
<head>
<title>Simple Debug - MusicStudio Pro</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background: #0a0a0a;
color: white;
}
.success { color: #48bb78; }
.error { color: #f56565; }
.warning { color: #ed8936; }
.info { color: #4299e1; }
.debug-section {
border: 1px solid #333;
padding: 20px;
margin: 20px 0;
border-radius: 8px;
background: #1a1a1a;
}
.btn {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
margin: 10px 5px;
}
pre {
background: #2d2d2d;
padding: 15px;
border-radius: 8px;
border: 1px solid #444;
color: #e2e8f0;
overflow-x: auto;
}
</style>
</head>
<body>
<h1>🔧 Simple Debug Tool</h1>
<div class="debug-section">
<h2>🎵 Test the Broken URL</h2>
<p>Let's test the specific URL that's not working:</p>
<div style="margin: 20px 0;">
<strong>Broken URL:</strong> <code>https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d</code>
</div>
<div id="urlTestResult">
<div class="info">🔄 Testing URL...</div>
</div>
<div style="margin: 20px 0;">
<audio controls id="brokenAudio" style="width: 100%;">
<source src="https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>
<div id="audioError" style="display: none;" class="error">
<h4>❌ Audio Error:</h4>
<p id="errorMessage"></p>
</div>
</div>
<div class="debug-section">
<h2>✅ Test Working Audio</h2>
<p>Here's a working audio source for comparison:</p>
<div style="margin: 20px 0;">
<strong>Working URL:</strong> <code>https://www.soundjay.com/misc/sounds/bell-ringing-05.wav</code>
</div>
<div style="margin: 20px 0;">
<audio controls style="width: 100%;">
<source src="https://www.soundjay.com/misc/sounds/bell-ringing-05.wav" type="audio/wav">
Your browser does not support the audio element.
</audio>
</div>
</div>
<div class="debug-section">
<h2>🔍 Where is this URL coming from?</h2>
<p>Help me understand where you're seeing this broken URL:</p>
<form id="debugForm">
<div style="margin: 15px 0;">
<label>Where are you seeing this URL?</label><br>
<select id="urlSource" style="background: #2d2d2d; color: white; border: 1px solid #333; padding: 8px; border-radius: 5px; width: 100%;">
<option value="">Select an option...</option>
<option value="webpage">On a web page/player</option>
<option value="api">In an API response</option>
<option value="database">In a database record</option>
<option value="log">In a log file</option>
<option value="error">In an error message</option>
<option value="other">Other location</option>
</select>
</div>
<div style="margin: 15px 0;">
<label>What happens when you try to play it?</label><br>
<select id="playbackIssue" style="background: #2d2d2d; color: white; border: 1px solid #333; padding: 8px; border-radius: 5px; width: 100%;">
<option value="">Select an option...</option>
<option value="noLoad">Audio doesn't load at all</option>
<option value="error">Player shows an error</option>
<option value="silent">Player loads but no sound</option>
<option value="download">Download fails</option>
<option value="other">Other issue</option>
</select>
</div>
<div style="margin: 15px 0;">
<label>Additional details (optional):</label><br>
<textarea id="details" rows="3" style="width: 100%; background: #2d2d2d; color: white; border: 1px solid #333; padding: 10px; border-radius: 5px;" placeholder="Describe what you're seeing..."></textarea>
</div>
<button type="submit" class="btn">🔍 Analyze Issue</button>
</form>
<div id="analysisResult" style="display: none;"></div>
</div>
<div class="debug-section">
<h2>🔧 Quick Fix</h2>
<p>Replace the broken URL with this working one:</p>
<div style="background: #2d2d2d; padding: 15px; border-radius: 8px; margin: 15px 0;">
<strong>Replace:</strong><br>
<code style="color: #f56565;">https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d</code>
<br><br>
<strong>With:</strong><br>
<code style="color: #48bb78;">https://www.soundjay.com/misc/sounds/bell-ringing-05.wav</code>
</div>
<button onclick="testReplacement()" class="btn">🔄 Test Replacement</button>
<div id="replacementTest" style="display: none; margin-top: 20px;">
<audio controls style="width: 100%;">
<source src="https://www.soundjay.com/misc/sounds/bell-ringing-05.wav" type="audio/wav">
Your browser does not support the audio element.
</audio>
</div>
</div>
<div class="debug-section">
<h2>🔗 Quick Links</h2>
<a href="audio_fix.php" class="btn">🔧 Audio Fix Tool</a>
<a href="callback_fix.php" class="btn">🔧 Callback Fix Tool</a>
<a href="musicstudio.html" class="btn">🎵 MusicStudio Pro</a>
</div>
<script>
// Test the broken URL
async function testBrokenUrl() {
const resultDiv = document.getElementById('urlTestResult');
try {
const response = await fetch('https://soundstudiopro.com/audiofiles.php?id=8cd1c23483097cc26fac73049ea0302d', {
method: 'HEAD'
});
resultDiv.innerHTML = `
<div class="${response.ok ? 'success' : 'error'}">
<h4>${response.ok ? '✅ URL Accessible' : '❌ URL Not Accessible'}</h4>
<p><strong>HTTP Status:</strong> ${response.status} ${response.statusText}</p>
<p><strong>Content-Type:</strong> ${response.headers.get('content-type') || 'Unknown'}</p>
</div>
`;
} catch (error) {
resultDiv.innerHTML = `
<div class="error">
<h4>❌ Error Testing URL</h4>
<p><strong>Error:</strong> ${error.message}</p>
</div>
`;
}
}
// Test audio element for errors
document.getElementById('brokenAudio').addEventListener('error', function(e) {
const errorDiv = document.getElementById('audioError');
const errorMsg = document.getElementById('errorMessage');
errorMsg.textContent = 'Audio failed to load: ' + (e.target.error ? e.target.error.message : 'Unknown error');
errorDiv.style.display = 'block';
});
// Analyze the issue
document.getElementById('debugForm').addEventListener('submit', function(e) {
e.preventDefault();
const urlSource = document.getElementById('urlSource').value;
const playbackIssue = document.getElementById('playbackIssue').value;
const details = document.getElementById('details').value;
const resultDiv = document.getElementById('analysisResult');
let analysis = '<div class="info"><h4>🔍 Analysis Results:</h4>';
if (urlSource === 'webpage') {
analysis += '<p><strong>Issue:</strong> The broken URL is being displayed on a web page</p>';
analysis += '<p><strong>Solution:</strong> Find and replace the URL in the HTML/JavaScript code</p>';
} else if (urlSource === 'api') {
analysis += '<p><strong>Issue:</strong> The broken URL is coming from an API response</p>';
analysis += '<p><strong>Solution:</strong> Check the API configuration and callback URLs</p>';
} else if (urlSource === 'database') {
analysis += '<p><strong>Issue:</strong> The broken URL is stored in a database</p>';
analysis += '<p><strong>Solution:</strong> Update the database record with the working URL</p>';
} else if (urlSource === 'log') {
analysis += '<p><strong>Issue:</strong> The broken URL appears in log files</p>';
analysis += '<p><strong>Solution:</strong> Check what system is generating this URL</p>';
} else if (urlSource === 'error') {
analysis += '<p><strong>Issue:</strong> The broken URL appears in an error message</p>';
analysis += '<p><strong>Solution:</strong> Check the system that\'s generating the error</p>';
}
if (playbackIssue === 'noLoad') {
analysis += '<p><strong>Playback Issue:</strong> Audio doesn\'t load - likely 401/403 error</p>';
} else if (playbackIssue === 'error') {
analysis += '<p><strong>Playback Issue:</strong> Player shows error - check browser console</p>';
} else if (playbackIssue === 'silent') {
analysis += '<p><strong>Playback Issue:</strong> Player loads but no sound - audio format issue</p>';
}
if (details) {
analysis += '<p><strong>Additional Details:</strong> ' + details + '</p>';
}
analysis += '</div>';
resultDiv.innerHTML = analysis;
resultDiv.style.display = 'block';
});
// Test replacement
function testReplacement() {
const testDiv = document.getElementById('replacementTest');
testDiv.style.display = 'block';
}
// Run initial test
testBrokenUrl();
</script>
</body>
</html>