File "check_theme.php"
Full path: /home/algopkco/public_html/public/check_theme.php
File
size: 1.88 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
// Quick debug script to check active theme
echo "<h1>Theme Debug Info</h1>";
echo "<hr>";
// Check theme files
$themes = ['default', 'themeone'];
echo "<h2>Theme Import Files Status:</h2>";
foreach ($themes as $theme) {
$file = __DIR__ . "/themes/{$theme}/views/exams/questionbank/import/import.blade.php";
echo "<p><strong>{$theme}:</strong> ";
if (file_exists($file)) {
echo "✅ EXISTS<br>";
$content = file_get_contents($file);
if (strpos($content, 'subjective') !== false) {
echo " ✅ Contains 'subjective' option<br>";
if (strpos($content, 'questions_subjective_template.html') !== false) {
echo " ✅ Has subjective template button<br>";
} else {
echo " ❌ Missing subjective template button<br>";
}
} else {
echo " ❌ Does NOT contain 'subjective' option<br>";
}
} else {
echo "❌ NOT FOUND";
}
echo "</p>";
}
echo "<hr>";
echo "<h2>Instructions:</h2>";
echo "<ol>";
echo "<li>If you see ✅ for both themes, the files are correct</li>";
echo "<li>Clear your browser cache (Ctrl+Shift+Delete)</li>";
echo "<li>Close and reopen your browser</li>";
echo "<li>Try accessing: <a href='/testapp/exams/questionbank/import'>/testapp/exams/questionbank/import</a></li>";
echo "</ol>";
echo "<hr>";
echo "<h2>Manual Cache Clear:</h2>";
echo "<p>Delete these folders if they exist:</p>";
echo "<ul>";
$cache_dirs = [
__DIR__ . '/../storage/framework/views',
__DIR__ . '/../bootstrap/cache'
];
foreach ($cache_dirs as $dir) {
echo "<li><code>{$dir}</code> - ";
if (is_dir($dir)) {
echo "EXISTS";
$files = glob($dir . '/*');
echo " (" . count($files) . " files)";
} else {
echo "NOT FOUND";
}
echo "</li>";
}
echo "</ul>";
?>