Commit graph

2 commits

Author SHA1 Message Date
DJP
f7ea6006db Fix config to always define SSO constants
Updated config.example.php to match working config structure:

Changes:
- Load env_loader.php with file_exists check
- Always define SSO_ENABLED, SSO_TENANT_ID, SSO_CLIENT_ID
- Use !defined() checks to prevent redefinition errors
- Defaults to false/empty if .env not found
- Added error reporting settings

Server-check.php improvements:
- Shows actual SSO constant values (TRUE/FALSE/EMPTY)
- Better diagnostic output

DEPLOYMENT FIX:
On server, update config.php to match config.example.php structure.
This ensures SSO constants are always defined.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2025-12-16 11:23:47 -05:00
DJP
20f1a16bb0 Add server diagnostic script for debugging 500 errors
Created server-check.php to diagnose deployment issues:

CHECKS:
✓ PHP version and server info
✓ Composer vendor/ directory exists
✓ Firebase JWT library installed
✓ config.php exists
✓ .env file exists
✓ All critical PHP files present
✓ Directory permissions (uploads/)
✓ Test loads env_loader.php
✓ Test loads config.php
✓ Test loads AuthMiddleware.php
✓ Shows specific errors if files fail to load

USAGE:
Visit: https://your-server.com/nano-pro/server-check.php

Shows:
- What's missing or broken
- Exact error messages
- Action items to fix
- Deployment checklist

Perfect for diagnosing 500 errors without SSH access!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
2025-12-16 11:19:52 -05:00