- Implement singleton pattern for HVAC_Enhanced_Settings to prevent duplicate initialization - Fix jQuery selector error by checking for valid hash selectors before using $(href) - Add default email templates with professional copy for trainer notifications - Update plugin version to 1.0.1 for cache busting - Remove duplicate Enhanced Settings initialization from HVAC_Community_Events - Add force cache refresh suffix to admin scripts This resolves the duplicate content issue on email templates page and fixes JavaScript errors in the admin interface. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
No EOL
1.2 KiB
Bash
Executable file
41 lines
No EOL
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
echo "=== Testing Staging Site for Errors ==="
|
|
echo ""
|
|
|
|
# Test if pages are loading without errors
|
|
echo "1. Testing Master Dashboard Page..."
|
|
response=$(curl -s -I https://upskill-staging.measurequick.com/master-trainer/dashboard/)
|
|
status=$(echo "$response" | grep "HTTP" | awk '{print $2}')
|
|
if [ "$status" = "200" ]; then
|
|
echo "✅ Master dashboard page loads successfully (HTTP $status)"
|
|
else
|
|
echo "❌ Master dashboard page error (HTTP $status)"
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Testing CSS Loading on Master Dashboard..."
|
|
response=$(curl -s https://upskill-staging.measurequick.com/master-trainer/dashboard/)
|
|
if echo "$response" | grep -q "hvac-common.css"; then
|
|
echo "✅ CSS files are referenced in page"
|
|
else
|
|
echo "❌ CSS files NOT found in page source"
|
|
fi
|
|
|
|
# Check for specific error patterns
|
|
if echo "$response" | grep -q "There has been a critical error"; then
|
|
echo "❌ CRITICAL ERROR found on page!"
|
|
else
|
|
echo "✅ No critical errors detected"
|
|
fi
|
|
|
|
echo ""
|
|
echo "3. Checking for Debug Messages..."
|
|
if echo "$response" | grep -q "HVAC DEBUG"; then
|
|
echo "❌ Debug messages found in output!"
|
|
else
|
|
echo "✅ No debug messages in output"
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Test Complete ===" |