This directory contains various development, debugging, and utility scripts for the Graduate Tracking System.
scripts/
├── development/ # Development and setup scripts
├── debugging/ # Debugging and diagnostic scripts
├── testing/ # Testing utilities
├── data/ # Data creation and management scripts
└── utilities/ # General utility scripts
# Check user roles and permissions
php scripts/data/check_user_roles.php
# Fix role permissions (if getting 403 errors)
php scripts/utilities/fix_user_roles.php
# Test all user access rights
php scripts/testing/test_all_user_access.php# Start development servers
.\start-dev.bat # or .\start-dev-final.ps1
# Check system status
php scripts/testing/quick_test.php
# Create sample data
php scripts/data/create_sample_data.php
# Interactive development helper
scripts/development/dev-helper.batdev-helper.bat- Interactive development helper menusetup-php-path.bat- Add PHP to system PATHstart-dev.bat- Start development servers (moved to root for convenience)
diagnose_blank_screen.php- Diagnose blank screen issuesfix_blank_screen.bat- Fix blank screen problemsfix_frontend.php- Fix frontend issuesfix_laravel.php- Fix Laravel configuration issuesfix_migration.php- Fix database migration issuesquick_fix.bat- Quick fixes for common issuesdisable_security_middleware.php- Disable security middleware for debugging
test_analytics.php- Test analytics functionalitytest_routes.php- Test route functionalityquick_test.php- Quick system testsrun-tests.bat- Run test suite (Windows)run-tests.sh- Run test suite (Unix/Linux)
create_sample_data.php- Create sample data for developmentcreate_tenant_sample_data.php- Create tenant-specific sample datacreate_tenant.php- Create new tenantcheck_users.php- Check existing users in databasecheck_user_roles.php- Check user roles and permissions ✨ NEWcheck_tables.php- Check database table structure
test_analytics.php- Test analytics functionalitytest_routes.php- Test route functionalitytest_all_user_access.php- Test all user role access ✨ NEWquick_test.php- Quick system testsrun-tests.bat- Run test suite (Windows)run-tests.sh- Run test suite (Unix/Linux)
diagnose_blank_screen.php- Diagnose blank screen issuestest_activity_log.php- Test activity logging system ✨ NEWtest_route.php- Test route resolution ✨ NEWfix_blank_screen.bat- Fix blank screen problemsfix_frontend.php- Fix frontend issuesfix_laravel.php- Fix Laravel configuration issuesfix_migration.php- Fix database migration issuesquick_fix.bat- Quick fixes for common issuesdisable_security_middleware.php- Disable security middleware for debugging
setup_analytics.bat- Setup analytics systemsetup_tenant.php- Setup tenant configurationfix_user_roles.php- Fix user roles and permissions ✨ NEWsimple_key_gen.php- Generate application keys
Most scripts can be run directly from their location:
# Development helper
scripts/development/dev-helper.bat
# Check users
php scripts/data/check_users.php
# Test analytics
php scripts/testing/test_analytics.php
# Fix blank screen
scripts/debugging/fix_blank_screen.bat- The main development script
start-dev.batremains in the root directory for easy access - All scripts maintain their original functionality
- Paths in scripts have been updated to work from their new locations
- Documentation has been updated to reflect new locations