Bot Error Checker


1. Checking Required Files

php74_compatibility.php - PHP 7.4 compatibility file

.env - Environment configuration file

vendor/autoload.php - Composer autoloader

bot.php - Main bot script

2. Checking .env File

✅ .env file has content

✅ TELEGRAM_BOT_TOKEN found in .env

✅ ADMIN_CHAT_ID found in .env

3. Testing bot.php

Attempting to load bot.php...

⚠️ Missing php74_compatibility.php

bot.php requires this file but it doesn't exist. This is causing the 500 error.

Solution: We'll create a simple compatibility file or remove the requirement.

4. Checking Composer Dependencies

✅ Composer autoloader found

✅ Composer autoloader loaded successfully

✅ GuzzleHttp\Client found

✅ Dotenv\Dotenv found

5. Recent Error Log Entries


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 247325048 bytes) in /home/admin/web/botmy.gleeze.com/public_html/check_errors.php on line 96