![]() 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
// Test script to diagnose whitescreen issues
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo "<h1>SoundStudioPro Whitescreen Diagnostic</h1>";
$pages = [
'index.php' => 'Homepage',
'dashboard.php' => 'Dashboard',
'library_new.php' => 'Library',
'artists.php' => 'Artists',
'bands.php' => 'Bands',
'community.php' => 'Community',
'pricing.php' => 'Pricing',
'create.php' => 'Create',
'player.php' => 'Player'
];
foreach ($pages as $file => $name) {
echo "<h2>Testing: $name ($file)</h2>";
if (!file_exists($file)) {
echo "<p style='color: red;'>❌ File does not exist: $file</p>";
continue;
}
// Check syntax
$syntax_check = shell_exec("php -l $file 2>&1");
if (strpos($syntax_check, 'No syntax errors') !== false) {
echo "<p style='color: green;'>✅ Syntax OK</p>";
} else {
echo "<p style='color: red;'>❌ Syntax Error: $syntax_check</p>";
}
// Try to include the file and catch any errors
ob_start();
try {
// Set a timeout to prevent infinite loops
set_time_limit(10);
// Include the file
include $file;
$output = ob_get_contents();
ob_end_clean();
if (empty(trim($output))) {
echo "<p style='color: red;'>❌ WHITESCREEN: No output generated</p>";
} else {
$output_length = strlen($output);
echo "<p style='color: green;'>✅ Output generated ($output_length characters)</p>";
// Check for common whitescreen causes
if (strpos($output, 'Fatal error') !== false) {
echo "<p style='color: red;'>❌ Contains fatal error</p>";
}
if (strpos($output, 'Parse error') !== false) {
echo "<p style='color: red;'>❌ Contains parse error</p>";
}
if (strpos($output, 'Warning') !== false) {
echo "<p style='color: orange;'>⚠️ Contains warnings</p>";
}
}
} catch (Exception $e) {
ob_end_clean();
echo "<p style='color: red;'>❌ Exception: " . $e->getMessage() . "</p>";
} catch (Error $e) {
ob_end_clean();
echo "<p style='color: red;'>❌ Fatal Error: " . $e->getMessage() . "</p>";
}
echo "<hr>";
}
// Check for common configuration issues
echo "<h2>Configuration Check</h2>";
// Check if database connection works
if (file_exists('config/database.php')) {
echo "<p>✅ Database config file exists</p>";
} else {
echo "<p style='color: red;'>❌ Database config file missing</p>";
}
// Check PHP version and extensions
echo "<p>PHP Version: " . phpversion() . "</p>";
echo "<p>Required extensions:</p>";
$required_extensions = ['mysqli', 'json', 'curl'];
foreach ($required_extensions as $ext) {
if (extension_loaded($ext)) {
echo "<p style='color: green;'>✅ $ext</p>";
} else {
echo "<p style='color: red;'>❌ $ext missing</p>";
}
}
echo "<h2>Memory and Time Limits</h2>";
echo "<p>Memory Limit: " . ini_get('memory_limit') . "</p>";
echo "<p>Max Execution Time: " . ini_get('max_execution_time') . "</p>";
echo "<p>Display Errors: " . (ini_get('display_errors') ? 'On' : 'Off') . "</p>";
?>